|
Chris PeBenito |
185272 |
## <summary>Thunderbird email client</summary>
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
#######################################
|
|
Chris PeBenito |
185272 |
## <summary>
|
|
Chris PeBenito |
bbcd3c |
## The per role template for the thunderbird module.
|
|
Chris PeBenito |
185272 |
## </summary>
|
|
Chris PeBenito |
185272 |
## <desc>
|
|
Chris PeBenito |
185272 |
##
|
|
Chris PeBenito |
185272 |
## This template creates a derived domain which is used
|
|
Chris PeBenito |
185272 |
## for the thunderbird email client.
|
|
Chris PeBenito |
185272 |
##
|
|
Chris PeBenito |
185272 |
##
|
|
Chris PeBenito |
185272 |
## This template is invoked automatically for each user, and
|
|
Chris PeBenito |
185272 |
## generally does not need to be invoked directly
|
|
Chris PeBenito |
185272 |
## by policy writers.
|
|
Chris PeBenito |
185272 |
##
|
|
Chris PeBenito |
185272 |
## </desc>
|
|
Chris PeBenito |
185272 |
## <param name="userdomain_prefix">
|
|
Chris PeBenito |
185272 |
## <summary>
|
|
Chris PeBenito |
185272 |
## The prefix of the user domain (e.g., user
|
|
Chris PeBenito |
185272 |
## is the prefix for user_t).
|
|
Chris PeBenito |
185272 |
## </summary>
|
|
Chris PeBenito |
185272 |
## </param>
|
|
Chris PeBenito |
185272 |
## <param name="user_domain">
|
|
Chris PeBenito |
185272 |
## <summary>
|
|
Chris PeBenito |
185272 |
## The type of the user domain.
|
|
Chris PeBenito |
185272 |
## </summary>
|
|
Chris PeBenito |
185272 |
## </param>
|
|
Chris PeBenito |
185272 |
## <param name="user_role">
|
|
Chris PeBenito |
185272 |
## <summary>
|
|
Chris PeBenito |
185272 |
## The role associated with the user domain.
|
|
Chris PeBenito |
185272 |
## </summary>
|
|
Chris PeBenito |
185272 |
## </param>
|
|
Chris PeBenito |
185272 |
#
|
|
Chris PeBenito |
bbcd3c |
template(`thunderbird_per_role_template',`
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
########################################
|
|
Chris PeBenito |
185272 |
#
|
|
Chris PeBenito |
185272 |
# Declarations
|
|
Chris PeBenito |
185272 |
#
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
type $1_thunderbird_t;
|
|
Chris PeBenito |
185272 |
domain_type($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
domain_entry_file($1_thunderbird_t,thunderbird_exec_t)
|
|
Chris PeBenito |
185272 |
role $3 types $1_thunderbird_t;
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
type $1_thunderbird_home_t alias $1_thunderbird_rw_t;
|
|
Chris PeBenito |
185272 |
files_poly_member($1_thunderbird_home_t)
|
|
Chris PeBenito |
6b19be |
userdom_user_home_content($1, $1_thunderbird_home_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
type $1_thunderbird_tmpfs_t;
|
|
Chris PeBenito |
185272 |
files_tmpfs_file($1_thunderbird_tmpfs_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
########################################
|
|
Chris PeBenito |
185272 |
#
|
|
Chris PeBenito |
185272 |
# Local policy
|
|
Chris PeBenito |
185272 |
#
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:capability sys_nice;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:process { signal_perms setsched getsched execheap execmem execstack };
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:fifo_file { ioctl read write getattr };
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:unix_dgram_socket { create connect };
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:unix_stream_socket { create accept connect write getattr read listen bind };
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t self:shm { read write create destroy unix_read unix_write };
|
|
Chris PeBenito |
6b19be |
allow $1_thunderbird_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Access ~/.thunderbird
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern($1_thunderbird_t,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern($1_thunderbird_t,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern($1_thunderbird_t,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
185272 |
userdom_search_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern($1_thunderbird_t,$1_thunderbird_tmpfs_t,$1_thunderbird_tmpfs_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern($1_thunderbird_t,$1_thunderbird_tmpfs_t,$1_thunderbird_tmpfs_t)
|
|
Chris PeBenito |
c0868a |
manage_fifo_files_pattern($1_thunderbird_t,$1_thunderbird_tmpfs_t,$1_thunderbird_tmpfs_t)
|
|
Chris PeBenito |
c0868a |
manage_sock_files_pattern($1_thunderbird_t,$1_thunderbird_tmpfs_t,$1_thunderbird_tmpfs_t)
|
|
Chris PeBenito |
3bb0a3 |
fs_tmpfs_filetrans($1_thunderbird_t,$1_thunderbird_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_t:fd use;
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_t:shm { associate getattr };
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $2:fd use;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $2:process sigchld;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $2:unix_stream_socket connectto;
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Allow the user domain to signal/ps.
|
|
Chris PeBenito |
c0868a |
ps_process_pattern($2,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Access ~/.thunderbird
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern($2,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern($2,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern($2,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
c0868a |
relabel_dirs_pattern($2,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
c0868a |
relabel_files_pattern($2,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
c0868a |
relabel_lnk_files_pattern($2,$1_thunderbird_home_t,$1_thunderbird_home_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Allow netstat
|
|
Chris PeBenito |
185272 |
kernel_read_network_state($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
kernel_read_net_sysctls($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
kernel_read_system_state($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
corecmd_exec_shell($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
# Startup shellscript
|
|
Chris PeBenito |
6b19be |
corecmd_search_sbin($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
c0d8c4 |
corenet_non_ipsec_sendrecv($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_generic_if($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_tcp_sendrecv_all_nodes($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_ipp_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_ldap_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_innd_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_smtp_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_pop_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_sendrecv_http_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_connect_ipp_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_connect_ldap_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_connect_innd_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_connect_smtp_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_connect_pop_port($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
corenet_tcp_connect_http_port($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_sendrecv_ipp_client_packets($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_sendrecv_ldap_client_packets($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_sendrecv_innd_client_packets($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_sendrecv_smtp_client_packets($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_sendrecv_pop_client_packets($1_thunderbird_t)
|
|
Chris PeBenito |
c0d8c4 |
corenet_sendrecv_http_client_packets($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
6b19be |
dev_read_urand($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
dev_dontaudit_search_sysfs($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
185272 |
files_list_tmp($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_read_usr_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_read_etc_files($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_read_etc_runtime_files($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_read_var_files($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_read_var_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_dontaudit_getattr_all_tmp_files($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_dontaudit_getattr_boot_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_dontaudit_getattr_lost_found_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
files_dontaudit_search_mnt($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_getattr_xattr_fs($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
fs_list_inotifyfs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
# Access ~/.thunderbird
|
|
Chris PeBenito |
185272 |
fs_search_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
libs_use_shared_libs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
libs_use_ld_so($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
miscfiles_read_fonts($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
miscfiles_read_localization($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
sysnet_read_config($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
# Allow DNS
|
|
Chris PeBenito |
185272 |
sysnet_dns_name_resolve($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
userdom_manage_user_tmp_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_tmp_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_write_user_tmp_sockets($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_manage_user_tmp_sockets($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
# .kde/....gtkrc
|
|
Chris PeBenito |
185272 |
userdom_read_user_home_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
xserver_user_client_template($1,$1_thunderbird_t,$1_thunderbird_tmpfs_t)
|
|
Chris PeBenito |
6b19be |
xserver_read_xdm_tmp_files($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
xserver_dontaudit_getattr_xdm_tmp_sockets($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
185272 |
# Transition from user type
|
|
Chris PeBenito |
185272 |
tunable_policy(`! disable_thunderbird_trans',`
|
|
Chris PeBenito |
185272 |
domain_auto_trans($2, thunderbird_exec_t, $1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Access ~/.thunderbird
|
|
Chris PeBenito |
185272 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
185272 |
fs_manage_nfs_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_nfs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_nfs_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
185272 |
fs_manage_cifs_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_cifs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_cifs_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
tunable_policy(`mail_read_content && use_nfs_home_dirs',`
|
|
Chris PeBenito |
185272 |
files_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_list_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_read_nfs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_read_nfs_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_nfs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_read_nfs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
tunable_policy(`mail_read_content && use_samba_home_dirs',`
|
|
Chris PeBenito |
185272 |
files_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_list_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_read_cifs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_read_cifs_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_read_cifs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_cifs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
tunable_policy(`mail_read_content',`
|
|
Chris PeBenito |
185272 |
userdom_list_user_tmp($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_tmp_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_tmp_symlinks($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_search_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_home_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
d576ae |
ifndef(`enable_mls',`
|
|
Chris PeBenito |
185272 |
fs_search_removable($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_read_removable_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_read_removable_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_tmp($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_removable($1_thunderbird_t)
|
|
Chris PeBenito |
e99359 |
fs_dontaudit_read_removable_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_list_user_tmp($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_read_user_tmp_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_list_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_read_user_home_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
tunable_policy(`mail_read_content && read_default_t',`
|
|
Chris PeBenito |
185272 |
files_list_default($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_read_default_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_read_default_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
files_dontaudit_read_default_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_default($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
tunable_policy(`mail_read_content && read_untrusted_content',`
|
|
Chris PeBenito |
185272 |
files_list_tmp($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
userdom_search_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_list_user_untrusted_content($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_untrusted_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_untrusted_content_symlinks($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_list_user_tmp_untrusted_content($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_tmp_untrusted_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_read_user_tmp_untrusted_content_symlinks($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_tmp($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_list_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_list_user_untrusted_content($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_read_user_untrusted_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_list_user_tmp_untrusted_content($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_read_user_tmp_untrusted_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Manage nfs homedirs
|
|
Chris PeBenito |
185272 |
tunable_policy(`write_untrusted_content && use_nfs_home_dirs',`
|
|
Chris PeBenito |
185272 |
files_search_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_search_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_nfs_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_nfs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_nfs_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_manage_nfs_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_manage_nfs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Manage samba homedirs
|
|
Chris PeBenito |
185272 |
tunable_policy(`write_untrusted_content && use_samba_home_dirs',`
|
|
Chris PeBenito |
185272 |
files_search_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
fs_search_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_cifs_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_cifs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_manage_cifs_symlinks($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
fs_dontaudit_list_auto_mountpoints($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_manage_cifs_dirs($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
fs_dontaudit_manage_cifs_files($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Manage /tmp and /home
|
|
Chris PeBenito |
185272 |
tunable_policy(`write_untrusted_content',`
|
|
Chris PeBenito |
185272 |
files_search_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_tmp_filetrans($1_thunderbird_t,$1_untrusted_content_tmp_t,file)
|
|
Chris PeBenito |
185272 |
files_tmp_filetrans($1_thunderbird_t,$1_untrusted_content_tmp_t,dir)
|
|
Chris PeBenito |
6b19be |
userdom_manage_user_untrusted_content_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
userdom_manage_user_untrusted_content_tmp_files($1, $1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
userdom_user_home_dir_filetrans($1,$1_thunderbird_t,$1_untrusted_content_tmp_t, { file dir })
|
|
Chris PeBenito |
6b19be |
userdom_user_home_content_filetrans($1,$1_thunderbird_t,$1_untrusted_content_tmp_t, { file dir })
|
|
Chris PeBenito |
185272 |
',`
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_home($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
files_dontaudit_list_tmp($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_list_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_manage_user_tmp_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_manage_user_tmp_files($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
userdom_dontaudit_manage_user_home_content_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
185272 |
dbus_system_bus_client_template($1_thunderbird,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
dbus_user_bus_client_template($1,$1_thunderbird,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
dbus_send_system_bus($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
dbus_send_user_bus($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
6b19be |
cups_read_rw_config($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
cups_dbus_chat($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
6b19be |
gnome_stream_connect_gconf_template($1,$1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
gnome_domtrans_user_gconf($1, $1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
gnome_manage_user_gnome_config($1, $1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
185272 |
gpg_domtrans_user_gpg($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
6b19be |
lpd_domtrans_user_lpr($1,$1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
optional_policy(`
|
|
Chris PeBenito |
6b19be |
mozilla_read_user_home_files($1, $1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
mozilla_domtrans_user_mozilla($1, $1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
mozilla_dbus_chat($1, $1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
optional_policy(`
|
|
Chris PeBenito |
185272 |
nis_use_ypbind($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
6b19be |
optional_policy(`
|
|
Chris PeBenito |
6b19be |
nscd_socket_use($1_thunderbird_t)
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
185272 |
ifdef(`TODO',`
|
|
Chris PeBenito |
185272 |
# FIXME: Rules were removed to centralize policy in a gnome_app macro
|
|
Chris PeBenito |
185272 |
# A similar thing might be necessary for mozilla compiled without GNOME
|
|
Chris PeBenito |
185272 |
# support (is this possible?).
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# GNOME support
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
185272 |
gnome_application($1_thunderbird, $1)
|
|
Chris PeBenito |
185272 |
gnome_file_dialog($1_thunderbird, $1)
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_gnome_settings_t:file { read write };
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
6b19be |
########################################
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Run thunderbird in the user thunderbird domain.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## <desc>
|
|
Chris PeBenito |
6b19be |
##
|
|
Chris PeBenito |
6b19be |
## Run thunderbird in the user thunderbird domain.
|
|
Chris PeBenito |
6b19be |
##
|
|
Chris PeBenito |
6b19be |
##
|
|
Chris PeBenito |
6b19be |
## This is a templated interface, and should only
|
|
Chris PeBenito |
6b19be |
## be called from a per-userdomain template.
|
|
Chris PeBenito |
6b19be |
##
|
|
Chris PeBenito |
6b19be |
## </desc>
|
|
Chris PeBenito |
6b19be |
## <param name="userdomain_prefix">
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## The prefix of the user domain (e.g., user
|
|
Chris PeBenito |
6b19be |
## is the prefix for user_t).
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## </param>
|
|
Chris PeBenito |
6b19be |
## <param name="domain">
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Domain allowed access.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## </param>
|
|
Chris PeBenito |
6b19be |
#
|
|
Chris PeBenito |
6b19be |
template(`thunderbird_domtrans_user_thunderbird',`
|
|
Chris PeBenito |
6b19be |
gen_require(`
|
|
Chris PeBenito |
6b19be |
type $1_thunderbird_t, thunderbird_exec_t;
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
domtrans_pattern($2, thunderbird_exec_t,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|