Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/ica.if

59 lines
1.2 KiB
Text
Raw Permalink Normal View History

## <summary>policy for ica</summary>
########################################
## <summary>
## Read and map ica tmpfs files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ica_read_map_tmpfs_files',`
gen_require(`
type ica_tmpfs_t;
')
fs_search_tmpfs($1)
mmap_read_files_pattern($1, ica_tmpfs_t, ica_tmpfs_t)
')
########################################
## <summary>
## Read, write, and map ica tmpfs files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ica_rw_map_tmpfs_files',`
gen_require(`
type ica_tmpfs_t;
')
fs_search_tmpfs($1)
mmap_rw_files_pattern($1, ica_tmpfs_t, ica_tmpfs_t)
')
########################################
## <summary>
## Transition to ica named content
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ica_filetrans_named_content',`
gen_require(`
type ica_tmpfs_t;
')
allow $1 ica_tmpfs_t:file create_file_perms;
fs_tmpfs_filetrans($1, ica_tmpfs_t, file, "icastats_0")
')