Chris PeBenito 84c922
Chris PeBenito d3d270
policy_module(samba,1.2.0)
Chris PeBenito 84c922
Chris PeBenito 84c922
#################################
Chris PeBenito 84c922
#
Chris PeBenito 84c922
# Declarations
Chris PeBenito 84c922
#
Chris PeBenito 84c922
Chris PeBenito 84c922
type nmbd_t;
Chris PeBenito 84c922
type nmbd_exec_t;
Chris PeBenito 84c922
init_daemon_domain(nmbd_t,nmbd_exec_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type nmbd_var_run_t;
Chris PeBenito 84c922
files_pid_file(nmbd_var_run_t)
Chris PeBenito 84c922
Chris PeBenito 9bbc75
type samba_etc_t;
Chris PeBenito 9bbc75
files_config_file(samba_etc_t)
Chris PeBenito 84c922
Chris PeBenito 25c674
type samba_log_t;
Chris PeBenito 25c674
logging_log_file(samba_log_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type samba_net_t;
Chris PeBenito 84c922
domain_type(samba_net_t)
Chris PeBenito 3774e4
role system_r types samba_net_t;
Chris PeBenito 84c922
Chris PeBenito 84c922
type samba_net_exec_t;
Chris PeBenito 84c922
domain_entry_file(samba_net_t,samba_net_exec_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type samba_net_tmp_t;
Chris PeBenito 84c922
files_tmp_file(samba_net_tmp_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type samba_secrets_t;
Chris PeBenito 84c922
files_type(samba_secrets_t)
Chris PeBenito 84c922
Chris PeBenito 9bbc75
type samba_share_t;
Chris PeBenito 9bbc75
files_config_file(samba_share_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type samba_var_t;
Chris PeBenito 84c922
files_type(samba_var_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type smbd_t;
Chris PeBenito 84c922
type smbd_exec_t;
Chris PeBenito 84c922
init_daemon_domain(smbd_t,smbd_exec_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type smbd_tmp_t;
Chris PeBenito 84c922
files_tmp_file(smbd_tmp_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type smbd_var_run_t;
Chris PeBenito 84c922
files_pid_file(smbd_var_run_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type smbmount_t;
Chris PeBenito 84c922
domain_type(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
type smbmount_exec_t;
Chris PeBenito 84c922
domain_entry_file(smbmount_t,smbmount_exec_t)
Chris PeBenito 84c922
Chris PeBenito cbe327
type swat_t;
Chris PeBenito cbe327
type swat_exec_t;
Chris PeBenito cbe327
inetd_service_domain(swat_t,swat_exec_t)
Chris PeBenito cbe327
role system_r types swat_t;
Chris PeBenito cbe327
Chris PeBenito cbe327
type swat_tmp_t;
Chris PeBenito cbe327
files_tmp_file(swat_tmp_t)
Chris PeBenito cbe327
Chris PeBenito cbe327
type swat_var_run_t;
Chris PeBenito cbe327
files_pid_file(swat_var_run_t)
Chris PeBenito cbe327
Chris PeBenito 784a3b
type winbind_t;
Chris PeBenito 79cde3
type winbind_exec_t;
Chris PeBenito 79cde3
init_daemon_domain(winbind_t,winbind_exec_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
type winbind_helper_t;
Chris PeBenito 79cde3
domain_type(winbind_helper_t)
Chris PeBenito 79cde3
role system_r types winbind_helper_t;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
type winbind_helper_exec_t;
Chris PeBenito 79cde3
domain_entry_file(winbind_helper_t,winbind_helper_exec_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
type winbind_log_t;
Chris PeBenito 79cde3
logging_log_file(winbind_log_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
type winbind_tmp_t;
Chris PeBenito 79cde3
files_tmp_file(winbind_tmp_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
type winbind_var_run_t;
Chris PeBenito 79cde3
files_pid_file(winbind_var_run_t)
Chris PeBenito 79cde3
Chris PeBenito 84c922
########################################
Chris PeBenito 84c922
#
Chris PeBenito 84c922
# Samba net local policy
Chris PeBenito 84c922
#
Chris PeBenito 84c922
Chris PeBenito 84c922
allow samba_net_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 84c922
allow samba_net_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 84c922
allow samba_net_t self:udp_socket create_socket_perms;
Chris PeBenito 84c922
allow samba_net_t self:tcp_socket create_socket_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow samba_net_t samba_etc_t:file r_file_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow samba_net_t samba_secrets_t:file create_file_perms;
Chris PeBenito 84c922
allow samba_net_t samba_etc_t:dir rw_dir_perms;
Chris PeBenito 84c922
type_transition samba_net_t samba_etc_t:file samba_secrets_t;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow samba_net_t samba_net_tmp_t:dir create_dir_perms;
Chris PeBenito 84c922
allow samba_net_t samba_net_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
files_tmp_filetrans(samba_net_t, samba_net_tmp_t, { file dir })
Chris PeBenito 84c922
Chris PeBenito 84c922
allow samba_net_t samba_var_t:dir rw_dir_perms;
Chris PeBenito 84c922
allow samba_net_t samba_var_t:lnk_file create_lnk_perms;
Chris PeBenito 84c922
allow samba_net_t samba_var_t:file create_lnk_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
kernel_read_proc_symlinks(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_if(samba_net_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_if(samba_net_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_if(samba_net_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_nodes(samba_net_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_nodes(samba_net_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_nodes(samba_net_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_ports(samba_net_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_ports(samba_net_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(samba_net_t)
Chris PeBenito 84c922
corenet_tcp_bind_all_nodes(samba_net_t)
Chris PeBenito 84c922
corenet_udp_bind_all_nodes(samba_net_t)
Chris PeBenito 84c922
corenet_tcp_connect_smbd_port(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
dev_read_urand(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 15722e
domain_use_interactive_fds(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
files_read_etc_files(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
libs_use_ld_so(samba_net_t)
Chris PeBenito 84c922
libs_use_shared_libs(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 671673
logging_send_syslog_msg(samba_net_t)
Chris PeBenito 671673
Chris PeBenito 84c922
miscfiles_read_localization(samba_net_t) 
Chris PeBenito 84c922
Chris PeBenito 84c922
sysnet_read_config(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(samba_net_t)
Chris PeBenito 84c922
Chris PeBenito 671673
ifdef(`targeted_policy',`
Chris PeBenito 1815ba
	term_use_generic_ptys(samba_net_t)
Chris PeBenito 1815ba
	term_use_unallocated_ttys(samba_net_t)
Chris PeBenito 671673
')
Chris PeBenito 671673
Chris PeBenito 132880
optional_policy(`kerberos',`
Chris PeBenito 84c922
	kerberos_use(samba_net_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`ldap',`
Chris PeBenito 84c922
	allow samba_net_t self:tcp_socket create_socket_perms;
Chris PeBenito 84c922
	corenet_tcp_sendrecv_all_if(samba_net_t)
Chris PeBenito 84c922
	corenet_raw_sendrecv_all_if(samba_net_t)
Chris PeBenito 84c922
	corenet_tcp_sendrecv_all_nodes(samba_net_t)
Chris PeBenito 84c922
	corenet_raw_sendrecv_all_nodes(samba_net_t)
Chris PeBenito 84c922
	corenet_tcp_sendrecv_ldap_port(samba_net_t)
Chris PeBenito bd7037
	corenet_non_ipsec_sendrecv(samba_net_t)
Chris PeBenito 84c922
	corenet_tcp_bind_all_nodes(samba_net_t)
Chris PeBenito 84c922
	sysnet_read_config(samba_net_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito 1815ba
	nscd_socket_use(samba_net_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito a08248
ifdef(`TODO',`
Chris PeBenito a08248
in_user_role(samba_net_t)
Chris PeBenito a08248
')
Chris PeBenito a08248
Chris PeBenito 84c922
########################################
Chris PeBenito 84c922
#
Chris PeBenito 84c922
# smbd Local policy
Chris PeBenito 84c922
#
Chris PeBenito 84c922
allow smbd_t self:capability { setgid setuid sys_resource lease dac_override dac_read_search };
Chris PeBenito 84c922
dontaudit smbd_t self:capability sys_tty_config;
Chris PeBenito 84c922
allow smbd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Don Miner fa16f2
allow smbd_t self:process setrlimit;
Chris PeBenito 84c922
allow smbd_t self:fd use;
Chris PeBenito 84c922
allow smbd_t self:fifo_file rw_file_perms;
Chris PeBenito 84c922
allow smbd_t self:msg { send receive };
Chris PeBenito 84c922
allow smbd_t self:msgq create_msgq_perms;
Chris PeBenito 84c922
allow smbd_t self:sem create_sem_perms;
Chris PeBenito 84c922
allow smbd_t self:shm create_shm_perms;
Chris PeBenito 84c922
allow smbd_t self:sock_file r_file_perms;
Chris PeBenito 84c922
allow smbd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 84c922
allow smbd_t self:udp_socket create_socket_perms;
Chris PeBenito 84c922
allow smbd_t self:unix_dgram_socket { create_socket_perms sendto };
Chris PeBenito 84c922
allow smbd_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t samba_etc_t:dir rw_dir_perms;
Don Miner fa16f2
allow smbd_t samba_etc_t:file { rw_file_perms setattr };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t samba_log_t:dir ra_dir_perms;
Chris PeBenito 84c922
dontaudit smbd_t samba_log_t:dir remove_name;
Chris PeBenito 84c922
allow smbd_t samba_log_t:file { create ra_file_perms };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t samba_secrets_t:dir rw_dir_perms;
Chris PeBenito 84c922
allow smbd_t samba_secrets_t:file create_file_perms;
Chris PeBenito 84c922
type_transition smbd_t samba_etc_t:file samba_secrets_t;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t samba_share_t:dir create_dir_perms;
Chris PeBenito 84c922
allow smbd_t samba_share_t:file create_file_perms;
Chris PeBenito 84c922
allow smbd_t samba_share_t:lnk_file create_lnk_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t samba_var_t:dir create_dir_perms;
Chris PeBenito 84c922
allow smbd_t samba_var_t:file create_file_perms;
Chris PeBenito 84c922
allow smbd_t samba_var_t:lnk_file create_lnk_perms;
Chris PeBenito 84c922
allow smbd_t samba_var_t:sock_file create_file_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t smbd_tmp_t:dir create_dir_perms;
Chris PeBenito 84c922
allow smbd_t smbd_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
files_tmp_filetrans(smbd_t, smbd_tmp_t, { file dir })
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t nmbd_var_run_t:file rw_file_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbd_t smbd_var_run_t:dir create_dir_perms;
Chris PeBenito 84c922
allow smbd_t smbd_var_run_t:file create_file_perms;
Chris PeBenito 84c922
allow smbd_t smbd_var_run_t:sock_file create_file_perms;
Chris PeBenito 103fe2
files_pid_filetrans(smbd_t,smbd_var_run_t)
Chris PeBenito 84c922
Chris PeBenito 3df88d
allow smbd_t winbind_var_run_t:sock_file { read write getattr };
Chris PeBenito 3df88d
Chris PeBenito 445522
kernel_getattr_core_if(smbd_t)
Chris PeBenito 84c922
kernel_getattr_message_if(smbd_t)
Chris PeBenito 84c922
kernel_read_network_state(smbd_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(smbd_t)
Chris PeBenito 84c922
kernel_read_software_raid_state(smbd_t)
Chris PeBenito 84c922
kernel_read_system_state(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_if(smbd_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_if(smbd_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_if(smbd_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_nodes(smbd_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_nodes(smbd_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_nodes(smbd_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_ports(smbd_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_ports(smbd_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(smbd_t)
Chris PeBenito 84c922
corenet_tcp_bind_all_nodes(smbd_t)
Chris PeBenito 84c922
corenet_udp_bind_all_nodes(smbd_t)
Chris PeBenito 84c922
corenet_tcp_bind_smbd_port(smbd_t)
Chris PeBenito 84c922
corenet_tcp_connect_ipp_port(smbd_t)
Chris PeBenito a08248
corenet_tcp_connect_smbd_port(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
dev_read_sysfs(smbd_t)
Chris PeBenito 84c922
dev_read_urand(smbd_t)
Chris PeBenito 207c47
dev_dontaudit_getattr_usbfs_dirs(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
fs_getattr_all_fs(smbd_t)
Chris PeBenito 77f6e2
fs_get_xattr_fs_quotas(smbd_t)
Chris PeBenito 84c922
fs_search_auto_mountpoints(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
term_dontaudit_use_console(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 77f6e2
auth_use_nsswitch(smbd_t)
Chris PeBenito 84c922
auth_domtrans_chk_passwd(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 15722e
domain_use_interactive_fds(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
files_list_var_lib(smbd_t)
Chris PeBenito 84c922
files_read_etc_files(smbd_t)
Chris PeBenito 84c922
files_read_etc_runtime_files(smbd_t)
Chris PeBenito 84c922
files_read_usr_files(smbd_t)
Chris PeBenito 84c922
files_search_spool(smbd_t)
Chris PeBenito 77f6e2
# Allow samba to list mnt_t for potential mounted dirs
Chris PeBenito 77f6e2
files_list_mnt(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
init_use_fd(smbd_t)
Chris PeBenito 1815ba
init_use_script_ptys(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
libs_use_ld_so(smbd_t)
Chris PeBenito 84c922
libs_use_shared_libs(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
logging_search_logs(smbd_t)
Chris PeBenito 84c922
logging_send_syslog_msg(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
miscfiles_read_localization(smbd_t)
Chris PeBenito 671673
miscfiles_read_public_files(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
mount_send_nfs_client_request(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
sysnet_read_config(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(smbd_t)
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(smbd_t)
Chris PeBenito 103fe2
userdom_use_unpriv_users_fds(smbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
ifdef(`targeted_policy', `
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(smbd_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(smbd_t)
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(smbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 671673
tunable_policy(`allow_smbd_anon_write',`
Chris PeBenito 671673
	miscfiles_manage_public_files(smbd_t)
Chris PeBenito 671673
') 
Chris PeBenito 671673
Chris PeBenito 132880
optional_policy(`cups',`
Chris PeBenito 3df88d
	cups_read_rw_config(smbd_t)
Chris PeBenito 3df88d
')
Chris PeBenito 3df88d
Chris PeBenito 132880
optional_policy(`kerberos',`
Chris PeBenito 84c922
	kerberos_use(smbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`nis',`
Chris PeBenito 84c922
	nis_use_ypbind(smbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito 1815ba
	nscd_socket_use(smbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`selinuxutil',`
Chris PeBenito 84c922
	seutil_sigchld_newrole(smbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`udev', `
Chris PeBenito 84c922
	udev_read_db(smbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 77f6e2
ifdef(`hide_broken_symptoms', `
Chris PeBenito 28e730
gen_require(`
Chris PeBenito 28e730
	type boot_t, default_t, tmpfs_t;
Chris PeBenito 28e730
')
Chris PeBenito 77f6e2
dontaudit smbd_t { devpts_t boot_t default_t tmpfs_t }:dir getattr;
Chris PeBenito 77f6e2
dontaudit smbd_t devpts_t:dir getattr;
Chris PeBenito 77f6e2
')
Chris PeBenito 28e730
Chris PeBenito 28e730
gen_require(`
Chris PeBenito 28e730
	type mtrr_device_t;
Chris PeBenito 28e730
')
Chris PeBenito 3df88d
allow smbd_t mtrr_device_t:file getattr;
Chris PeBenito 84c922
Chris PeBenito 84c922
########################################
Chris PeBenito 84c922
#
Chris PeBenito 84c922
# nmbd Local policy
Chris PeBenito 84c922
#
Chris PeBenito 30910b
Chris PeBenito 84c922
dontaudit nmbd_t self:capability sys_tty_config;
Chris PeBenito 84c922
allow nmbd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 84c922
allow nmbd_t self:fd use;
Chris PeBenito 84c922
allow nmbd_t self:fifo_file rw_file_perms;
Chris PeBenito 84c922
allow nmbd_t self:msg { send receive };
Chris PeBenito 84c922
allow nmbd_t self:msgq create_msgq_perms;
Chris PeBenito 84c922
allow nmbd_t self:sem create_sem_perms;
Chris PeBenito 84c922
allow nmbd_t self:shm create_shm_perms;
Chris PeBenito 84c922
allow nmbd_t self:sock_file r_file_perms;
Chris PeBenito 84c922
allow nmbd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 84c922
allow nmbd_t self:udp_socket create_socket_perms;
Chris PeBenito 84c922
allow nmbd_t self:unix_dgram_socket { create_socket_perms sendto };
Chris PeBenito 84c922
allow nmbd_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow nmbd_t nmbd_var_run_t:file create_file_perms;
Chris PeBenito 30910b
allow nmbd_t nmbd_var_run_t:dir rw_dir_perms;
Chris PeBenito 103fe2
files_pid_filetrans(nmbd_t,nmbd_var_run_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
allow nmbd_t samba_etc_t:dir { search getattr };
Chris PeBenito 84c922
allow nmbd_t samba_etc_t:file { getattr read };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow nmbd_t samba_log_t:dir ra_dir_perms;
Chris PeBenito 84c922
allow nmbd_t samba_log_t:file { create ra_file_perms };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow nmbd_t samba_var_t:dir rw_dir_perms;
Chris PeBenito 84c922
allow nmbd_t samba_var_t:file { lock unlink create write setattr read getattr rename };
Chris PeBenito 84c922
Chris PeBenito 84c922
allow nmbd_t smbd_var_run_t:dir rw_dir_perms;
Chris PeBenito 84c922
Chris PeBenito 445522
kernel_getattr_core_if(nmbd_t)
Chris PeBenito 84c922
kernel_getattr_message_if(nmbd_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(nmbd_t)
Chris PeBenito 84c922
kernel_read_network_state(nmbd_t)
Chris PeBenito 84c922
kernel_read_software_raid_state(nmbd_t)
Chris PeBenito 84c922
kernel_read_system_state(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_if(nmbd_t)
Don Miner fa16f2
corenet_udp_sendrecv_all_if(nmbd_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_if(nmbd_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_nodes(nmbd_t)
Don Miner fa16f2
corenet_udp_sendrecv_all_nodes(nmbd_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_nodes(nmbd_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_ports(nmbd_t)
Don Miner fa16f2
corenet_udp_sendrecv_all_ports(nmbd_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(nmbd_t)
Chris PeBenito 84c922
corenet_tcp_bind_all_nodes(nmbd_t)
Don Miner fa16f2
corenet_udp_bind_all_nodes(nmbd_t)
Chris PeBenito 84c922
corenet_udp_bind_nmbd_port(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
dev_read_sysfs(nmbd_t)
Chris PeBenito 207c47
dev_getattr_mtrr_dev(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
fs_getattr_all_fs(nmbd_t)
Chris PeBenito 84c922
fs_search_auto_mountpoints(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
term_dontaudit_use_console(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 15722e
domain_use_interactive_fds(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
files_read_usr_files(nmbd_t)
Chris PeBenito 84c922
files_read_etc_files(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
init_use_fd(nmbd_t)
Chris PeBenito 1815ba
init_use_script_ptys(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
libs_use_ld_so(nmbd_t)
Chris PeBenito 84c922
libs_use_shared_libs(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
logging_search_logs(nmbd_t)
Chris PeBenito 84c922
logging_send_syslog_msg(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
miscfiles_read_localization(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
sysnet_read_config(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(nmbd_t)
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(nmbd_t)
Chris PeBenito 103fe2
userdom_use_unpriv_users_fds(nmbd_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
ifdef(`targeted_policy', `
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(nmbd_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(nmbd_t)
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(nmbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`nis',`
Chris PeBenito 84c922
	nis_use_ypbind(nmbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`selinuxutil',`
Chris PeBenito 84c922
	seutil_sigchld_newrole(nmbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`udev',`
Chris PeBenito 84c922
	udev_read_db(nmbd_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 84c922
########################################
Chris PeBenito 84c922
#
Chris PeBenito 84c922
# smbmount Local policy
Chris PeBenito 84c922
#
Chris PeBenito 79cde3
Chris PeBenito 84c922
allow smbmount_t self:capability { sys_rawio sys_admin dac_override chown }; # FIXME: is all of this really necessary?
Chris PeBenito 84c922
allow smbmount_t self:process { fork signal_perms };
Chris PeBenito 84c922
allow smbmount_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 84c922
allow smbmount_t self:udp_socket connect;
Chris PeBenito 84c922
allow smbmount_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 84c922
allow smbmount_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbmount_t samba_etc_t:dir r_dir_perms;
Chris PeBenito 84c922
allow smbmount_t samba_etc_t:file r_file_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
can_exec(smbmount_t, smbmount_exec_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbmount_t samba_log_t:dir r_dir_perms; 
Chris PeBenito 84c922
allow smbmount_t samba_log_t:file create_file_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbmount_t samba_secrets_t:file create_file_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
allow smbmount_t samba_var_t:dir rw_dir_perms;
Chris PeBenito 84c922
allow smbmount_t samba_var_t:file create_file_perms;
Chris PeBenito 84c922
allow smbmount_t samba_var_t:lnk_file create_lnk_perms;
Chris PeBenito 84c922
Chris PeBenito 84c922
kernel_read_system_state(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_if(smbmount_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_if(smbmount_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_if(smbmount_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_nodes(smbmount_t)
Chris PeBenito 84c922
corenet_raw_sendrecv_all_nodes(smbmount_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_nodes(smbmount_t)
Chris PeBenito 84c922
corenet_tcp_sendrecv_all_ports(smbmount_t)
Chris PeBenito 84c922
corenet_udp_sendrecv_all_ports(smbmount_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(smbmount_t)
Chris PeBenito 84c922
corenet_tcp_bind_all_nodes(smbmount_t)
Chris PeBenito 84c922
corenet_udp_bind_all_nodes(smbmount_t)
Chris PeBenito 84c922
corenet_tcp_connect_all_ports(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
fs_getattr_cifs(smbmount_t)
Chris PeBenito 84c922
fs_mount_cifs(smbmount_t)
Chris PeBenito 84c922
fs_remount_cifs(smbmount_t)
Chris PeBenito 84c922
fs_unmount_cifs(smbmount_t)
Chris PeBenito 84c922
fs_list_cifs(smbmount_t)
Chris PeBenito 84c922
fs_read_cifs_files(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
storage_raw_read_fixed_disk(smbmount_t)
Chris PeBenito 84c922
storage_raw_write_fixed_disk(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
term_list_ptys(smbmount_t)
Chris PeBenito 84c922
term_use_controlling_term(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
corecmd_list_bin(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
files_list_mnt(smbmount_t)
Chris PeBenito 84c922
files_mounton_mnt(smbmount_t)
Chris PeBenito 84c922
files_manage_etc_runtime_files(smbmount_t)
Chris PeBenito 84c922
files_read_etc_files(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
miscfiles_read_localization(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
mount_use_fd(smbmount_t)
Chris PeBenito 84c922
mount_send_nfs_client_request(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
libs_use_ld_so(smbmount_t)
Chris PeBenito 84c922
libs_use_shared_libs(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
locallogin_use_fd(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
logging_search_logs(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 84c922
sysnet_read_config(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 15722e
userdom_use_all_users_fds(smbmount_t)
Chris PeBenito 1815ba
userdom_use_sysadm_ttys(smbmount_t)
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`nis',`
Chris PeBenito 84c922
	nis_use_ypbind(smbmount_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito 1815ba
	nscd_socket_use(smbmount_t)
Chris PeBenito 84c922
')
Chris PeBenito 84c922
Chris PeBenito 84c922
ifdef(`TODO',`
Chris PeBenito 84c922
ifdef(`cups.te', `
Chris PeBenito 84c922
	allow smbd_t cupsd_rw_etc_t:file { getattr read };
Chris PeBenito 84c922
')
Chris PeBenito 84c922
')
Chris PeBenito 79cde3
Chris PeBenito 79cde3
########################################
Chris PeBenito 79cde3
#
Chris PeBenito cbe327
# SWAT Local policy
Chris PeBenito cbe327
#
Chris PeBenito cbe327
Chris PeBenito cbe327
allow swat_t self:capability { setuid setgid };
Chris PeBenito cbe327
allow swat_t self:process signal_perms;
Chris PeBenito cbe327
allow swat_t self:fifo_file rw_file_perms;
Chris PeBenito cbe327
allow swat_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
Chris PeBenito be1e6e
allow swat_t self:netlink_audit_socket create;
Chris PeBenito be1e6e
allow swat_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito cbe327
allow swat_t self:udp_socket create_socket_perms;
Chris PeBenito cbe327
Chris PeBenito be1e6e
Chris PeBenito be1e6e
allow swat_t nmbd_exec_t:file { execute read };
Chris PeBenito be1e6e
Chris PeBenito be1e6e
allow swat_t samba_etc_t:dir search;
Chris PeBenito be1e6e
allow swat_t samba_etc_t:file { getattr write read };
Chris PeBenito be1e6e
Chris PeBenito be1e6e
allow swat_t samba_log_t:dir search;
Chris PeBenito be1e6e
allow swat_t samba_log_t:file append;
Chris PeBenito be1e6e
Chris PeBenito be1e6e
allow swat_t smbd_exec_t:file execute ;
Chris PeBenito be1e6e
Chris PeBenito be1e6e
allow swat_t smbd_t:process signull;
Chris PeBenito be1e6e
Chris PeBenito be1e6e
allow swat_t smbd_var_run_t:file read;
Chris PeBenito be1e6e
Chris PeBenito cbe327
allow swat_t swat_tmp_t:dir create_dir_perms;
Chris PeBenito cbe327
allow swat_t swat_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
files_tmp_filetrans(swat_t, swat_tmp_t, { file dir })
Chris PeBenito cbe327
Chris PeBenito cbe327
allow swat_t swat_var_run_t:file create_file_perms;
Chris PeBenito cbe327
allow swat_t swat_var_run_t:dir rw_dir_perms;
Chris PeBenito 103fe2
files_pid_filetrans(swat_t,swat_var_run_t)
Chris PeBenito cbe327
Chris PeBenito be1e6e
allow swat_t winbind_exec_t:file execute;
Chris PeBenito be1e6e
Chris PeBenito 445522
kernel_read_kernel_sysctls(swat_t)
Chris PeBenito cbe327
kernel_read_system_state(swat_t)
Chris PeBenito cbe327
kernel_read_network_state(swat_t)
Chris PeBenito cbe327
Chris PeBenito be1e6e
corecmd_search_sbin(swat_t)
Chris PeBenito be1e6e
Chris PeBenito cbe327
corenet_non_ipsec_sendrecv(swat_t)
Chris PeBenito cbe327
corenet_tcp_sendrecv_generic_if(swat_t)
Chris PeBenito cbe327
corenet_udp_sendrecv_generic_if(swat_t)
Chris PeBenito cbe327
corenet_raw_sendrecv_generic_if(swat_t)
Chris PeBenito cbe327
corenet_tcp_sendrecv_all_nodes(swat_t)
Chris PeBenito cbe327
corenet_udp_sendrecv_all_nodes(swat_t)
Chris PeBenito cbe327
corenet_raw_sendrecv_all_nodes(swat_t)
Chris PeBenito cbe327
corenet_tcp_sendrecv_all_ports(swat_t)
Chris PeBenito cbe327
corenet_udp_sendrecv_all_ports(swat_t)
Chris PeBenito cbe327
corenet_tcp_bind_all_nodes(swat_t)
Chris PeBenito cbe327
corenet_udp_bind_all_nodes(swat_t)
Chris PeBenito be1e6e
corenet_tcp_connect_smbd_port(swat_t)
Chris PeBenito cbe327
Chris PeBenito cbe327
dev_read_urand(swat_t)
Chris PeBenito cbe327
Chris PeBenito cbe327
files_read_etc_files(swat_t)
Chris PeBenito cbe327
files_search_home(swat_t)
Chris PeBenito be1e6e
files_read_usr_files(swat_t)
Chris PeBenito cbe327
fs_getattr_xattr_fs(swat_t)
Chris PeBenito cbe327
Chris PeBenito be1e6e
auth_domtrans_chk_passwd(swat_t)
Chris PeBenito be1e6e
Chris PeBenito cbe327
libs_use_ld_so(swat_t)
Chris PeBenito cbe327
libs_use_shared_libs(swat_t)
Chris PeBenito cbe327
Chris PeBenito cbe327
logging_send_syslog_msg(swat_t)
Chris PeBenito be1e6e
logging_search_logs(swat_t)
Chris PeBenito cbe327
Chris PeBenito cbe327
miscfiles_read_localization(swat_t)
Chris PeBenito cbe327
Chris PeBenito cbe327
sysnet_read_config(swat_t)
Chris PeBenito cbe327
Chris PeBenito be1e6e
optional_policy(`cups',`
Chris PeBenito be1e6e
	cups_read_rw_config(swat_t)
Chris PeBenito be1e6e
')
Chris PeBenito be1e6e
Chris PeBenito cbe327
optional_policy(`kerberos',`
Chris PeBenito cbe327
	kerberos_use(swat_t)
Chris PeBenito cbe327
')
Chris PeBenito cbe327
Chris PeBenito cbe327
optional_policy(`nis',`
Chris PeBenito cbe327
	nis_use_ypbind(swat_t)
Chris PeBenito cbe327
')
Chris PeBenito cbe327
Chris PeBenito cbe327
optional_policy(`nscd',`
Chris PeBenito 1815ba
	nscd_socket_use(swat_t)
Chris PeBenito cbe327
')
Chris PeBenito cbe327
Chris PeBenito cbe327
########################################
Chris PeBenito cbe327
#
Chris PeBenito 79cde3
# Winbind local policy
Chris PeBenito 79cde3
#
Chris PeBenito 79cde3
Chris PeBenito 79cde3
dontaudit winbind_t self:capability sys_tty_config;
Chris PeBenito 79cde3
allow winbind_t self:process signal_perms;
Chris PeBenito 79cde3
allow winbind_t self:fifo_file { read write };
Chris PeBenito 79cde3
allow winbind_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 79cde3
allow winbind_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 79cde3
allow winbind_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito 79cde3
allow winbind_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 79cde3
allow winbind_t self:udp_socket create_socket_perms;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t samba_etc_t:dir r_dir_perms;
Chris PeBenito 79cde3
allow winbind_t samba_etc_t:lnk_file { getattr read };
Chris PeBenito 79cde3
allow winbind_t samba_etc_t:file r_file_perms;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t samba_secrets_t:file create_file_perms;
Chris PeBenito 79cde3
allow winbind_t samba_etc_t:dir rw_dir_perms;
Chris PeBenito 79cde3
type_transition winbind_t samba_etc_t:file samba_secrets_t;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t samba_log_t:dir rw_dir_perms;
Chris PeBenito 79cde3
allow winbind_t samba_log_t:file create_file_perms;
Chris PeBenito 79cde3
allow winbind_t samba_log_t:lnk_file create_lnk_perms;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t samba_var_t:dir rw_dir_perms;
Chris PeBenito 79cde3
allow winbind_t samba_var_t:file create_file_perms;
Chris PeBenito 79cde3
allow winbind_t samba_var_t:lnk_file create_lnk_perms;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t winbind_log_t:file create_file_perms;
Chris PeBenito 103fe2
logging_log_filetrans(winbind_t,winbind_log_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t winbind_tmp_t:dir create_dir_perms;
Chris PeBenito 79cde3
allow winbind_t winbind_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
files_tmp_filetrans(winbind_t, winbind_tmp_t, { file dir })
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_t winbind_var_run_t:file create_file_perms;
Chris PeBenito 79cde3
allow winbind_t winbind_var_run_t:sock_file create_file_perms;
Chris PeBenito 79cde3
allow winbind_t winbind_var_run_t:dir rw_dir_perms;
Chris PeBenito 103fe2
files_pid_filetrans(winbind_t,winbind_var_run_t)
Chris PeBenito 79cde3
Chris PeBenito 445522
kernel_read_kernel_sysctls(winbind_t)
Chris PeBenito 79cde3
kernel_list_proc(winbind_t)
Chris PeBenito 79cde3
kernel_read_proc_symlinks(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
corenet_tcp_sendrecv_all_if(winbind_t)
Chris PeBenito 79cde3
corenet_udp_sendrecv_all_if(winbind_t)
Chris PeBenito 79cde3
corenet_raw_sendrecv_all_if(winbind_t)
Chris PeBenito 79cde3
corenet_tcp_sendrecv_all_nodes(winbind_t)
Chris PeBenito 79cde3
corenet_udp_sendrecv_all_nodes(winbind_t)
Chris PeBenito 79cde3
corenet_raw_sendrecv_all_nodes(winbind_t)
Chris PeBenito 79cde3
corenet_tcp_sendrecv_all_ports(winbind_t)
Chris PeBenito 79cde3
corenet_udp_sendrecv_all_ports(winbind_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(winbind_t)
Chris PeBenito 79cde3
corenet_tcp_bind_all_nodes(winbind_t)
Chris PeBenito 79cde3
corenet_udp_bind_all_nodes(winbind_t)
Chris PeBenito 79cde3
corenet_tcp_connect_smbd_port(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
dev_read_sysfs(winbind_t)
Chris PeBenito 79cde3
dev_read_urand(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
fs_getattr_all_fs(winbind_t)
Chris PeBenito 79cde3
fs_search_auto_mountpoints(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
term_dontaudit_use_console(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
auth_domtrans_chk_passwd(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 15722e
domain_use_interactive_fds(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
files_read_etc_files(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
init_use_fd(winbind_t)
Chris PeBenito 1815ba
init_use_script_ptys(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
libs_use_ld_so(winbind_t)
Chris PeBenito 79cde3
libs_use_shared_libs(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
logging_send_syslog_msg(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
miscfiles_read_localization(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
sysnet_read_config(winbind_t)
Chris PeBenito 79cde3
sysnet_dns_name_resolve(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(winbind_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(winbind_t)
Chris PeBenito 784a3b
userdom_priveleged_home_dir_manager(winbind_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
ifdef(`targeted_policy', `
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(winbind_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(winbind_t)
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(winbind_t)
Chris PeBenito 79cde3
')
Chris PeBenito 79cde3
Chris PeBenito 132880
optional_policy(`kerberos',`
Chris PeBenito 79cde3
	kerberos_use(winbind_t)
Chris PeBenito 79cde3
')
Chris PeBenito 79cde3
Chris PeBenito 132880
optional_policy(`mount',`
Chris PeBenito 79cde3
	mount_send_nfs_client_request(winbind_t)
Chris PeBenito 79cde3
')
Chris PeBenito 79cde3
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito 1815ba
	nscd_socket_use(winbind_t)
Chris PeBenito 79cde3
')
Chris PeBenito 79cde3
Chris PeBenito 132880
optional_policy(`selinuxutil',`
Chris PeBenito 79cde3
	seutil_sigchld_newrole(winbind_t)
Chris PeBenito 79cde3
')
Chris PeBenito 79cde3
Chris PeBenito 132880
optional_policy(`udev',`
Chris PeBenito 79cde3
	udev_read_db(winbind_t)
Chris PeBenito 79cde3
')
Chris PeBenito 79cde3
Chris PeBenito 79cde3
########################################
Chris PeBenito 79cde3
#
Chris PeBenito 79cde3
# Winbind helper local policy
Chris PeBenito 79cde3
#
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_helper_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 79cde3
allow winbind_helper_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
allow winbind_helper_t samba_etc_t:dir r_dir_perms;
Chris PeBenito 79cde3
allow winbind_helper_t samba_etc_t:lnk_file { getattr read };
Chris PeBenito 79cde3
allow winbind_helper_t samba_etc_t:file r_file_perms;
Chris PeBenito 79cde3
Chris PeBenito 77f6e2
allow winbind_helper_t samba_var_t:dir search;
Chris PeBenito 77f6e2
Chris PeBenito 79cde3
allow winbind_helper_t winbind_var_run_t:dir r_dir_perms;
Chris PeBenito 79cde3
allow winbind_helper_t winbind_var_run_t:sock_file { getattr read write };
Chris PeBenito 79cde3
allow winbind_helper_t winbind_t:unix_stream_socket connectto;
Chris PeBenito 79cde3
Chris PeBenito 79cde3
term_list_ptys(winbind_helper_t)
Chris PeBenito 79cde3
Chris PeBenito 15722e
domain_use_interactive_fds(winbind_helper_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
libs_use_ld_so(winbind_helper_t)
Chris PeBenito 79cde3
libs_use_shared_libs(winbind_helper_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
logging_send_syslog_msg(winbind_helper_t)
Chris PeBenito 79cde3
Chris PeBenito 79cde3
miscfiles_read_localization(winbind_helper_t) 
Chris PeBenito 79cde3
Chris PeBenito a525f2
ifdef(`targeted_policy',`
Chris PeBenito 1815ba
	term_use_generic_ptys(winbind_helper_t)
Chris PeBenito 1815ba
	term_use_unallocated_ttys(winbind_helper_t)
Chris PeBenito a525f2
')
Chris PeBenito a525f2
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito 1815ba
	nscd_socket_use(winbind_helper_t)
Chris PeBenito 79cde3
')
Chris PeBenito 77f6e2
Chris PeBenito 132880
optional_policy(`squid',`
Chris PeBenito 671673
	squid_read_log(winbind_helper_t)
Chris PeBenito 671673
	squid_append_log(winbind_helper_t)
Chris PeBenito 77f6e2
')