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