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">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## Role allowed access
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-02-01 15:11:43 +00:00
|
|
|
## </param>
|
2008-11-05 16:10:46 +00:00
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2008-11-05 16:10:46 +00:00
|
|
|
## User domain for the role
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-02-01 15:11:43 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2008-11-05 16:10:46 +00:00
|
|
|
interface(`tvtime_role',`
|
2007-02-16 23:01:42 +00:00
|
|
|
gen_require(`
|
2008-11-05 16:10:46 +00:00
|
|
|
type tvtime_t, tvtime_exec_t;
|
|
|
|
type tvtime_home_t, tvtime_tmpfs_t;
|
2007-02-16 23:01:42 +00:00
|
|
|
')
|
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
|
|
|
')
|