trunk: fix winbind socket connection interface for default location of the sock_file.

This commit is contained in:
Chris PeBenito 2008-03-21 14:18:13 +00:00
parent 9e8c3aa651
commit 9377a3e59c
3 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,5 @@
- Fix winbind socket connection interface for default location of the
sock_file.
- Add wireshark module based on ethereal module.
- Revise upstart support in init module to use a tunable, as upstart is now
used in Fedora too.

View File

@ -484,11 +484,22 @@ interface(`samba_read_winbind_pid',`
## </param>
#
interface(`samba_stream_connect_winbind',`
gen_require(`
type samba_var_t, winbind_t, winbind_var_run_t;
')
ifdef(`distro_redhat',`
gen_require(`
type samba_var_t, winbind_t, winbind_var_run_t;
')
files_search_pids($1)
allow $1 samba_var_t:dir search_dir_perms;
stream_connect_pattern($1,winbind_var_run_t,winbind_var_run_t,winbind_t)
files_search_pids($1)
allow $1 samba_var_t:dir search_dir_perms;
stream_connect_pattern($1,winbind_var_run_t,winbind_var_run_t,winbind_t)
',`
gen_require(`
type winbind_t, winbind_tmp_t;
')
# the default for the socket is (poorly named):
# /tmp/.winbindd/pipe
files_search_tmp($1)
stream_connect_pattern($1,winbind_tmp_t,winbind_tmp_t,winbind_t)
')
')

View File

@ -1,5 +1,5 @@
policy_module(samba,1.7.1)
policy_module(samba,1.7.2)
#################################
#