2021-07-29 23:29:47 +02:00
|
|
|
typeattribute extra_free_kbytes coredomain;
|
|
|
|
|
|
|
|
init_daemon_domain(extra_free_kbytes)
|
2022-09-07 22:13:47 +02:00
|
|
|
|
|
|
|
# Only extra_free_kbytes script is allowed to store these properties
|
|
|
|
set_prop(extra_free_kbytes, init_storage_prop)
|
2024-03-27 09:18:41 +01:00
|
|
|
|
|
|
|
# required permissions to run the script from init
|
|
|
|
allow extra_free_kbytes shell_exec:file rx_file_perms;
|
|
|
|
allow extra_free_kbytes system_file:file x_file_perms;
|
|
|
|
allow extra_free_kbytes toolbox_exec:file rx_file_perms;
|
|
|
|
|
|
|
|
# files used by the script
|
|
|
|
allow extra_free_kbytes proc_extra_free_kbytes:file rw_file_perms;
|
|
|
|
allow extra_free_kbytes proc_watermark_scale_factor:file rw_file_perms;
|
|
|
|
allow extra_free_kbytes proc_zoneinfo:file r_file_perms;
|