Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Macros for samba domains.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Authors:  Dan Walsh <dwalsh@redhat.com>
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# 
Chris PeBenito 0fbfa5
# samba_domain(domain_prefix)
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Define a derived domain for the samba program when executed
Chris PeBenito 0fbfa5
# by a user domain.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# The type declaration for the executable type for this program is
Chris PeBenito 0fbfa5
# provided separately in domains/program/samba.te. 
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
undefine(`samba_domain')
Chris PeBenito 0fbfa5
ifdef(`samba.te', `
Chris PeBenito 0fbfa5
define(`samba_domain',`
Chris PeBenito 0fbfa5
if ( samba_enable_home_dirs ) {
Chris PeBenito 0fbfa5
allow smbd_t home_root_t:dir r_dir_perms;
Chris PeBenito 0fbfa5
file_type_auto_trans(smbd_t, $1_home_dir_t, $1_home_t)
Chris PeBenito 0fbfa5
dontaudit smbd_t $1_file_type:dir_file_class_set getattr;
Chris PeBenito 0fbfa5
}
Chris PeBenito 0fbfa5
')
Chris PeBenito 0fbfa5
', `
Chris PeBenito 0fbfa5
define(`samba_domain',`')
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
')dnl end if samba.te