sm8250-common: sepolicy: Initial vendor sepolicy

Change-Id: I28ae7907209b5aae9806466556dc49639dd7c9e4
This commit is contained in:
LuK1337
2021-01-05 20:04:57 +01:00
parent 507155e7a5
commit f9c9767e3b
40 changed files with 588 additions and 0 deletions

View File

@@ -2,3 +2,15 @@ type dashd, domain;
type dashd_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(dashd)
allow dashd vendor_sysfs_battery_supply:file w_file_perms;
allow dashd vendor_sysfs_usb_supply:file w_file_perms;
allow dashd proc_cmdline:file r_file_perms;
allow dashd dash_device:chr_file rw_file_perms;
allow dashd kmsg_device:chr_file rw_file_perms;
r_dir_file(dashd, vendor_sysfs_battery_supply)
r_dir_file(dashd, vendor_sysfs_usb_supply)
r_dir_file(dashd, sysfs_dash_charger)