universal7870: import sepolicy from 7580-common

thanks to @danwood76
This commit is contained in:
Alejandro 2020-05-31 21:04:02 +02:00
parent 9ce97a0bfb
commit 0cfeb0ec4f
61 changed files with 507 additions and 425 deletions

18
sepolicy/sswap.te Normal file
View file

@ -0,0 +1,18 @@
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)