aboutsummaryrefslogtreecommitdiffstats
path: root/selinux/geomagneticd.te
blob: 8b477ad4f15ff9df07372a959521d9dc5eff05d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
type geomagneticd, domain;
type geomagneticd_exec, exec_type, file_type;
init_daemon_domain(geomagneticd)
domain_trans(init, rootfs, geomagneticd)

allow geomagneticd gps_data_file:file write;
allow geomagneticd input_device:chr_file { read ioctl open };
allow geomagneticd input_device:dir { read open };
allow geomagneticd gps_data_file:file { read getattr open };
allow geomagneticd sysfs:file write;
allow geomagneticd input_device:dir search;
allow geomagneticd gps_data_file:dir { write remove_name add_name };
allow geomagneticd gps_data_file:file { write rename create open setattr };
# load SHIM libraries
allow init geomagneticd:process noatsecure;