blob: f24340de8bc82ce10f8b5f19753213c94a78f039 [file] [log] [blame]
Suren Baghdasaryan69886772021-07-29 14:29:47 -07001typeattribute extra_free_kbytes coredomain;
2
3init_daemon_domain(extra_free_kbytes)
Suren Baghdasaryan9fdb2982022-09-07 13:13:47 -07004
5# Only extra_free_kbytes script is allowed to store these properties
6set_prop(extra_free_kbytes, init_storage_prop)
Inseob Kim75806ef2024-03-27 17:18:41 +09007
8# required permissions to run the script from init
9allow extra_free_kbytes shell_exec:file rx_file_perms;
10allow extra_free_kbytes system_file:file x_file_perms;
11allow extra_free_kbytes toolbox_exec:file rx_file_perms;
12
13# files used by the script
14allow extra_free_kbytes proc_extra_free_kbytes:file rw_file_perms;
15allow extra_free_kbytes proc_watermark_scale_factor:file rw_file_perms;
16allow extra_free_kbytes proc_zoneinfo:file r_file_perms;