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

64 lines
1.7 KiB
Plaintext
Raw Normal View History

2006-03-08 20:09:42 +00:00
## <summary>Thunderbird email client</summary>
2008-11-05 16:10:46 +00:00
########################################
2006-03-08 20:09:42 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for thunderbird
2006-03-08 20:09:42 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
2006-03-08 20:09:42 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role allowed access
2006-03-08 20:09:42 +00:00
## </summary>
## </param>
2008-11-05 16:10:46 +00:00
## <param name="domain">
2006-03-08 20:09:42 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
2006-03-08 20:09:42 +00:00
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`thunderbird_role',`
gen_require(`
type thunderbird_t, thunderbird_exec_t;
type thunderbird_home_t, thunderbird_tmpfs_t;
2006-03-08 20:09:42 +00:00
')
2008-11-05 16:10:46 +00:00
role $1 types thunderbird_t;
2008-11-05 16:10:46 +00:00
domain_auto_trans($2, thunderbird_exec_t, thunderbird_t)
allow $2 thunderbird_t:fd use;
allow $2 thunderbird_t:shm { associate getattr };
allow $2 thunderbird_t:unix_stream_socket connectto;
allow thunderbird_t $2:fd use;
allow thunderbird_t $2:process sigchld;
allow thunderbird_t $2:unix_stream_socket connectto;
2008-11-05 16:10:46 +00:00
# allow ps to show thunderbird and allow the user to kill it
ps_process_pattern($2, thunderbird_t)
allow $2 thunderbird_t:process signal;
2006-03-08 20:09:42 +00:00
2008-11-05 16:10:46 +00:00
# Access ~/.thunderbird
manage_dirs_pattern($2, thunderbird_home_t, thunderbird_home_t)
manage_files_pattern($2, thunderbird_home_t, thunderbird_home_t)
manage_lnk_files_pattern($2, thunderbird_home_t, thunderbird_home_t)
relabel_dirs_pattern($2, thunderbird_home_t, thunderbird_home_t)
relabel_files_pattern($2, thunderbird_home_t, thunderbird_home_t)
relabel_lnk_files_pattern($2, thunderbird_home_t, thunderbird_home_t)
')
2006-03-08 20:09:42 +00:00
########################################
## <summary>
## Run thunderbird in the user thunderbird domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`thunderbird_domtrans',`
gen_require(`
2008-11-05 16:10:46 +00:00
type thunderbird_t, thunderbird_exec_t;
2006-03-08 20:09:42 +00:00
')
2008-11-05 16:10:46 +00:00
domtrans_pattern($1, thunderbird_exec_t, thunderbird_t)
2006-03-08 20:09:42 +00:00
')