sanders: update sepolicy.
-Fix Neverallows. -Fix missing type. -Fix type attributes. Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com> Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
This commit is contained in:
6
sepolicy/vendor/charge_only.te
vendored
6
sepolicy/vendor/charge_only.te
vendored
@@ -2,9 +2,6 @@ type charge_only, domain;
|
||||
type charge_only_exec, exec_type, file_type, vendor_file_type;
|
||||
init_daemon_domain(charge_only)
|
||||
|
||||
allow charge_only chargeonly_data_file:dir rw_dir_perms;
|
||||
allow charge_only chargeonly_data_file:file rw_file_perms;
|
||||
|
||||
# Write to /dev/kmsg
|
||||
allow charge_only kmsg_device:chr_file rw_file_perms;
|
||||
|
||||
@@ -13,7 +10,7 @@ r_dir_file(charge_only, sysfs_type)
|
||||
r_dir_file(charge_only, rootfs)
|
||||
r_dir_file(charge_only, cgroup)
|
||||
|
||||
allow charge_only self:capability { dac_override net_admin sys_tty_config sys_boot };
|
||||
allow charge_only self:capability { net_admin sys_tty_config sys_boot };
|
||||
allow charge_only self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
|
||||
|
||||
wakelock_use(charge_only)
|
||||
@@ -24,7 +21,6 @@ allow charge_only sysfs:dir { read open };
|
||||
allow charge_only sysfs:file { read open write };
|
||||
|
||||
allow charge_only sysfs_wake_lock:file rw_file_perms;
|
||||
allow charge_only system_data_file:dir { write add_name };
|
||||
|
||||
allow charge_only sysfs_batteryinfo:file r_file_perms;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user