|
Chris PeBenito |
29af4c |
policy_module(samba, 1.13.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
dd9e1d |
## Allow samba to modify public files used for public file
|
|
Chris PeBenito |
dd9e1d |
## transfer services. Files/Directories must be labeled
|
|
Chris PeBenito |
dd9e1d |
## public_content_rw_t.
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(allow_smbd_anon_write, false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
b81bfc |
## Allow samba to create new home directories (e.g. via PAM)
|
|
Chris PeBenito |
b81bfc |
##
|
|
Chris PeBenito |
b81bfc |
## </desc>
|
|
Chris PeBenito |
b81bfc |
gen_tunable(samba_create_home_dirs, false)
|
|
Chris PeBenito |
b81bfc |
|
|
Chris PeBenito |
b81bfc |
## <desc>
|
|
Chris PeBenito |
b81bfc |
##
|
|
Chris PeBenito |
dd9e1d |
## Allow samba to act as the domain controller, add users,
|
|
Chris PeBenito |
dd9e1d |
## groups and change passwords.
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
40df56 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(samba_domain_controller, false)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
## <desc>
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
dd9e1d |
## Allow samba to share users home directories.
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(samba_enable_home_dirs, false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
dd9e1d |
## Allow samba to share any file/directory read only.
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
40df56 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(samba_export_all_ro, false)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
## <desc>
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
dd9e1d |
## Allow samba to share any file/directory read/write.
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
40df56 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(samba_export_all_rw, false)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
## <desc>
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
40df56 |
## Allow samba to run unconfined scripts
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
40df56 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(samba_run_unconfined, false)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
## <desc>
|
|
Chris PeBenito |
40df56 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow samba to export NFS volumes.
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(samba_share_nfs, false)
|
|
Chris PeBenito |
56e1b3 |
|
|
Jeremy Solt |
34838a |
## <desc>
|
|
Jeremy Solt |
34838a |
##
|
|
Jeremy Solt |
34838a |
## Allow samba to export ntfs/fusefs volumes.
|
|
Jeremy Solt |
34838a |
##
|
|
Jeremy Solt |
34838a |
## </desc>
|
|
Jeremy Solt |
34838a |
gen_tunable(samba_share_fusefs, false)
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
17de1b |
type nmbd_t;
|
|
Chris PeBenito |
17de1b |
type nmbd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(nmbd_t, nmbd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type nmbd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(nmbd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type samba_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(samba_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
type samba_initrc_exec_t;
|
|
Chris PeBenito |
0c8917 |
init_script_file(samba_initrc_exec_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
17de1b |
type samba_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(samba_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type samba_net_t;
|
|
Chris PeBenito |
17de1b |
type samba_net_exec_t;
|
|
Chris PeBenito |
0c8917 |
application_domain(samba_net_t, samba_net_exec_t)
|
|
Chris PeBenito |
0c8917 |
role system_r types samba_net_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type samba_net_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(samba_net_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type samba_secrets_t;
|
|
Chris PeBenito |
17de1b |
files_type(samba_secrets_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type samba_share_t; # customizable
|
|
Chris PeBenito |
17de1b |
files_type(samba_share_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type samba_var_t;
|
|
Chris PeBenito |
17de1b |
files_type(samba_var_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
type smbcontrol_t;
|
|
Chris PeBenito |
0c8917 |
type smbcontrol_exec_t;
|
|
Chris PeBenito |
0c8917 |
application_domain(smbcontrol_t, smbcontrol_exec_t)
|
|
Chris PeBenito |
0c8917 |
role system_r types smbcontrol_t;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
17de1b |
type smbd_t;
|
|
Chris PeBenito |
17de1b |
type smbd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(smbd_t, smbd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type smbd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(smbd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type smbd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(smbd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type smbmount_t;
|
|
Chris PeBenito |
17de1b |
domain_type(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type smbmount_exec_t;
|
|
Chris PeBenito |
0bfccd |
domain_entry_file(smbmount_t, smbmount_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type swat_t;
|
|
Chris PeBenito |
17de1b |
type swat_exec_t;
|
|
Chris PeBenito |
85f0c3 |
domain_type(swat_t)
|
|
Chris PeBenito |
0bfccd |
domain_entry_file(swat_t, swat_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types swat_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type swat_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(swat_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type swat_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(swat_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type winbind_t;
|
|
Chris PeBenito |
17de1b |
type winbind_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(winbind_t, winbind_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type winbind_helper_t;
|
|
Chris PeBenito |
17de1b |
domain_type(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
role system_r types winbind_helper_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type winbind_helper_exec_t;
|
|
Chris PeBenito |
0bfccd |
domain_entry_file(winbind_helper_t, winbind_helper_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type winbind_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(winbind_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type winbind_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(winbind_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Samba net local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Jeremy Solt |
34838a |
allow samba_net_t self:capability { sys_chroot sys_nice dac_read_search dac_override };
|
|
Chris PeBenito |
0c8917 |
allow samba_net_t self:process { getsched setsched };
|
|
Chris PeBenito |
17de1b |
allow samba_net_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow samba_net_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow samba_net_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow samba_net_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow samba_net_t samba_etc_t:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(samba_net_t, samba_etc_t, samba_secrets_t)
|
|
Chris PeBenito |
0bfccd |
filetrans_pattern(samba_net_t, samba_etc_t, samba_secrets_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(samba_net_t, samba_net_tmp_t, samba_net_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(samba_net_t, samba_net_tmp_t, samba_net_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(samba_net_t, samba_net_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
manage_dirs_pattern(samba_net_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(samba_net_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(samba_net_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(samba_net_t)
|
|
Chris PeBenito |
0c8917 |
kernel_read_system_state(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(samba_net_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(samba_net_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(samba_net_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(samba_net_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(samba_net_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(samba_net_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(samba_net_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(samba_net_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(samba_net_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(samba_net_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(samba_net_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(samba_net_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_smbd_port(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(samba_net_t)
|
|
Chris PeBenito |
0c8917 |
files_read_usr_symlinks(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(samba_net_t)
|
|
Jeremy Solt |
34838a |
auth_manage_cache(samba_net_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
samba_read_var_files(samba_net_t)
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(samba_net_t)
|
|
Jeremy Solt |
34838a |
userdom_list_user_home_dirs(samba_net_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
0c8917 |
pcscd_read_pub_files(samba_net_t)
|
|
Chris PeBenito |
0c8917 |
')
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(samba_net_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# smbd Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Dan Walsh |
3eaa99 |
allow smbd_t self:capability { chown fowner kill setgid setuid sys_nice sys_resource lease dac_override dac_read_search };
|
|
Chris PeBenito |
17de1b |
dontaudit smbd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:process setrlimit;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:fd use;
|
|
Chris PeBenito |
c0868a |
allow smbd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:msg { send receive };
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:msgq create_msgq_perms;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:sem create_sem_perms;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:shm create_shm_perms;
|
|
Chris PeBenito |
0b36a2 |
allow smbd_t self:sock_file read_sock_file_perms;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:unix_dgram_socket { create_socket_perms sendto };
|
|
Chris PeBenito |
17de1b |
allow smbd_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
allow smbd_t nmbd_t:process { signal signull };
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
allow smbd_t nmbd_var_run_t:file rw_file_perms;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
17de1b |
allow smbd_t samba_etc_t:file { rw_file_perms setattr };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
manage_dirs_pattern(smbd_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbd_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow smbd_t samba_net_tmp_t:file getattr;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbd_t, samba_secrets_t, samba_secrets_t)
|
|
Chris PeBenito |
0bfccd |
filetrans_pattern(smbd_t, samba_etc_t, samba_secrets_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(smbd_t, samba_share_t, samba_share_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbd_t, samba_share_t, samba_share_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(smbd_t, samba_share_t, samba_share_t)
|
|
Chris PeBenito |
0c8917 |
allow smbd_t samba_share_t:filesystem getattr;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(smbd_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbd_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(smbd_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(smbd_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
allow smbd_t smbcontrol_t:process { signal signull };
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(smbd_t, smbd_tmp_t, smbd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbd_t, smbd_tmp_t, smbd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(smbd_t, smbd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(smbd_t, smbd_var_run_t, smbd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbd_t, smbd_var_run_t, smbd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(smbd_t, smbd_var_run_t, smbd_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(smbd_t, smbd_var_run_t, { dir file })
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
allow smbd_t swat_t:process signal;
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
0c8917 |
allow smbd_t winbind_var_run_t:sock_file rw_sock_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
allow smbd_t winbind_t:process { signal signull };
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
17de1b |
kernel_getattr_core_if(smbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_getattr_message_if(smbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(smbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_fs_sysctls(smbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(smbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_software_raid_state(smbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
40df56 |
corecmd_exec_shell(smbd_t)
|
|
Chris PeBenito |
40df56 |
corecmd_exec_bin(smbd_t)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(smbd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(smbd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(smbd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(smbd_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(smbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(smbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(smbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(smbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(smbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(smbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(smbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(smbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_smbd_port(smbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_ipp_port(smbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_smbd_port(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(smbd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(smbd_t)
|
|
Chris PeBenito |
17de1b |
dev_getattr_mtrr_dev(smbd_t)
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_getattr_usbfs_dirs(smbd_t)
|
|
Jeremy Solt |
34838a |
# For redhat bug 566984
|
|
Jeremy Solt |
34838a |
dev_getattr_all_blk_files(smbd_t)
|
|
Jeremy Solt |
34838a |
dev_getattr_all_chr_files(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(smbd_t)
|
|
Dan Walsh |
3eaa99 |
fs_getattr_all_dirs(smbd_t)
|
|
Chris PeBenito |
17de1b |
fs_get_xattr_fs_quotas(smbd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(smbd_t)
|
|
Chris PeBenito |
17de1b |
fs_getattr_rpc_dirs(smbd_t)
|
|
Chris PeBenito |
40df56 |
fs_list_inotifyfs(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_use_nsswitch(smbd_t)
|
|
Chris PeBenito |
17de1b |
auth_domtrans_chk_passwd(smbd_t)
|
|
Chris PeBenito |
0c8917 |
auth_domtrans_upd_passwd(smbd_t)
|
|
Jeremy Solt |
34838a |
auth_manage_cache(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(smbd_t)
|
|
Chris PeBenito |
40df56 |
domain_dontaudit_list_all_domains_state(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_list_var_lib(smbd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(smbd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(smbd_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(smbd_t)
|
|
Chris PeBenito |
17de1b |
files_search_spool(smbd_t)
|
|
Jeremy Solt |
34838a |
# smbd seems to getattr all mountpoints
|
|
Jeremy Solt |
34838a |
files_dontaudit_getattr_all_dirs(smbd_t)
|
|
Dan Walsh |
4765a5 |
files_dontaudit_list_all_mountpoints(smbd_t)
|
|
Chris PeBenito |
17de1b |
# Allow samba to list mnt_t for potential mounted dirs
|
|
Chris PeBenito |
17de1b |
files_list_mnt(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_rw_utmp(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_search_logs(smbd_t)
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(smbd_t)
|
|
Chris PeBenito |
17de1b |
miscfiles_read_public_files(smbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_use_unpriv_users_fds(smbd_t)
|
|
Jeremy Solt |
34838a |
userdom_search_user_home_content(smbd_t)
|
|
Jeremy Solt |
34838a |
userdom_signal_all_users(smbd_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
0c8917 |
usermanage_read_crack_db(smbd_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Jeremy Solt |
34838a |
term_use_ptmx(smbd_t)
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
17de1b |
ifdef(`hide_broken_symptoms', `
|
|
Chris PeBenito |
17de1b |
files_dontaudit_getattr_default_dirs(smbd_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_getattr_boot_dirs(smbd_t)
|
|
Chris PeBenito |
17de1b |
fs_dontaudit_getattr_tmpfs_dirs(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
tunable_policy(`allow_smbd_anon_write',`
|
|
Chris PeBenito |
17de1b |
miscfiles_manage_public_files(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
40df56 |
tunable_policy(`samba_domain_controller',`
|
|
Jeremy Solt |
34838a |
gen_require(`
|
|
Jeremy Solt |
34838a |
class passwd passwd;
|
|
Jeremy Solt |
34838a |
')
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
40df56 |
usermanage_domtrans_passwd(smbd_t)
|
|
Chris PeBenito |
0c8917 |
usermanage_kill_passwd(smbd_t)
|
|
Chris PeBenito |
40df56 |
usermanage_domtrans_useradd(smbd_t)
|
|
Chris PeBenito |
40df56 |
usermanage_domtrans_groupadd(smbd_t)
|
|
Jeremy Solt |
34838a |
allow smbd_t self:passwd passwd;
|
|
Chris PeBenito |
40df56 |
')
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
296273 |
tunable_policy(`samba_enable_home_dirs',`
|
|
Dan Walsh |
3eaa99 |
userdom_manage_user_home_content(smbd_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
17de1b |
# Support Samba sharing of NFS mount points
|
|
Chris PeBenito |
17de1b |
tunable_policy(`samba_share_nfs',`
|
|
Chris PeBenito |
17de1b |
fs_manage_nfs_dirs(smbd_t)
|
|
Chris PeBenito |
17de1b |
fs_manage_nfs_files(smbd_t)
|
|
Chris PeBenito |
0c8917 |
fs_manage_nfs_symlinks(smbd_t)
|
|
Chris PeBenito |
0c8917 |
fs_manage_nfs_named_pipes(smbd_t)
|
|
Chris PeBenito |
0c8917 |
fs_manage_nfs_named_sockets(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
# Support Samba sharing of ntfs/fusefs mount points
|
|
Jeremy Solt |
34838a |
tunable_policy(`samba_share_fusefs',`
|
|
Jeremy Solt |
34838a |
fs_manage_fusefs_dirs(smbd_t)
|
|
Jeremy Solt |
34838a |
fs_manage_fusefs_files(smbd_t)
|
|
Jeremy Solt |
34838a |
',`
|
|
Jeremy Solt |
34838a |
fs_search_fusefs(smbd_t)
|
|
Jeremy Solt |
34838a |
')
|
|
Jeremy Solt |
34838a |
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cups_read_rw_config(smbd_t)
|
|
Chris PeBenito |
465510 |
cups_stream_connect(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(smbd_t)
|
|
Chris PeBenito |
0c8917 |
kerberos_keytab_template(smbd, smbd_t)
|
|
Chris PeBenito |
0c8917 |
')
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
optional_policy(`
|
|
Chris PeBenito |
0c8917 |
lpd_exec_lpr(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Jeremy Solt |
34838a |
qemu_manage_tmp_dirs(smbd_t)
|
|
Jeremy Solt |
34838a |
qemu_manage_tmp_files(smbd_t)
|
|
Jeremy Solt |
34838a |
')
|
|
Jeremy Solt |
34838a |
|
|
Jeremy Solt |
34838a |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
rpc_search_nfs_state_data(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(smbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
b81bfc |
tunable_policy(`samba_create_home_dirs',`
|
|
Chris PeBenito |
b81bfc |
allow smbd_t self:capability chown;
|
|
Chris PeBenito |
296273 |
userdom_create_user_home_dirs(smbd_t)
|
|
Chris PeBenito |
b81bfc |
')
|
|
Dan Walsh |
3eaa99 |
userdom_home_filetrans_user_home_dir(smbd_t)
|
|
Chris PeBenito |
b81bfc |
|
|
Chris PeBenito |
40df56 |
tunable_policy(`samba_export_all_ro',`
|
|
Chris PeBenito |
40df56 |
fs_read_noxattr_fs_files(smbd_t)
|
|
Jeremy Solt |
34838a |
auth_read_all_dirs_except_shadow(smbd_t)
|
|
Chris PeBenito |
40df56 |
auth_read_all_files_except_shadow(smbd_t)
|
|
Chris PeBenito |
40df56 |
fs_read_noxattr_fs_files(nmbd_t)
|
|
Jeremy Solt |
34838a |
auth_read_all_dirs_except_shadow(nmbd_t)
|
|
Chris PeBenito |
40df56 |
auth_read_all_files_except_shadow(nmbd_t)
|
|
Chris PeBenito |
40df56 |
')
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
tunable_policy(`samba_export_all_rw',`
|
|
Chris PeBenito |
40df56 |
fs_read_noxattr_fs_files(smbd_t)
|
|
Chris PeBenito |
40df56 |
auth_manage_all_files_except_shadow(smbd_t)
|
|
Chris PeBenito |
40df56 |
fs_read_noxattr_fs_files(nmbd_t)
|
|
Chris PeBenito |
40df56 |
auth_manage_all_files_except_shadow(nmbd_t)
|
|
Chris PeBenito |
40df56 |
')
|
|
Dan Walsh |
3eaa99 |
userdom_user_home_dir_filetrans_user_home_content(nmbd_t, { file dir })
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# nmbd Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dontaudit nmbd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:fd use;
|
|
Chris PeBenito |
c0868a |
allow nmbd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:msg { send receive };
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:msgq create_msgq_perms;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:sem create_sem_perms;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:shm create_shm_perms;
|
|
Chris PeBenito |
0b36a2 |
allow nmbd_t self:sock_file read_sock_file_perms;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:unix_dgram_socket { create_socket_perms sendto };
|
|
Chris PeBenito |
17de1b |
allow nmbd_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(nmbd_t, nmbd_var_run_t, nmbd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(nmbd_t, nmbd_var_run_t, nmbd_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(nmbd_t, nmbd_var_run_t, { dir file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(nmbd_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
0c8917 |
read_lnk_files_pattern(nmbd_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(nmbd_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
b81bfc |
manage_files_pattern(nmbd_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(nmbd_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
allow nmbd_t smbcontrol_t:process signal;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
17de1b |
allow nmbd_t smbd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_getattr_core_if(nmbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_getattr_message_if(nmbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(nmbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(nmbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_software_raid_state(nmbd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(nmbd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(nmbd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(nmbd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(nmbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(nmbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(nmbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(nmbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(nmbd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(nmbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_nmbd_port(nmbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_nmbd_server_packets(nmbd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_nmbd_client_packets(nmbd_t)
|
|
Chris PeBenito |
40df56 |
corenet_tcp_connect_smbd_port(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(nmbd_t)
|
|
Chris PeBenito |
17de1b |
dev_getattr_mtrr_dev(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(nmbd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(nmbd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(nmbd_t)
|
|
Chris PeBenito |
40df56 |
files_list_var_lib(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(nmbd_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
17de1b |
logging_search_logs(nmbd_t)
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(nmbd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_use_unpriv_users_fds(nmbd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(nmbd_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(nmbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(nmbd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
0c8917 |
# smbcontrol local policy
|
|
Chris PeBenito |
0c8917 |
#
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
# internal communication is often done using fifo and unix sockets.
|
|
Chris PeBenito |
0c8917 |
allow smbcontrol_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
0c8917 |
allow smbcontrol_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
allow smbcontrol_t nmbd_t:process { signal signull };
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
allow smbcontrol_t nmbd_var_run_t:file { read lock };
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
allow smbcontrol_t smbd_t:process signal;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
allow smbcontrol_t winbind_t:process { signal signull };
|
|
Chris PeBenito |
0c8917 |
|
|
Dan Walsh |
3eaa99 |
files_search_var_lib(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
samba_read_config(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
samba_rw_var_files(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
samba_search_var(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
samba_read_winbind_pid(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
domain_use_interactive_fds(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
files_read_etc_files(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
miscfiles_read_localization(smbcontrol_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Jeremy Solt |
34838a |
userdom_use_user_terminals(smbcontrol_t)
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
0c8917 |
########################################
|
|
Chris PeBenito |
0c8917 |
#
|
|
Chris PeBenito |
17de1b |
# smbmount Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow smbmount_t self:capability { sys_rawio sys_admin dac_override chown }; # FIXME: is all of this really necessary?
|
|
Chris PeBenito |
17de1b |
allow smbmount_t self:process { fork signal_perms };
|
|
Chris PeBenito |
17de1b |
allow smbmount_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow smbmount_t self:udp_socket connect;
|
|
Chris PeBenito |
17de1b |
allow smbmount_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow smbmount_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow smbmount_t samba_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow smbmount_t samba_etc_t:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
can_exec(smbmount_t, smbmount_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow smbmount_t samba_log_t:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow smbmount_t samba_log_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow smbmount_t samba_secrets_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(smbmount_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(smbmount_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
40df56 |
files_list_var_lib(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(smbmount_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(smbmount_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(smbmount_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(smbmount_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(smbmount_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(smbmount_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(smbmount_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(smbmount_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(smbmount_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(smbmount_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(smbmount_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(smbmount_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_cifs(smbmount_t)
|
|
Chris PeBenito |
17de1b |
fs_mount_cifs(smbmount_t)
|
|
Chris PeBenito |
17de1b |
fs_remount_cifs(smbmount_t)
|
|
Chris PeBenito |
17de1b |
fs_unmount_cifs(smbmount_t)
|
|
Chris PeBenito |
17de1b |
fs_list_cifs(smbmount_t)
|
|
Chris PeBenito |
17de1b |
fs_read_cifs_files(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
storage_raw_read_fixed_disk(smbmount_t)
|
|
Chris PeBenito |
17de1b |
storage_raw_write_fixed_disk(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_list_bin(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_list_mnt(smbmount_t)
|
|
Chris PeBenito |
17de1b |
files_mounton_mnt(smbmount_t)
|
|
Chris PeBenito |
17de1b |
files_manage_etc_runtime_files(smbmount_t)
|
|
Chris PeBenito |
3f67f7 |
files_etc_filetrans_etc_runtime(smbmount_t, file)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(smbmount_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mount_use_fds(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
locallogin_use_fds(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_search_logs(smbmount_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(smbmount_t)
|
|
Chris PeBenito |
17de1b |
userdom_use_all_users_fds(smbmount_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
0c8917 |
optional_policy(`
|
|
Chris PeBenito |
0c8917 |
cups_read_rw_config(smbmount_t)
|
|
Chris PeBenito |
0c8917 |
')
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# SWAT Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
allow swat_t self:capability { dac_override setuid setgid sys_resource };
|
|
Chris PeBenito |
0c8917 |
allow swat_t self:process { setrlimit signal_perms };
|
|
Chris PeBenito |
0c8917 |
allow swat_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow swat_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow swat_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow swat_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
0c8917 |
allow swat_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
samba_domtrans_smbd(swat_t)
|
|
Chris PeBenito |
0c8917 |
allow swat_t smbd_t:process { signal signull };
|
|
Chris PeBenito |
0c8917 |
|
|
Jeremy Solt |
34838a |
samba_domtrans_nmbd(swat_t)
|
|
Jeremy Solt |
34838a |
allow swat_t nmbd_t:process { signal signull };
|
|
Jeremy Solt |
34838a |
allow nmbd_t swat_t:process signal;
|
|
Jeremy Solt |
34838a |
|
|
Dan Walsh |
3eaa99 |
allow swat_t nmbd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
allow swat_t smbd_port_t:tcp_socket name_bind;
|
|
Jeremy Solt |
34838a |
|
|
Jeremy Solt |
34838a |
allow swat_t nmbd_port_t:udp_socket name_bind;
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
0bfccd |
rw_files_pattern(swat_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
0c8917 |
read_lnk_files_pattern(swat_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
manage_dirs_pattern(swat_t, samba_log_t, samba_log_t)
|
|
Jeremy Solt |
34838a |
manage_files_pattern(swat_t, samba_log_t, samba_log_t)
|
|
Jeremy Solt |
34838a |
|
|
Jeremy Solt |
34838a |
manage_files_pattern(swat_t, samba_etc_t, samba_secrets_t)
|
|
Jeremy Solt |
34838a |
|
|
Jeremy Solt |
34838a |
manage_files_pattern(swat_t, samba_var_t, samba_var_t)
|
|
Dan Walsh |
3eaa99 |
files_list_var_lib(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow swat_t smbd_exec_t:file mmap_file_perms ;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow swat_t smbd_t:process signull;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow swat_t smbd_var_run_t:file read_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow swat_t smbd_var_run_t:file { lock unlink };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(swat_t, swat_tmp_t, swat_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(swat_t, swat_tmp_t, swat_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(swat_t, swat_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(swat_t, swat_var_run_t, swat_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(swat_t, swat_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow swat_t winbind_exec_t:file mmap_file_perms;
|
|
Jeremy Solt |
34838a |
domtrans_pattern(swat_t, winbind_exec_t, winbind_t)
|
|
Jeremy Solt |
34838a |
allow swat_t winbind_t:process { signal signull };
|
|
Chris PeBenito |
0c8917 |
|
|
Dan Walsh |
3eaa99 |
read_files_pattern(swat_t, winbind_var_run_t, winbind_var_run_t)
|
|
Chris PeBenito |
0c8917 |
allow swat_t winbind_var_run_t:dir { write add_name remove_name };
|
|
Chris PeBenito |
0c8917 |
allow swat_t winbind_var_run_t:sock_file { create unlink };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(swat_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(swat_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(swat_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(swat_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(swat_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(swat_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_generic_if(swat_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(swat_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(swat_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(swat_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(swat_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(swat_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_smbd_port(swat_t)
|
|
Chris PeBenito |
d6d16b |
corenet_tcp_connect_ipp_port(swat_t)
|
|
Chris PeBenito |
d6d16b |
corenet_sendrecv_smbd_client_packets(swat_t)
|
|
Chris PeBenito |
d6d16b |
corenet_sendrecv_ipp_client_packets(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
files_list_var_lib(swat_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(swat_t)
|
|
Chris PeBenito |
17de1b |
files_search_home(swat_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(swat_t)
|
|
Chris PeBenito |
17de1b |
fs_getattr_xattr_fs(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_domtrans_chk_passwd(swat_t)
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
init_read_utmp(swat_t)
|
|
Jeremy Solt |
34838a |
init_dontaudit_write_utmp(swat_t)
|
|
Jeremy Solt |
34838a |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(swat_t)
|
|
Chris PeBenito |
0c8917 |
logging_send_audit_msgs(swat_t)
|
|
Chris PeBenito |
17de1b |
logging_search_logs(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(swat_t)
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
userdom_dontaudit_search_admin_dir(swat_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cups_read_rw_config(swat_t)
|
|
Chris PeBenito |
d6d16b |
cups_stream_connect(swat_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
0bfccd |
inetd_service_domain(swat_t, swat_exec_t)
|
|
Chris PeBenito |
85f0c3 |
')
|
|
Chris PeBenito |
85f0c3 |
|
|
Chris PeBenito |
85f0c3 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(swat_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Winbind local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
34838a |
allow winbind_t self:capability { dac_override ipc_lock setuid sys_nice };
|
|
Chris PeBenito |
17de1b |
dontaudit winbind_t self:capability sys_tty_config;
|
|
Chris PeBenito |
0c8917 |
allow winbind_t self:process { signal_perms getsched setsched };
|
|
Chris PeBenito |
0b36a2 |
allow winbind_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow winbind_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow winbind_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow winbind_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow winbind_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
40df56 |
allow winbind_t nmbd_t:process { signal signull };
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
allow winbind_t nmbd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
c0868a |
allow winbind_t samba_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(winbind_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(winbind_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(winbind_t, samba_etc_t, samba_secrets_t)
|
|
Chris PeBenito |
0bfccd |
filetrans_pattern(winbind_t, samba_etc_t, samba_secrets_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(winbind_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(winbind_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(winbind_t, samba_log_t, samba_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(winbind_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(winbind_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(winbind_t, samba_var_t, samba_var_t)
|
|
Chris PeBenito |
40df56 |
files_list_var_lib(winbind_t)
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
0bfccd |
rw_files_pattern(winbind_t, smbd_tmp_t, smbd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow winbind_t winbind_log_t:file manage_file_perms;
|
|
Chris PeBenito |
3f67f7 |
logging_log_filetrans(winbind_t, winbind_log_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
userdom_manage_user_tmp_dirs(winbind_t)
|
|
Dan Walsh |
3eaa99 |
userdom_manage_user_tmp_files(winbind_t)
|
|
Dan Walsh |
3eaa99 |
userdom_tmp_filetrans_user_tmp(winbind_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(winbind_t, winbind_var_run_t, winbind_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(winbind_t, winbind_var_run_t, winbind_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(winbind_t, winbind_var_run_t, winbind_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(winbind_t, winbind_var_run_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(winbind_t)
|
|
Chris PeBenito |
0c8917 |
kernel_read_system_state(winbind_t)
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
corecmd_exec_bin(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(winbind_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(winbind_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(winbind_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(winbind_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(winbind_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(winbind_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(winbind_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(winbind_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(winbind_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(winbind_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(winbind_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(winbind_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_smbd_port(winbind_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_smbd_port(winbind_t)
|
|
Jeremy Solt |
34838a |
corenet_tcp_connect_epmap_port(winbind_t)
|
|
Jeremy Solt |
34838a |
corenet_tcp_connect_all_unreserved_ports(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(winbind_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(winbind_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_domtrans_chk_passwd(winbind_t)
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(winbind_t)
|
|
Jeremy Solt |
34838a |
auth_manage_cache(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(winbind_t)
|
|
Chris PeBenito |
0c8917 |
files_read_usr_symlinks(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(winbind_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_home_content_dirs(winbind_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_home_content_files(winbind_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_home_content_symlinks(winbind_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_home_content_pipes(winbind_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_home_content_sockets(winbind_t)
|
|
Chris PeBenito |
296273 |
userdom_user_home_dir_filetrans_user_home_content(winbind_t, { dir file lnk_file fifo_file sock_file })
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(winbind_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(winbind_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(winbind_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Winbind helper local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow winbind_helper_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow winbind_helper_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow winbind_helper_t samba_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(winbind_helper_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(winbind_helper_t, samba_etc_t, samba_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow winbind_helper_t samba_var_t:dir search_dir_perms;
|
|
Chris PeBenito |
40df56 |
files_list_var_lib(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0c8917 |
allow winbind_t smbcontrol_t:process signal;
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0bfccd |
stream_connect_pattern(winbind_helper_t, winbind_var_run_t, winbind_var_run_t, winbind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_list_ptys(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
09e216 |
auth_use_nsswitch(winbind_helper_t)
|
|
Chris PeBenito |
09e216 |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(winbind_helper_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
0c8917 |
apache_append_log(winbind_helper_t)
|
|
Chris PeBenito |
0c8917 |
')
|
|
Chris PeBenito |
0c8917 |
|
|
Chris PeBenito |
0c8917 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
squid_read_log(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
squid_append_log(winbind_helper_t)
|
|
Chris PeBenito |
0c8917 |
squid_rw_stream_sockets(winbind_helper_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
40df56 |
########################################
|
|
Chris PeBenito |
40df56 |
#
|
|
Chris PeBenito |
40df56 |
# samba_unconfined_script_t local policy
|
|
Chris PeBenito |
40df56 |
#
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
type samba_unconfined_net_t;
|
|
Dan Walsh |
3eaa99 |
domain_type(samba_unconfined_net_t)
|
|
Dan Walsh |
3eaa99 |
domain_entry_file(samba_unconfined_net_t, samba_net_exec_t)
|
|
Dan Walsh |
3eaa99 |
role system_r types samba_unconfined_net_t;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
unconfined_domain(samba_unconfined_net_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern(samba_unconfined_net_t, samba_etc_t, samba_secrets_t)
|
|
Dan Walsh |
3eaa99 |
filetrans_pattern(samba_unconfined_net_t, samba_etc_t, samba_secrets_t, file)
|
|
Dan Walsh |
3eaa99 |
userdom_use_user_terminals(samba_unconfined_net_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Chris PeBenito |
350b6a |
type samba_unconfined_script_t;
|
|
Chris PeBenito |
350b6a |
type samba_unconfined_script_exec_t;
|
|
Chris PeBenito |
350b6a |
domain_type(samba_unconfined_script_t)
|
|
Chris PeBenito |
0bfccd |
domain_entry_file(samba_unconfined_script_t, samba_unconfined_script_exec_t)
|
|
Chris PeBenito |
350b6a |
corecmd_shell_entry_type(samba_unconfined_script_t)
|
|
Chris PeBenito |
350b6a |
role system_r types samba_unconfined_script_t;
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
350b6a |
allow smbd_t samba_unconfined_script_exec_t:dir search_dir_perms;
|
|
Chris PeBenito |
350b6a |
allow smbd_t samba_unconfined_script_exec_t:file ioctl;
|
|
Chris PeBenito |
40df56 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Chris PeBenito |
350b6a |
unconfined_domain(samba_unconfined_script_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Chris PeBenito |
40df56 |
|
|
Chris PeBenito |
350b6a |
tunable_policy(`samba_run_unconfined',`
|
|
Chris PeBenito |
350b6a |
domtrans_pattern(smbd_t, samba_unconfined_script_exec_t, samba_unconfined_script_t)
|
|
Dan Walsh |
3eaa99 |
',`
|
|
Dan Walsh |
3eaa99 |
can_exec(smbd_t, samba_unconfined_script_exec_t)
|
|
Chris PeBenito |
40df56 |
')
|