selinux-policy/policy/modules/apps/tvtime.if
2008-11-05 16:10:46 +00:00

41 lines
1.0 KiB
Plaintext

## <summary> tvtime - a high quality television application </summary>
########################################
## <summary>
## Role access for tvtime
## </summary>
## <param name="role">
## <summary>
## Role allowed access
## </summary>
## </param>
## <param name="domain">
## <summary>
## User domain for the role
## </summary>
## </param>
#
interface(`tvtime_role',`
gen_require(`
type tvtime_t, tvtime_exec_t;
type tvtime_home_t, tvtime_tmpfs_t;
')
role $1 types tvtime_t;
# Type transition
domtrans_pattern($2, tvtime_exec_t, tvtime_t)
# X access, Home files
manage_dirs_pattern($2, tvtime_home_t, tvtime_home_t)
manage_files_pattern($2, tvtime_home_t, tvtime_home_t)
manage_lnk_files_pattern($2, tvtime_home_t, tvtime_home_t)
relabel_dirs_pattern($2, tvtime_home_t, tvtime_home_t)
relabel_files_pattern($2, tvtime_home_t, tvtime_home_t)
relabel_lnk_files_pattern($2, tvtime_home_t, tvtime_home_t)
# Allow the user domain to signal/ps.
ps_process_pattern($2, tvtime_t)
allow $2 tvtime_t:process signal_perms;
')