blob: 33b1df6ccb8e75354646613ea408214d4b3e15f7 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# gpsd - GPS daemon
2type gpsd, domain;
3type gpsd_exec, exec_type, file_type;
4
5init_daemon_domain(gpsd)
6net_domain(gpsd)
Stephen Smalleya60abdc2013-10-29 14:42:36 -04007allow gpsd gps_data_file:dir rw_dir_perms;
8allow gpsd gps_data_file:notdevfile_class_set create_file_perms;
Stephen Smalley2dd4e512012-01-04 12:33:27 -05009# Socket is created by the daemon, not by init, and under /data/gps,
10# not under /dev/socket.
11type_transition gpsd gps_data_file:sock_file gps_socket;
Stephen Smalleya60abdc2013-10-29 14:42:36 -040012allow gpsd gps_socket:sock_file create_file_perms;
13# XXX Label sysfs files with a specific type?
14allow gpsd sysfs:file rw_file_perms;
rpcraige07b8a52012-08-13 06:09:39 -040015
Stephen Smalleya60abdc2013-10-29 14:42:36 -040016allow gpsd gps_device:chr_file rw_file_perms;
17
18# Execute the shell or system commands.
19allow gpsd shell_exec:file rx_file_perms;
20allow gpsd system_file:file rx_file_perms;