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