Suren Baghdasaryan | 6988677 | 2021-07-29 14:29:47 -0700 | [diff] [blame] | 1 | typeattribute extra_free_kbytes coredomain; |
| 2 | |
| 3 | init_daemon_domain(extra_free_kbytes) |
Suren Baghdasaryan | 9fdb298 | 2022-09-07 13:13:47 -0700 | [diff] [blame] | 4 | |
| 5 | # Only extra_free_kbytes script is allowed to store these properties |
| 6 | set_prop(extra_free_kbytes, init_storage_prop) |
Inseob Kim | 75806ef | 2024-03-27 17:18:41 +0900 | [diff] [blame^] | 7 | |
| 8 | # required permissions to run the script from init |
| 9 | allow extra_free_kbytes shell_exec:file rx_file_perms; |
| 10 | allow extra_free_kbytes system_file:file x_file_perms; |
| 11 | allow extra_free_kbytes toolbox_exec:file rx_file_perms; |
| 12 | |
| 13 | # files used by the script |
| 14 | allow extra_free_kbytes proc_extra_free_kbytes:file rw_file_perms; |
| 15 | allow extra_free_kbytes proc_watermark_scale_factor:file rw_file_perms; |
| 16 | allow extra_free_kbytes proc_zoneinfo:file r_file_perms; |