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