Blame policy/modules/services/gpsd.if
|
Chris PeBenito |
cca4a2 |
## <summary>gpsd monitor daemon</summary>
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
cca4a2 |
########################################
|
|
Chris PeBenito |
cca4a2 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Execute a domain transition to run gpsd.
|
|
Chris PeBenito |
cca4a2 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## <param name="domain">
|
|
Chris PeBenito |
cca4a2 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Domain allowed to transition.
|
|
Chris PeBenito |
cca4a2 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## </param>
|
|
Chris PeBenito |
cca4a2 |
#
|
|
Chris PeBenito |
cca4a2 |
interface(`gpsd_domtrans',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type gpsd_t, gpsd_exec_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
3f67f7 |
domtrans_pattern($1, gpsd_exec_t, gpsd_t)
|
|
Chris PeBenito |
cca4a2 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
cca4a2 |
########################################
|
|
Chris PeBenito |
cca4a2 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Execute gpsd in the gpsd domain, and
|
|
Chris PeBenito |
3f67f7 |
## allow the specified role the gpsd domain.
|
|
Chris PeBenito |
cca4a2 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## <param name="domain">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## </param>
|
|
Chris PeBenito |
cca4a2 |
## <param name="role">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
a7ee7f |
## Role allowed access.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## </param>
|
|
Chris PeBenito |
cca4a2 |
#
|
|
Chris PeBenito |
cca4a2 |
interface(`gpsd_run',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type gpsd_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
3f67f7 |
gpsd_domtrans($1)
|
|
Chris PeBenito |
3f67f7 |
role $2 types gpsd_t;
|
|
Chris PeBenito |
cca4a2 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
cca4a2 |
########################################
|
|
Chris PeBenito |
f37b7b |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Read and write gpsd shared memory.
|
|
Chris PeBenito |
cca4a2 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## <param name="domain">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Domain allowed access.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## </param>
|
|
Chris PeBenito |
cca4a2 |
#
|
|
Chris PeBenito |
cca4a2 |
interface(`gpsd_rw_shm',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type gpsd_t, gpsd_tmpfs_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
3f67f7 |
allow $1 gpsd_t:shm rw_shm_perms;
|
|
Chris PeBenito |
3f67f7 |
allow $1 gpsd_tmpfs_t:dir list_dir_perms;
|
|
Chris PeBenito |
3f67f7 |
rw_files_pattern($1, gpsd_tmpfs_t, gpsd_tmpfs_t)
|
|
Chris PeBenito |
3f67f7 |
read_lnk_files_pattern($1, gpsd_tmpfs_t, gpsd_tmpfs_t)
|
|
Chris PeBenito |
3f67f7 |
fs_search_tmpfs($1)
|
|
Chris PeBenito |
cca4a2 |
')
|