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