blob: 24230039ce4231b2682feeebbfabeef751374e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#integrated process
type vm_bms, domain, domain_deprecated;
type vm_bms_exec, exec_type, file_type;
#started by init
init_daemon_domain(vm_bms)
#allow vm_bms to visit chr_file
allow vm_bms {
tmpfs
vm_bms_device
battery_data_device
}:chr_file rw_file_perms;
#allow vm_bms to drop down to system service
allow vm_bms self:capability { setpcap setgid setuid };
#allow vm_bms to block the system suspend and get wake lock
wakelock_use(vm_bms)
#allow vm_bms to visit sysfs
allow vm_bms sysfs:file w_file_perms;
|