selinux-refpolicy/policy/modules/apps/tvtime.if

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-02-01 15:11:43 +00:00
## <summary> tvtime - a high quality television application </summary>
2008-11-05 16:10:46 +00:00
########################################
2006-02-01 15:11:43 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for tvtime
2006-02-01 15:11:43 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
## <summary>
2008-11-05 16:10:46 +00:00
## Role allowed access
## </summary>
2006-02-01 15:11:43 +00:00
## </param>
2008-11-05 16:10:46 +00:00
## <param name="domain">
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
## </summary>
2006-02-01 15:11:43 +00:00
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`tvtime_role',`
gen_require(`
2008-11-05 16:10:46 +00:00
type tvtime_t, tvtime_exec_t;
type tvtime_home_t, tvtime_tmpfs_t;
')
2006-02-01 15:11:43 +00:00
2008-11-05 16:10:46 +00:00
role $1 types tvtime_t;
2006-02-01 15:11:43 +00:00
# Type transition
2008-11-05 16:10:46 +00:00
domtrans_pattern($2, tvtime_exec_t, tvtime_t)
2006-02-01 15:11:43 +00:00
# X access, Home files
2008-11-05 16:10:46 +00:00
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)
2006-02-01 15:11:43 +00:00
# Allow the user domain to signal/ps.
2008-11-05 16:10:46 +00:00
ps_process_pattern($2, tvtime_t)
allow $2 tvtime_t:process signal_perms;
2006-02-01 15:11:43 +00:00
')