aboutsummaryrefslogtreecommitdiffstats
path: root/sepolicy/geomagneticd.te
blob: ddfa01e9fe1ca33a01bc23da8c52fd3a5f3b05cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# geomagneticd
type geomagneticd, domain;
type geomagneticd_exec, exec_type, file_type;

init_daemon_domain(geomagneticd)

# the sensor is an input device
allow geomagneticd input_device:chr_file rw_file_perms;
allow geomagneticd input_device:dir r_dir_perms;

# store/read calibration data
allow geomagneticd sensors_data_file:dir w_dir_perms;
allow geomagneticd sensors_data_file:file create_file_perms;

# read/write calibration offsets
# TODO: create own label
allow geomagneticd sysfs:file write;