+## Allow samba to create new home directories (e.g. via PAM) +##
+#### Allow samba to act as the domain controller, add users, ## groups and change passwords. ## @@ -364,6 +371,12 @@ optional_policy(` udev_read_db(smbd_t) ') +tunable_policy(`samba_create_home_dirs',` + allow smbd_t self:capability chown; + unprivuser_create_home_dir(smbd_t) + unprivuser_home_filetrans_home_dir(smbd_t) +') + tunable_policy(`samba_export_all_ro',` fs_read_noxattr_fs_files(smbd_t) auth_read_all_files_except_shadow(smbd_t) @@ -404,8 +417,7 @@ files_pid_filetrans(nmbd_t, nmbd_var_run_t, file) read_files_pattern(nmbd_t, samba_etc_t, samba_etc_t) manage_dirs_pattern(nmbd_t, samba_log_t, samba_log_t) -append_files_pattern(nmbd_t, samba_log_t, samba_log_t) -allow nmbd_t samba_log_t:file unlink; +manage_files_pattern(nmbd_t, samba_log_t, samba_log_t) read_files_pattern(nmbd_t, samba_log_t, samba_log_t) create_files_pattern(nmbd_t, samba_log_t, samba_log_t) @@ -675,6 +687,7 @@ logging_log_filetrans(winbind_t,winbind_log_t,file) manage_dirs_pattern(winbind_t, winbind_tmp_t, winbind_tmp_t) manage_files_pattern(winbind_t, winbind_tmp_t, winbind_tmp_t) +manage_sock_files_pattern(winbind_t, winbind_tmp_t, winbind_tmp_t) files_tmp_filetrans(winbind_t, winbind_tmp_t, { file dir }) manage_files_pattern(winbind_t, winbind_var_run_t, winbind_var_run_t)