|
Chris PeBenito |
185272 |
## <summary>Thunderbird email client</summary>
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
#######################################
|
|
Chris PeBenito |
185272 |
## <summary>
|
|
Chris PeBenito |
185272 |
## The per user domain 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 |
185272 |
template(`thunderbird_per_userdomain_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 |
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 |
185272 |
|
|
Chris PeBenito |
185272 |
# Access ~/.thunderbird
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_home_t:dir manage_dir_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_home_t:file manage_file_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
185272 |
userdom_search_user_home_dirs($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_tmpfs_t:dir rw_dir_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_tmpfs_t:file manage_file_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_tmpfs_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_tmpfs_t:sock_file manage_file_perms;
|
|
Chris PeBenito |
185272 |
allow $1_thunderbird_t $1_thunderbird_tmpfs_t:fifo_file manage_file_perms;
|
|
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 |
185272 |
allow $2 $1_thunderbird_t:dir { search getattr read };
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_t:{ file lnk_file } { read getattr };
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_t:process getattr;
|
|
Chris PeBenito |
185272 |
# We need to suppress this denial because procps tries to access
|
|
Chris PeBenito |
185272 |
# /proc/pid/environ and this now triggers a ptrace check in recent kernels
|
|
Chris PeBenito |
185272 |
# (2.4 and 2.6). Might want to change procps to not do this, or only if
|
|
Chris PeBenito |
185272 |
# running in a privileged domain.
|
|
Chris PeBenito |
185272 |
dontaudit $2 $1_thunderbird_t:process ptrace;
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Access ~/.thunderbird
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_home_t:dir manage_dir_perms;
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_home_t:file manage_file_perms;
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
185272 |
allow $2 $1_thunderbird_home_t:{ dir file lnk_file } { relabelfrom relabelto };
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Allow netstat
|
|
Chris PeBenito |
185272 |
kernel_read_network_state($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
corecmd_exec_shell($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
# Startup shellscript
|
|
Chris PeBenito |
185272 |
corecmd_exec_bin($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 |
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 |
185272 |
|
|
Chris PeBenito |
185272 |
fs_getattr_xattr_fs($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 |
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 |
185272 |
|
|
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 |
userdom_read_user_home_content_symlinks($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 |
185272 |
|
|
Chris PeBenito |
185272 |
userdom_manage_user_untrusted_content_files($1,$1_thunderbird_t,file)
|
|
Chris PeBenito |
185272 |
userdom_manage_user_untrusted_content_files($1,$1_thunderbird_t,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 |
185272 |
lpd_domtrans_user_lpr($1,$1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
185272 |
cups_read_rw_config($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 |
185272 |
nis_use_ypbind($1_thunderbird_t)
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
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 |
# FIXME: Why does it try to do that?
|
|
Chris PeBenito |
185272 |
#dontaudit $1_thunderbird_t evolution_exec_t:file { getattr execute };
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Why is thunderbird looking in .mozilla ?
|
|
Chris PeBenito |
185272 |
# FIXME: there are legitimate uses of invoking the browser - about -> release notes
|
|
Chris PeBenito |
185272 |
dontaudit $1_thunderbird_t $1_mozilla_home_t:dir search;
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
# Start links in web browser
|
|
Chris PeBenito |
185272 |
ifdef(`mozilla.te', `
|
|
Chris PeBenito |
185272 |
can_exec($1_thunderbird_t, shell_exec_t)
|
|
Chris PeBenito |
185272 |
domain_auto_trans($1_thunderbird_t, mozilla_exec_t, $1_mozilla_t)
|
|
Chris PeBenito |
185272 |
')
|
|
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 |
185272 |
optinal_policy(`dbus',`
|
|
Chris PeBenito |
185272 |
allow $1_t $2_dbusd_t:dbus send_msg;
|
|
Chris PeBenito |
185272 |
ifdef(`cups.te', `
|
|
Chris PeBenito |
185272 |
allow cupsd_t $1_t:dbus send_msg;
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
|
|
Chris PeBenito |
185272 |
')
|
|
Chris PeBenito |
185272 |
')
|