1 ## <summary>gpsd monitor daemon</summary>
3 ########################################
5 ## Execute a domain transition to run gpsd.
7 ## <param name="domain">
9 ## Domain allowed to transition.
13 interface(`gpsd_domtrans',`
15 type gpsd_t, gpsd_exec_t;
18 domtrans_pattern($1, gpsd_exec_t, gpsd_t)
21 ########################################
23 ## Execute gpsd in the gpsd domain, and
24 ## allow the specified role the gpsd domain.
26 ## <param name="domain">
28 ## Domain allowed access
31 ## <param name="role">
33 ## The role to be allowed the gpsd domain.
36 ## <param name="terminal">
38 ## The type of the role's terminal.
42 interface(`gpsd_run',`
49 allow gpsd_t $3:chr_file rw_term_perms;
52 ########################################
54 ## Read and write gpsd shared memory.
56 ## <param name="domain">
58 ## Domain allowed access.
62 interface(`gpsd_rw_shm',`
64 type gpsd_t, gpsd_tmpfs_t;
67 allow $1 gpsd_t:shm rw_shm_perms;
68 allow $1 gpsd_tmpfs_t:dir list_dir_perms;
69 rw_files_pattern($1, gpsd_tmpfs_t, gpsd_tmpfs_t)
70 read_lnk_files_pattern($1, gpsd_tmpfs_t, gpsd_tmpfs_t)