Chris PeBenito 31b7c0
#DESC winbind - Name  Service  Switch  daemon for resolving names from NT servers
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Author: Dan Walsh (dwalsh@redhat.com)
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#################################
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Declarations for winbind
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
daemon_domain(winbind, `, privhome, auth_chkpwd, nscd_client_domain')
Chris PeBenito 31b7c0
log_domain(winbind)
Chris PeBenito 31b7c0
tmp_domain(winbind)
Chris PeBenito 31b7c0
allow winbind_t etc_t:file r_file_perms;
Chris PeBenito 31b7c0
allow winbind_t etc_t:lnk_file read;
Chris PeBenito 31b7c0
can_network(winbind_t)
Chris PeBenito 31b7c0
allow winbind_t smbd_port_t:tcp_socket name_connect;
Chris PeBenito 31b7c0
can_resolve(winbind_t)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
ifdef(`samba.te', `', `
Chris PeBenito 31b7c0
type samba_etc_t, file_type, sysadmfile, usercanread;
Chris PeBenito 31b7c0
type samba_log_t, file_type, sysadmfile, logfile;
Chris PeBenito 31b7c0
type samba_var_t, file_type, sysadmfile;
Chris PeBenito 31b7c0
type samba_secrets_t, file_type, sysadmfile;
Chris PeBenito 31b7c0
')
Chris PeBenito 31b7c0
file_type_auto_trans(winbind_t, samba_etc_t, samba_secrets_t, file)
Chris PeBenito 31b7c0
rw_dir_create_file(winbind_t, samba_log_t)
Chris PeBenito 31b7c0
allow winbind_t samba_secrets_t:file rw_file_perms;
Chris PeBenito 31b7c0
allow winbind_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 31b7c0
allow winbind_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 31b7c0
allow winbind_t urandom_device_t:chr_file { getattr read };
Chris PeBenito 31b7c0
allow winbind_t self:fifo_file { read write };
Chris PeBenito 31b7c0
rw_dir_create_file(winbind_t, samba_var_t)
Chris PeBenito 31b7c0
can_kerberos(winbind_t)
Chris PeBenito 31b7c0
allow winbind_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito 31b7c0
allow winbind_t winbind_var_run_t:sock_file create_file_perms;
Chris PeBenito 31b7c0
allow initrc_t winbind_var_run_t:file r_file_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
application_domain(winbind_helper, `, nscd_client_domain')
Chris PeBenito 31b7c0
role system_r types winbind_helper_t;
Chris PeBenito 31b7c0
access_terminal(winbind_helper_t, sysadm)
Chris PeBenito 31b7c0
read_locale(winbind_helper_t) 
Chris PeBenito 31b7c0
r_dir_file(winbind_helper_t, samba_etc_t)
Chris PeBenito 31b7c0
r_dir_file(winbind_t, samba_etc_t)
Chris PeBenito 31b7c0
allow winbind_helper_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 31b7c0
allow winbind_helper_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 31b7c0
allow winbind_helper_t samba_var_t:dir search;
Chris PeBenito 31b7c0
allow winbind_helper_t winbind_var_run_t:dir r_dir_perms;
Chris PeBenito 31b7c0
can_winbind(winbind_helper_t)
Chris PeBenito 31b7c0
allow winbind_helper_t privfd:fd use;