selinux-policy/policy/modules/apps/gift.if

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-04-24 20:21:27 +00:00
## <summary>giFT peer to peer file sharing tool</summary>
2008-11-05 16:10:46 +00:00
############################################################
2006-04-24 20:21:27 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for gift
2006-04-24 20:21:27 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
2006-04-24 20:21:27 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role allowed access
2006-04-24 20:21:27 +00:00
## </summary>
## </param>
2008-11-05 16:10:46 +00:00
## <param name="domain">
2006-04-24 20:21:27 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
2006-04-24 20:21:27 +00:00
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`gift_role',`
gen_require(`
type gift_t, gift_exec_t;
type giftd_t, giftd_exec_t;
type gift_home_t;
')
2006-04-24 20:21:27 +00:00
2008-11-05 16:10:46 +00:00
role $1 types { gift_t giftd_t };
2006-04-24 20:21:27 +00:00
# transition from user domain
2008-11-05 16:10:46 +00:00
domtrans_pattern($2, gift_exec_t, gift_t)
domtrans_pattern($2, giftd_exec_t, giftd_t)
2006-04-24 20:21:27 +00:00
# user managed content
2008-11-05 16:10:46 +00:00
manage_dirs_pattern($2, gift_home_t, gift_home_t)
manage_files_pattern($2, gift_home_t, gift_home_t)
manage_lnk_files_pattern($2, gift_home_t, gift_home_t)
relabel_dirs_pattern($2, gift_home_t, gift_home_t)
relabel_files_pattern($2, gift_home_t, gift_home_t)
relabel_lnk_files_pattern($2, gift_home_t, gift_home_t)
2006-04-24 20:21:27 +00:00
# Allow the user domain to signal/ps.
2008-11-05 16:10:46 +00:00
ps_process_pattern($2, { gift_t giftd_t })
allow $2 { gift_t giftd_t }:process signal_perms;
2006-04-24 20:21:27 +00:00
')