android_device_xiaomi_sm835.../sepolicy/vendor/batterysecret.te

19 lines
565 B
Plaintext
Raw Normal View History

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)