aboutsummaryrefslogtreecommitdiffstats
path: root/selinux/geomagneticd.te
blob: de18064f9c1b7306a83e0990ab8a0a0595fe1d70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 };
allow geomagneticd self:capability dac_override;
# load SHIM libraries
allow init geomagneticd:process noatsecure;