2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 21:22:47 +00:00
|
|
|
policy_module(samba,1.4.0)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
#################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type nmbd_t;
|
|
|
|
type nmbd_exec_t;
|
|
|
|
init_daemon_domain(nmbd_t,nmbd_exec_t)
|
|
|
|
|
|
|
|
type nmbd_var_run_t;
|
|
|
|
files_pid_file(nmbd_var_run_t)
|
|
|
|
|
2005-10-24 18:40:24 +00:00
|
|
|
type samba_etc_t;
|
|
|
|
files_config_file(samba_etc_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2005-09-21 20:01:40 +00:00
|
|
|
type samba_log_t;
|
|
|
|
logging_log_file(samba_log_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
type samba_net_t;
|
|
|
|
domain_type(samba_net_t)
|
2005-09-20 20:48:17 +00:00
|
|
|
role system_r types samba_net_t;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
type samba_net_exec_t;
|
|
|
|
domain_entry_file(samba_net_t,samba_net_exec_t)
|
|
|
|
|
|
|
|
type samba_net_tmp_t;
|
|
|
|
files_tmp_file(samba_net_tmp_t)
|
|
|
|
|
|
|
|
type samba_secrets_t;
|
|
|
|
files_type(samba_secrets_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
type samba_share_t; # customizable
|
2006-06-14 20:52:45 +00:00
|
|
|
files_type(samba_share_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
type samba_var_t;
|
|
|
|
files_type(samba_var_t)
|
|
|
|
|
|
|
|
type smbd_t;
|
|
|
|
type smbd_exec_t;
|
|
|
|
init_daemon_domain(smbd_t,smbd_exec_t)
|
|
|
|
|
|
|
|
type smbd_tmp_t;
|
|
|
|
files_tmp_file(smbd_tmp_t)
|
|
|
|
|
|
|
|
type smbd_var_run_t;
|
|
|
|
files_pid_file(smbd_var_run_t)
|
|
|
|
|
|
|
|
type smbmount_t;
|
|
|
|
domain_type(smbmount_t)
|
|
|
|
|
|
|
|
type smbmount_exec_t;
|
|
|
|
domain_entry_file(smbmount_t,smbmount_exec_t)
|
|
|
|
|
2005-12-09 21:07:30 +00:00
|
|
|
type swat_t;
|
|
|
|
type swat_exec_t;
|
2006-10-10 13:11:58 +00:00
|
|
|
domain_type(swat_t)
|
|
|
|
domain_entry_file(swat_t,swat_exec_t)
|
2005-12-09 21:07:30 +00:00
|
|
|
role system_r types swat_t;
|
|
|
|
|
|
|
|
type swat_tmp_t;
|
|
|
|
files_tmp_file(swat_tmp_t)
|
|
|
|
|
|
|
|
type swat_var_run_t;
|
|
|
|
files_pid_file(swat_var_run_t)
|
|
|
|
|
2005-10-25 17:50:00 +00:00
|
|
|
type winbind_t;
|
2005-09-28 18:22:58 +00:00
|
|
|
type winbind_exec_t;
|
|
|
|
init_daemon_domain(winbind_t,winbind_exec_t)
|
|
|
|
|
|
|
|
type winbind_helper_t;
|
|
|
|
domain_type(winbind_helper_t)
|
|
|
|
role system_r types winbind_helper_t;
|
|
|
|
|
|
|
|
type winbind_helper_exec_t;
|
|
|
|
domain_entry_file(winbind_helper_t,winbind_helper_exec_t)
|
|
|
|
|
|
|
|
type winbind_log_t;
|
|
|
|
logging_log_file(winbind_log_t)
|
|
|
|
|
|
|
|
type winbind_tmp_t;
|
|
|
|
files_tmp_file(winbind_tmp_t)
|
|
|
|
|
|
|
|
type winbind_var_run_t;
|
|
|
|
files_pid_file(winbind_var_run_t)
|
|
|
|
|
2005-09-14 18:33:53 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Samba net local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow samba_net_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow samba_net_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow samba_net_t self:udp_socket create_socket_perms;
|
|
|
|
allow samba_net_t self:tcp_socket create_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow samba_net_t samba_etc_t:file read_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(samba_net_t,samba_etc_t,samba_secrets_t)
|
|
|
|
filetrans_pattern(samba_net_t,samba_etc_t,samba_secrets_t,file)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(samba_net_t,samba_net_tmp_t,samba_net_tmp_t)
|
|
|
|
manage_files_pattern(samba_net_t,samba_net_tmp_t,samba_net_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(samba_net_t, samba_net_tmp_t, { file dir })
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
allow samba_net_t samba_var_t:dir rw_dir_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(samba_net_t,samba_var_t,samba_var_t)
|
|
|
|
manage_lnk_files_pattern(samba_net_t,samba_var_t,samba_var_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
kernel_read_proc_symlinks(samba_net_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(samba_net_t)
|
|
|
|
corenet_udp_sendrecv_all_if(samba_net_t)
|
|
|
|
corenet_raw_sendrecv_all_if(samba_net_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(samba_net_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(samba_net_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(samba_net_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(samba_net_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(samba_net_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(samba_net_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_tcp_bind_all_nodes(samba_net_t)
|
|
|
|
corenet_udp_bind_all_nodes(samba_net_t)
|
|
|
|
corenet_tcp_connect_smbd_port(samba_net_t)
|
|
|
|
|
|
|
|
dev_read_urand(samba_net_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(samba_net_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
files_read_etc_files(samba_net_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(samba_net_t)
|
|
|
|
libs_use_shared_libs(samba_net_t)
|
|
|
|
|
2005-10-24 21:33:46 +00:00
|
|
|
logging_send_syslog_msg(samba_net_t)
|
|
|
|
|
2005-09-14 18:33:53 +00:00
|
|
|
miscfiles_read_localization(samba_net_t)
|
|
|
|
|
|
|
|
sysnet_read_config(samba_net_t)
|
2006-09-08 17:21:28 +00:00
|
|
|
sysnet_use_ldap(samba_net_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(samba_net_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2005-10-24 21:33:46 +00:00
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_use_generic_ptys(samba_net_t)
|
|
|
|
term_use_unallocated_ttys(samba_net_t)
|
2005-10-24 21:33:46 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
kerberos_use(samba_net_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(samba_net_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# smbd Local policy
|
|
|
|
#
|
2006-08-29 02:41:00 +00:00
|
|
|
allow smbd_t self:capability { fowner setgid setuid sys_resource lease dac_override dac_read_search };
|
2005-09-14 18:33:53 +00:00
|
|
|
dontaudit smbd_t self:capability sys_tty_config;
|
|
|
|
allow smbd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
2005-10-24 12:45:16 +00:00
|
|
|
allow smbd_t self:process setrlimit;
|
2005-09-14 18:33:53 +00:00
|
|
|
allow smbd_t self:fd use;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow smbd_t self:fifo_file rw_fifo_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
allow smbd_t self:msg { send receive };
|
|
|
|
allow smbd_t self:msgq create_msgq_perms;
|
|
|
|
allow smbd_t self:sem create_sem_perms;
|
|
|
|
allow smbd_t self:shm create_shm_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow smbd_t self:sock_file read_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
allow smbd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow smbd_t self:udp_socket create_socket_perms;
|
|
|
|
allow smbd_t self:unix_dgram_socket { create_socket_perms sendto };
|
|
|
|
allow smbd_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
2006-07-28 15:13:58 +00:00
|
|
|
allow smbd_t self:netlink_route_socket r_netlink_socket_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2005-10-24 12:45:16 +00:00
|
|
|
allow smbd_t samba_etc_t:file { rw_file_perms setattr };
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
create_dirs_pattern(smbd_t,samba_log_t,samba_log_t)
|
|
|
|
create_files_pattern(smbd_t,samba_log_t,samba_log_t)
|
|
|
|
append_files_pattern(smbd_t,samba_log_t,samba_log_t)
|
|
|
|
allow smbd_t samba_log_t:dir setattr;
|
2005-09-14 18:33:53 +00:00
|
|
|
dontaudit smbd_t samba_log_t:dir remove_name;
|
|
|
|
|
2006-04-12 15:04:28 +00:00
|
|
|
allow smbd_t samba_net_tmp_t:file getattr;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(smbd_t,samba_secrets_t,samba_secrets_t)
|
|
|
|
filetrans_pattern(smbd_t,samba_etc_t,samba_secrets_t,file)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(smbd_t,samba_share_t,samba_share_t)
|
|
|
|
manage_files_pattern(smbd_t,samba_share_t,samba_share_t)
|
|
|
|
manage_lnk_files_pattern(smbd_t,samba_share_t,samba_share_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(smbd_t,samba_var_t,samba_var_t)
|
|
|
|
manage_files_pattern(smbd_t,samba_var_t,samba_var_t)
|
|
|
|
manage_lnk_files_pattern(smbd_t,samba_var_t,samba_var_t)
|
|
|
|
manage_sock_files_pattern(smbd_t,samba_var_t,samba_var_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(smbd_t,smbd_tmp_t,smbd_tmp_t)
|
|
|
|
manage_files_pattern(smbd_t,smbd_tmp_t,smbd_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(smbd_t, smbd_tmp_t, { file dir })
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
allow smbd_t nmbd_var_run_t:file rw_file_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(smbd_t,smbd_var_run_t,smbd_var_run_t)
|
|
|
|
manage_files_pattern(smbd_t,smbd_var_run_t,smbd_var_run_t)
|
|
|
|
manage_sock_files_pattern(smbd_t,smbd_var_run_t,smbd_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(smbd_t,smbd_var_run_t,file)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2005-10-24 22:55:28 +00:00
|
|
|
allow smbd_t winbind_var_run_t:sock_file { read write getattr };
|
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_getattr_core_if(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
kernel_getattr_message_if(smbd_t)
|
|
|
|
kernel_read_network_state(smbd_t)
|
2006-06-07 17:43:10 +00:00
|
|
|
kernel_read_fs_sysctls(smbd_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
kernel_read_software_raid_state(smbd_t)
|
|
|
|
kernel_read_system_state(smbd_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(smbd_t)
|
|
|
|
corenet_udp_sendrecv_all_if(smbd_t)
|
|
|
|
corenet_raw_sendrecv_all_if(smbd_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(smbd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(smbd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(smbd_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(smbd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(smbd_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_tcp_bind_all_nodes(smbd_t)
|
|
|
|
corenet_udp_bind_all_nodes(smbd_t)
|
|
|
|
corenet_tcp_bind_smbd_port(smbd_t)
|
|
|
|
corenet_tcp_connect_ipp_port(smbd_t)
|
2005-09-16 13:36:26 +00:00
|
|
|
corenet_tcp_connect_smbd_port(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(smbd_t)
|
|
|
|
dev_read_urand(smbd_t)
|
2006-04-17 19:51:46 +00:00
|
|
|
dev_getattr_mtrr_dev(smbd_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_dontaudit_getattr_usbfs_dirs(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
fs_getattr_all_fs(smbd_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
fs_get_xattr_fs_quotas(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
fs_search_auto_mountpoints(smbd_t)
|
2006-06-07 17:43:10 +00:00
|
|
|
fs_getattr_rpc_dirs(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
term_dontaudit_use_console(smbd_t)
|
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
auth_use_nsswitch(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
auth_domtrans_chk_passwd(smbd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
files_list_var_lib(smbd_t)
|
|
|
|
files_read_etc_files(smbd_t)
|
|
|
|
files_read_etc_runtime_files(smbd_t)
|
|
|
|
files_read_usr_files(smbd_t)
|
|
|
|
files_search_spool(smbd_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
# Allow samba to list mnt_t for potential mounted dirs
|
|
|
|
files_list_mnt(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(smbd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(smbd_t)
|
2006-04-19 15:25:22 +00:00
|
|
|
init_rw_utmp(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(smbd_t)
|
|
|
|
libs_use_shared_libs(smbd_t)
|
|
|
|
|
|
|
|
logging_search_logs(smbd_t)
|
|
|
|
logging_send_syslog_msg(smbd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(smbd_t)
|
2005-10-24 21:33:46 +00:00
|
|
|
miscfiles_read_public_files(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
sysnet_read_config(smbd_t)
|
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(smbd_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(smbd_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_use_unpriv_users_fds(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-04-17 19:51:46 +00:00
|
|
|
ifdef(`hide_broken_symptoms', `
|
|
|
|
files_dontaudit_getattr_default_dirs(smbd_t)
|
|
|
|
files_dontaudit_getattr_boot_dirs(smbd_t)
|
|
|
|
fs_dontaudit_getattr_tmpfs_dirs(smbd_t)
|
|
|
|
')
|
|
|
|
|
2005-09-14 18:33:53 +00:00
|
|
|
ifdef(`targeted_policy', `
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(smbd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_generic_ptys(smbd_t)
|
|
|
|
term_dontaudit_use_unallocated_ttys(smbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
')
|
|
|
|
|
2005-10-24 21:33:46 +00:00
|
|
|
tunable_policy(`allow_smbd_anon_write',`
|
|
|
|
miscfiles_manage_public_files(smbd_t)
|
|
|
|
')
|
|
|
|
|
2006-04-17 17:32:54 +00:00
|
|
|
# Support Samba sharing of NFS mount points
|
|
|
|
tunable_policy(`samba_share_nfs',`
|
|
|
|
fs_manage_nfs_dirs(smbd_t)
|
|
|
|
fs_manage_nfs_files(smbd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-24 22:55:28 +00:00
|
|
|
cups_read_rw_config(smbd_t)
|
2006-07-28 15:13:58 +00:00
|
|
|
cups_stream_connect(smbd_t)
|
2005-10-24 22:55:28 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
kerberos_use(smbd_t)
|
|
|
|
')
|
|
|
|
|
2006-06-07 17:43:10 +00:00
|
|
|
optional_policy(`
|
|
|
|
rpc_search_nfs_state_data(smbd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
seutil_sigchld_newrole(smbd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
udev_read_db(smbd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# nmbd Local policy
|
|
|
|
#
|
2005-10-31 22:19:16 +00:00
|
|
|
|
2005-09-14 18:33:53 +00:00
|
|
|
dontaudit nmbd_t self:capability sys_tty_config;
|
|
|
|
allow nmbd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
|
|
allow nmbd_t self:fd use;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow nmbd_t self:fifo_file rw_fifo_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
allow nmbd_t self:msg { send receive };
|
|
|
|
allow nmbd_t self:msgq create_msgq_perms;
|
|
|
|
allow nmbd_t self:sem create_sem_perms;
|
|
|
|
allow nmbd_t self:shm create_shm_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow nmbd_t self:sock_file read_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
allow nmbd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow nmbd_t self:udp_socket create_socket_perms;
|
|
|
|
allow nmbd_t self:unix_dgram_socket { create_socket_perms sendto };
|
|
|
|
allow nmbd_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(nmbd_t,nmbd_var_run_t,nmbd_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(nmbd_t,nmbd_var_run_t,file)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
read_files_pattern(nmbd_t,samba_etc_t,samba_etc_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
create_dirs_pattern(nmbd_t,samba_log_t,samba_log_t)
|
|
|
|
append_files_pattern(nmbd_t,samba_log_t,samba_log_t)
|
|
|
|
read_files_pattern(nmbd_t,samba_log_t,samba_log_t)
|
|
|
|
create_files_pattern(nmbd_t,samba_log_t,samba_log_t)
|
|
|
|
allow nmbd_t samba_log_t:dir setattr;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(nmbd_t,samba_var_t,samba_var_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
allow nmbd_t smbd_var_run_t:dir rw_dir_perms;
|
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_getattr_core_if(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
kernel_getattr_message_if(nmbd_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
kernel_read_network_state(nmbd_t)
|
|
|
|
kernel_read_software_raid_state(nmbd_t)
|
|
|
|
kernel_read_system_state(nmbd_t)
|
|
|
|
|
2006-05-26 19:04:18 +00:00
|
|
|
corenet_non_ipsec_sendrecv(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_tcp_sendrecv_all_if(nmbd_t)
|
2005-10-24 12:45:16 +00:00
|
|
|
corenet_udp_sendrecv_all_if(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_tcp_sendrecv_all_nodes(nmbd_t)
|
2005-10-24 12:45:16 +00:00
|
|
|
corenet_udp_sendrecv_all_nodes(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(nmbd_t)
|
2005-10-24 12:45:16 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(nmbd_t)
|
|
|
|
corenet_udp_bind_all_nodes(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_udp_bind_nmbd_port(nmbd_t)
|
2006-05-26 19:04:18 +00:00
|
|
|
corenet_sendrecv_nmbd_server_packets(nmbd_t)
|
|
|
|
corenet_sendrecv_nmbd_client_packets(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(nmbd_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_getattr_mtrr_dev(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
fs_getattr_all_fs(nmbd_t)
|
|
|
|
fs_search_auto_mountpoints(nmbd_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(nmbd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
files_read_usr_files(nmbd_t)
|
|
|
|
files_read_etc_files(nmbd_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(nmbd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(nmbd_t)
|
|
|
|
libs_use_shared_libs(nmbd_t)
|
|
|
|
|
|
|
|
logging_search_logs(nmbd_t)
|
|
|
|
logging_send_syslog_msg(nmbd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(nmbd_t)
|
|
|
|
|
|
|
|
sysnet_read_config(nmbd_t)
|
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(nmbd_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(nmbd_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_use_unpriv_users_fds(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy', `
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(nmbd_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_generic_ptys(nmbd_t)
|
|
|
|
term_dontaudit_use_unallocated_ttys(nmbd_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
nis_use_ypbind(nmbd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
seutil_sigchld_newrole(nmbd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-14 18:33:53 +00:00
|
|
|
udev_read_db(nmbd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# smbmount Local policy
|
|
|
|
#
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2005-09-14 18:33:53 +00:00
|
|
|
allow smbmount_t self:capability { sys_rawio sys_admin dac_override chown }; # FIXME: is all of this really necessary?
|
|
|
|
allow smbmount_t self:process { fork signal_perms };
|
|
|
|
allow smbmount_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow smbmount_t self:udp_socket connect;
|
|
|
|
allow smbmount_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow smbmount_t self:unix_stream_socket create_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow smbmount_t samba_etc_t:dir list_dir_perms;
|
|
|
|
allow smbmount_t samba_etc_t:file read_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
can_exec(smbmount_t, smbmount_exec_t)
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow smbmount_t samba_log_t:dir list_dir_perms;
|
|
|
|
allow smbmount_t samba_log_t:file manage_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow smbmount_t samba_secrets_t:file manage_file_perms;
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
allow smbmount_t samba_var_t:dir rw_dir_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(smbmount_t,samba_var_t,samba_var_t)
|
|
|
|
manage_lnk_files_pattern(smbmount_t,samba_var_t,samba_var_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(smbmount_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(smbmount_t)
|
|
|
|
corenet_raw_sendrecv_all_if(smbmount_t)
|
|
|
|
corenet_udp_sendrecv_all_if(smbmount_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(smbmount_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(smbmount_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(smbmount_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(smbmount_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(smbmount_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(smbmount_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
corenet_tcp_bind_all_nodes(smbmount_t)
|
|
|
|
corenet_udp_bind_all_nodes(smbmount_t)
|
|
|
|
corenet_tcp_connect_all_ports(smbmount_t)
|
|
|
|
|
|
|
|
fs_getattr_cifs(smbmount_t)
|
|
|
|
fs_mount_cifs(smbmount_t)
|
|
|
|
fs_remount_cifs(smbmount_t)
|
|
|
|
fs_unmount_cifs(smbmount_t)
|
|
|
|
fs_list_cifs(smbmount_t)
|
|
|
|
fs_read_cifs_files(smbmount_t)
|
|
|
|
|
|
|
|
storage_raw_read_fixed_disk(smbmount_t)
|
|
|
|
storage_raw_write_fixed_disk(smbmount_t)
|
|
|
|
|
|
|
|
term_list_ptys(smbmount_t)
|
|
|
|
term_use_controlling_term(smbmount_t)
|
|
|
|
|
|
|
|
corecmd_list_bin(smbmount_t)
|
|
|
|
|
|
|
|
files_list_mnt(smbmount_t)
|
|
|
|
files_mounton_mnt(smbmount_t)
|
|
|
|
files_manage_etc_runtime_files(smbmount_t)
|
2006-05-02 18:34:35 +00:00
|
|
|
files_etc_filetrans_etc_runtime(smbmount_t,file)
|
2005-09-14 18:33:53 +00:00
|
|
|
files_read_etc_files(smbmount_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(smbmount_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
mount_use_fds(smbmount_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(smbmount_t)
|
|
|
|
libs_use_shared_libs(smbmount_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
locallogin_use_fds(smbmount_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
|
|
|
logging_search_logs(smbmount_t)
|
|
|
|
|
|
|
|
sysnet_read_config(smbmount_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_use_all_users_fds(smbmount_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
userdom_use_sysadm_ttys(smbmount_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
|
2006-10-31 21:01:48 +00:00
|
|
|
optional_policy(`
|
|
|
|
cups_read_rw_config(smbd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-04-03 19:49:47 +00:00
|
|
|
nis_use_ypbind(smbmount_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
')
|
|
|
|
|
2006-04-03 19:49:47 +00:00
|
|
|
optional_policy(`
|
|
|
|
nscd_socket_use(smbmount_t)
|
2005-09-14 18:33:53 +00:00
|
|
|
')
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2005-12-09 21:07:30 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# SWAT Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow swat_t self:capability { setuid setgid };
|
|
|
|
allow swat_t self:process signal_perms;
|
|
|
|
allow swat_t self:fifo_file rw_file_perms;
|
|
|
|
allow swat_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
2005-12-13 16:17:23 +00:00
|
|
|
allow swat_t self:netlink_audit_socket create;
|
|
|
|
allow swat_t self:tcp_socket create_stream_socket_perms;
|
2005-12-09 21:07:30 +00:00
|
|
|
allow swat_t self:udp_socket create_socket_perms;
|
2006-12-04 20:10:56 +00:00
|
|
|
allow swat_t self:netlink_route_socket r_netlink_socket_perms;
|
2005-12-13 16:17:23 +00:00
|
|
|
|
|
|
|
allow swat_t nmbd_exec_t:file { execute read };
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
rw_files_pattern(swat_t,samba_etc_t,samba_etc_t)
|
2005-12-13 16:17:23 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
append_files_pattern(swat_t,samba_log_t,samba_log_t)
|
2005-12-13 16:17:23 +00:00
|
|
|
|
|
|
|
allow swat_t smbd_exec_t:file execute ;
|
|
|
|
|
|
|
|
allow swat_t smbd_t:process signull;
|
|
|
|
|
|
|
|
allow swat_t smbd_var_run_t:file read;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(swat_t,swat_tmp_t,swat_tmp_t)
|
|
|
|
manage_files_pattern(swat_t,swat_tmp_t,swat_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(swat_t, swat_tmp_t, { file dir })
|
2005-12-09 21:07:30 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(swat_t,swat_var_run_t,swat_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(swat_t,swat_var_run_t,file)
|
2005-12-09 21:07:30 +00:00
|
|
|
|
2005-12-13 16:17:23 +00:00
|
|
|
allow swat_t winbind_exec_t:file execute;
|
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(swat_t)
|
2005-12-09 21:07:30 +00:00
|
|
|
kernel_read_system_state(swat_t)
|
|
|
|
kernel_read_network_state(swat_t)
|
|
|
|
|
2005-12-13 16:17:23 +00:00
|
|
|
corecmd_search_sbin(swat_t)
|
|
|
|
|
2005-12-09 21:07:30 +00:00
|
|
|
corenet_non_ipsec_sendrecv(swat_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(swat_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(swat_t)
|
|
|
|
corenet_raw_sendrecv_generic_if(swat_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(swat_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(swat_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(swat_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(swat_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(swat_t)
|
2005-12-13 16:17:23 +00:00
|
|
|
corenet_tcp_connect_smbd_port(swat_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
corenet_tcp_connect_ipp_port(swat_t)
|
|
|
|
corenet_sendrecv_smbd_client_packets(swat_t)
|
|
|
|
corenet_sendrecv_ipp_client_packets(swat_t)
|
2005-12-09 21:07:30 +00:00
|
|
|
|
|
|
|
dev_read_urand(swat_t)
|
|
|
|
|
|
|
|
files_read_etc_files(swat_t)
|
|
|
|
files_search_home(swat_t)
|
2005-12-13 16:17:23 +00:00
|
|
|
files_read_usr_files(swat_t)
|
2005-12-09 21:07:30 +00:00
|
|
|
fs_getattr_xattr_fs(swat_t)
|
|
|
|
|
2005-12-13 16:17:23 +00:00
|
|
|
auth_domtrans_chk_passwd(swat_t)
|
|
|
|
|
2005-12-09 21:07:30 +00:00
|
|
|
libs_use_ld_so(swat_t)
|
|
|
|
libs_use_shared_libs(swat_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(swat_t)
|
2005-12-13 16:17:23 +00:00
|
|
|
logging_search_logs(swat_t)
|
2005-12-09 21:07:30 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(swat_t)
|
|
|
|
|
|
|
|
sysnet_read_config(swat_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-13 16:17:23 +00:00
|
|
|
cups_read_rw_config(swat_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
cups_stream_connect(swat_t)
|
2005-12-13 16:17:23 +00:00
|
|
|
')
|
|
|
|
|
2006-10-10 13:11:58 +00:00
|
|
|
optional_policy(`
|
|
|
|
inetd_service_domain(swat_t,swat_exec_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-09 21:07:30 +00:00
|
|
|
kerberos_use(swat_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-09 21:07:30 +00:00
|
|
|
nis_use_ypbind(swat_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(swat_t)
|
2005-12-09 21:07:30 +00:00
|
|
|
')
|
|
|
|
|
2005-09-28 18:22:58 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Winbind local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit winbind_t self:capability sys_tty_config;
|
|
|
|
allow winbind_t self:process signal_perms;
|
|
|
|
allow winbind_t self:fifo_file { read write };
|
|
|
|
allow winbind_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow winbind_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow winbind_t self:netlink_route_socket r_netlink_socket_perms;
|
|
|
|
allow winbind_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow winbind_t self:udp_socket create_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow winbind_t samba_etc_t:dir list_dir_perms;
|
|
|
|
read_files_pattern(winbind_t,samba_etc_t,samba_etc_t)
|
|
|
|
read_lnk_files_pattern(winbind_t,samba_etc_t,samba_etc_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(winbind_t,samba_etc_t,samba_secrets_t)
|
|
|
|
filetrans_pattern(winbind_t,samba_etc_t,samba_secrets_t,file)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(winbind_t,samba_log_t,samba_log_t)
|
|
|
|
manage_files_pattern(winbind_t,samba_log_t,samba_log_t)
|
|
|
|
manage_lnk_files_pattern(winbind_t,samba_log_t,samba_log_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(winbind_t,samba_var_t,samba_var_t)
|
|
|
|
manage_lnk_files_pattern(winbind_t,samba_var_t,samba_var_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow winbind_t winbind_log_t:file manage_file_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
logging_log_filetrans(winbind_t,winbind_log_t,file)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(winbind_t,winbind_tmp_t,winbind_tmp_t)
|
|
|
|
manage_files_pattern(winbind_t,winbind_tmp_t,winbind_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(winbind_t, winbind_tmp_t, { file dir })
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(winbind_t,winbind_var_run_t,winbind_var_run_t)
|
|
|
|
manage_sock_files_pattern(winbind_t,winbind_var_run_t,winbind_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(winbind_t,winbind_var_run_t,file)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
kernel_list_proc(winbind_t)
|
|
|
|
kernel_read_proc_symlinks(winbind_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(winbind_t)
|
|
|
|
corenet_udp_sendrecv_all_if(winbind_t)
|
|
|
|
corenet_raw_sendrecv_all_if(winbind_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(winbind_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(winbind_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(winbind_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(winbind_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(winbind_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
corenet_tcp_bind_all_nodes(winbind_t)
|
|
|
|
corenet_udp_bind_all_nodes(winbind_t)
|
|
|
|
corenet_tcp_connect_smbd_port(winbind_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(winbind_t)
|
|
|
|
dev_read_urand(winbind_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(winbind_t)
|
|
|
|
fs_search_auto_mountpoints(winbind_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(winbind_t)
|
|
|
|
|
|
|
|
auth_domtrans_chk_passwd(winbind_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
|
|
|
files_read_etc_files(winbind_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(winbind_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(winbind_t)
|
|
|
|
libs_use_shared_libs(winbind_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(winbind_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(winbind_t)
|
|
|
|
|
|
|
|
sysnet_read_config(winbind_t)
|
|
|
|
sysnet_dns_name_resolve(winbind_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(winbind_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(winbind_t)
|
2005-10-25 17:50:00 +00:00
|
|
|
userdom_priveleged_home_dir_manager(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy', `
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_unallocated_ttys(winbind_t)
|
|
|
|
term_dontaudit_use_generic_ptys(winbind_t)
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-28 18:22:58 +00:00
|
|
|
kerberos_use(winbind_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-28 18:22:58 +00:00
|
|
|
seutil_sigchld_newrole(winbind_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-28 18:22:58 +00:00
|
|
|
udev_read_db(winbind_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Winbind helper local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow winbind_helper_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow winbind_helper_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow winbind_helper_t samba_etc_t:dir list_dir_perms;
|
|
|
|
read_files_pattern(winbind_helper_t,samba_etc_t,samba_etc_t)
|
|
|
|
read_lnk_files_pattern(winbind_helper_t,samba_etc_t,samba_etc_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
allow winbind_helper_t samba_var_t:dir search;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
stream_connect_pattern(winbind_helper_t,winbind_var_run_t,winbind_var_run_t,winbind_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
|
|
|
term_list_ptys(winbind_helper_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(winbind_helper_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(winbind_helper_t)
|
|
|
|
libs_use_shared_libs(winbind_helper_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(winbind_helper_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(winbind_helper_t)
|
|
|
|
|
2005-10-27 14:52:37 +00:00
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_use_generic_ptys(winbind_helper_t)
|
|
|
|
term_use_unallocated_ttys(winbind_helper_t)
|
2005-10-27 14:52:37 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(winbind_helper_t)
|
2005-09-28 18:22:58 +00:00
|
|
|
')
|
2005-10-13 20:59:36 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-10-24 21:33:46 +00:00
|
|
|
squid_read_log(winbind_helper_t)
|
|
|
|
squid_append_log(winbind_helper_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
')
|