summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Yang <yangken@google.com>2023-01-05 07:00:10 +0000
committerKen Yang <yangken@google.com>2023-01-05 07:00:10 +0000
commit42e309623f33f0e266d349ae7f9d06d9fff698a8 (patch)
tree0f6a8e30d6683612aa3eaa2f0e7acb1be59d4313
parent43e29b8aeca19dc30ab4865ad409683f60b12dd1 (diff)
downloadpixel-sepolicy-42e309623f33f0e266d349ae7f9d06d9fff698a8.tar.gz
WLC: Remove the sysfs_wlc policies from googlebattery
Bug: 263830018 Change-Id: I5609be641074378c41134c280df14a4484bce380 Signed-off-by: Ken Yang <yangken@google.com>
-rw-r--r--googlebattery/hal_googlebattery.te4
1 files changed, 2 insertions, 2 deletions
diff --git a/googlebattery/hal_googlebattery.te b/googlebattery/hal_googlebattery.te
index 005e47c..2cc3a7c 100644
--- a/googlebattery/hal_googlebattery.te
+++ b/googlebattery/hal_googlebattery.te
@@ -4,12 +4,12 @@ type hal_googlebattery_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_googlebattery)
r_dir_file(hal_googlebattery, sysfs_batteryinfo)
-r_dir_file(hal_googlebattery, sysfs_wlc)
+
allow hal_googlebattery sysfs_batteryinfo:file rw_file_perms;
allow hal_googlebattery self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
allow hal_googlebattery sysfs_chargelevel:file rw_file_perms;
-allow hal_googlebattery sysfs_wlc:file rw_file_perms;
+
set_prop(hal_googlebattery, vendor_battery_defender_prop)