android_device_samsung_univ.../sepolicy/sswap.te
Hendra Manudinata f0e4521a9f
universal7570: import sepolicy from 7870
The sepolicy before seems to be broken

Change-Id: I890a28429f03e47a183a0a0b755987f3495994c3
2021-03-13 05:09:06 +07:00

18 lines
492 B
Text

type sswap, domain;
type sswap_exec, exec_type, file_type, vendor_file_type;
type sswap_device, dev_type;
init_daemon_domain(sswap);
allow sswap sswap_device:blk_file rw_file_perms;
allow sswap sysfs_sswap:file rw_file_perms;
allow sswap sysfs_sswap:dir search;
allow sswap block_device:dir search;
allow sswap self:capability sys_admin;
allow sswap proc_meminfo:file r_file_perms;
allow sswap properties_device:dir r_dir_perms;
r_dir_file(sswap, proc_stat);
set_prop(sswap, sswap_prop)