android_device_xiaomi_sm835.../sepolicy/vendor/batterysecret.te
Alexander Winkowski 4726aafd72 sm8350-common: sepolicy: Rework batterysecret rules
Change-Id: I98b231406fa1a2910cbedd133b33554e7d1c9268
2024-05-20 18:02:56 +02:00

19 lines
565 B
Plaintext

define(`batterysecret_sysfs', `{
vendor_sysfs_battery_supply
vendor_sysfs_usb_c
vendor_sysfs_usb_supply
vendor_sysfs_usbpd_device
}')
type batterysecret, domain;
type batterysecret_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(batterysecret)
allow batterysecret batterysecret_sysfs:dir search;
allow batterysecret batterysecret_sysfs:file rw_file_perms;
allow batterysecret kmsg_device:chr_file { getattr w_file_perms };
allow batterysecret self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
wakelock_use(batterysecret)