clean up most of user subdir mess
This commit is contained in:
parent
e1ee92b290
commit
4a02d30d35
@ -120,8 +120,8 @@ template(`sudo_per_userdomain_template',`
|
|||||||
|
|
||||||
miscfiles_read_localization($1_sudo_t)
|
miscfiles_read_localization($1_sudo_t)
|
||||||
|
|
||||||
userdom_manage_user_home_subdir_files($1,$1_sudo_t)
|
userdom_manage_user_home_files($1,$1_sudo_t)
|
||||||
userdom_manage_user_home_subdir_symlinks($1,$1_sudo_t)
|
userdom_manage_user_home_symlinks($1,$1_sudo_t)
|
||||||
userdom_manage_user_tmp_files($1,$1_sudo_t)
|
userdom_manage_user_tmp_files($1,$1_sudo_t)
|
||||||
userdom_manage_user_tmp_symlinks($1,$1_sudo_t)
|
userdom_manage_user_tmp_symlinks($1,$1_sudo_t)
|
||||||
userdom_use_user_terminals($1,$1_sudo_t)
|
userdom_use_user_terminals($1,$1_sudo_t)
|
||||||
|
@ -143,10 +143,10 @@ template(`java_per_userdomain_template',`
|
|||||||
userdom_dontaudit_setattr_user_home_files($1,$1_javaplugin_t)
|
userdom_dontaudit_setattr_user_home_files($1,$1_javaplugin_t)
|
||||||
userdom_dontaudit_exec_user_home_files($1,$1_javaplugin_t)
|
userdom_dontaudit_exec_user_home_files($1,$1_javaplugin_t)
|
||||||
userdom_manage_user_home_subdirs($1,$1_javaplugin_t)
|
userdom_manage_user_home_subdirs($1,$1_javaplugin_t)
|
||||||
userdom_manage_user_home_subdir_files($1,$1_javaplugin_t)
|
userdom_manage_user_home_files($1,$1_javaplugin_t)
|
||||||
userdom_manage_user_home_subdir_symlinks($1,$1_javaplugin_t)
|
userdom_manage_user_home_symlinks($1,$1_javaplugin_t)
|
||||||
userdom_manage_user_home_subdir_pipes($1,$1_javaplugin_t)
|
userdom_manage_user_home_pipes($1,$1_javaplugin_t)
|
||||||
userdom_manage_user_home_subdir_sockets($1,$1_javaplugin_t)
|
userdom_manage_user_home_sockets($1,$1_javaplugin_t)
|
||||||
userdom_filetrans_user_home($1,$1_javaplugin_t,{ file lnk_file sock_file fifo_file })
|
userdom_filetrans_user_home($1,$1_javaplugin_t,{ file lnk_file sock_file fifo_file })
|
||||||
|
|
||||||
# libdeploy.so legacy
|
# libdeploy.so legacy
|
||||||
|
@ -144,10 +144,10 @@ template(`cron_per_userdomain_template',`
|
|||||||
userdom_exec_user_home_files($1,$1_crond_t)
|
userdom_exec_user_home_files($1,$1_crond_t)
|
||||||
# Access user files and dirs.
|
# Access user files and dirs.
|
||||||
# userdom_manage_user_home_subdir_dirs($1,$1_crond_t)
|
# userdom_manage_user_home_subdir_dirs($1,$1_crond_t)
|
||||||
userdom_manage_user_home_subdir_files($1,$1_crond_t)
|
userdom_manage_user_home_files($1,$1_crond_t)
|
||||||
userdom_manage_user_home_subdir_symlinks($1,$1_crond_t)
|
userdom_manage_user_home_symlinks($1,$1_crond_t)
|
||||||
userdom_manage_user_home_subdir_pipes($1,$1_crond_t)
|
userdom_manage_user_home_pipes($1,$1_crond_t)
|
||||||
userdom_manage_user_home_subdir_sockets($1,$1_crond_t)
|
userdom_manage_user_home_sockets($1,$1_crond_t)
|
||||||
# userdom_filetrans_user_home($1,$1_crond_t,notdevfile_class_set)
|
# userdom_filetrans_user_home($1,$1_crond_t,notdevfile_class_set)
|
||||||
|
|
||||||
tunable_policy(`fcron_crond', `
|
tunable_policy(`fcron_crond', `
|
||||||
|
@ -158,10 +158,10 @@ ifdef(`targeted_policy',`
|
|||||||
|
|
||||||
# cjp: fix this to generic_user interfaces
|
# cjp: fix this to generic_user interfaces
|
||||||
userdom_manage_user_home_subdirs(user,crond_t)
|
userdom_manage_user_home_subdirs(user,crond_t)
|
||||||
userdom_manage_user_home_subdir_files(user,crond_t)
|
userdom_manage_user_home_files(user,crond_t)
|
||||||
userdom_manage_user_home_subdir_symlinks(user,crond_t)
|
userdom_manage_user_home_symlinks(user,crond_t)
|
||||||
userdom_manage_user_home_subdir_pipes(user,crond_t)
|
userdom_manage_user_home_pipes(user,crond_t)
|
||||||
userdom_manage_user_home_subdir_sockets(user,crond_t)
|
userdom_manage_user_home_sockets(user,crond_t)
|
||||||
userdom_filetrans_user_home(user,crond_t,{ dir file lnk_file fifo_file sock_file })
|
userdom_filetrans_user_home(user,crond_t,{ dir file lnk_file fifo_file sock_file })
|
||||||
|
|
||||||
allow crond_t unconfined_t:dbus send_msg;
|
allow crond_t unconfined_t:dbus send_msg;
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
#
|
#
|
||||||
template(`ftp_per_userdomain_template',`
|
template(`ftp_per_userdomain_template',`
|
||||||
tunable_policy(`ftpd_is_daemon',`
|
tunable_policy(`ftpd_is_daemon',`
|
||||||
userdom_manage_user_home_subdir_files($1,ftpd_t)
|
userdom_manage_user_home_files($1,ftpd_t)
|
||||||
userdom_manage_user_home_subdir_symlinks($1,ftpd_t)
|
userdom_manage_user_home_symlinks($1,ftpd_t)
|
||||||
userdom_manage_user_home_subdir_sockets($1,ftpd_t)
|
userdom_manage_user_home_sockets($1,ftpd_t)
|
||||||
userdom_manage_user_home_subdir_pipes($1,ftpd_t)
|
userdom_manage_user_home_pipes($1,ftpd_t)
|
||||||
userdom_filetrans_user_home($1,ftpd_t,{ dir file lnk_file sock_file fifo_file })
|
userdom_filetrans_user_home($1,ftpd_t,{ dir file lnk_file sock_file fifo_file })
|
||||||
')
|
')
|
||||||
')
|
')
|
||||||
|
@ -138,10 +138,10 @@ ifdef(`targeted_policy',`
|
|||||||
optional_policy(`ftp',`
|
optional_policy(`ftp',`
|
||||||
tunable_policy(`ftpd_is_daemon',`
|
tunable_policy(`ftpd_is_daemon',`
|
||||||
# cjp: fix this to use regular interfaces
|
# cjp: fix this to use regular interfaces
|
||||||
userdom_manage_user_home_subdir_files(user,ftpd_t)
|
userdom_manage_user_home_files(user,ftpd_t)
|
||||||
userdom_manage_user_home_subdir_symlinks(user,ftpd_t)
|
userdom_manage_user_home_symlinks(user,ftpd_t)
|
||||||
userdom_manage_user_home_subdir_sockets(user,ftpd_t)
|
userdom_manage_user_home_sockets(user,ftpd_t)
|
||||||
userdom_manage_user_home_subdir_pipes(user,ftpd_t)
|
userdom_manage_user_home_pipes(user,ftpd_t)
|
||||||
userdom_filetrans_user_home(user,ftpd_t,{ dir file lnk_file sock_file fifo_file })
|
userdom_filetrans_user_home(user,ftpd_t,{ dir file lnk_file sock_file fifo_file })
|
||||||
')
|
')
|
||||||
')
|
')
|
||||||
|
@ -214,15 +214,15 @@ template(`mta_per_userdomain_template',`
|
|||||||
# Write to the user domain tty. cjp: why?
|
# Write to the user domain tty. cjp: why?
|
||||||
userdom_use_user_terminals($1,mta_user_agent)
|
userdom_use_user_terminals($1,mta_user_agent)
|
||||||
# Create dead.letter in user home directories.
|
# Create dead.letter in user home directories.
|
||||||
userdom_manage_user_home_subdir_files($1,$1_mail_t)
|
userdom_manage_user_home_files($1,$1_mail_t)
|
||||||
userdom_filetrans_user_home($1,$1_mail_t,file)
|
userdom_filetrans_user_home($1,$1_mail_t,file)
|
||||||
# for reading .forward - maybe we need a new type for it?
|
# for reading .forward - maybe we need a new type for it?
|
||||||
# also for delivering mail to maildir
|
# also for delivering mail to maildir
|
||||||
userdom_manage_user_home_subdirs($1,mailserver_delivery)
|
userdom_manage_user_home_subdirs($1,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_files($1,mailserver_delivery)
|
userdom_manage_user_home_files($1,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_symlinks($1,mailserver_delivery)
|
userdom_manage_user_home_symlinks($1,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_pipes($1,mailserver_delivery)
|
userdom_manage_user_home_pipes($1,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_sockets($1,mailserver_delivery)
|
userdom_manage_user_home_sockets($1,mailserver_delivery)
|
||||||
userdom_filetrans_user_home($1,mailserver_delivery,{ dir file lnk_file fifo_file sock_file })
|
userdom_filetrans_user_home($1,mailserver_delivery,{ dir file lnk_file fifo_file sock_file })
|
||||||
# Read user temporary files.
|
# Read user temporary files.
|
||||||
userdom_read_user_tmp_files($1,$1_mail_t)
|
userdom_read_user_tmp_files($1,$1_mail_t)
|
||||||
|
@ -78,10 +78,10 @@ ifdef(`targeted_policy',`
|
|||||||
# also for delivering mail to maildir
|
# also for delivering mail to maildir
|
||||||
# cjp: fix this to generic_user interfaces
|
# cjp: fix this to generic_user interfaces
|
||||||
userdom_manage_user_home_subdirs(user,mailserver_delivery)
|
userdom_manage_user_home_subdirs(user,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_files(user,mailserver_delivery)
|
userdom_manage_user_home_files(user,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_symlinks(user,mailserver_delivery)
|
userdom_manage_user_home_symlinks(user,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_pipes(user,mailserver_delivery)
|
userdom_manage_user_home_pipes(user,mailserver_delivery)
|
||||||
userdom_manage_user_home_subdir_sockets(user,mailserver_delivery)
|
userdom_manage_user_home_sockets(user,mailserver_delivery)
|
||||||
userdom_filetrans_user_home(user,mailserver_delivery,{ dir file lnk_file fifo_file sock_file })
|
userdom_filetrans_user_home(user,mailserver_delivery,{ dir file lnk_file fifo_file sock_file })
|
||||||
|
|
||||||
# cjp: another require-in-else to resolve
|
# cjp: another require-in-else to resolve
|
||||||
|
@ -33,10 +33,10 @@ template(`samba_per_userdomain_template',`
|
|||||||
')
|
')
|
||||||
|
|
||||||
tunable_policy(`samba_enable_home_dirs',`
|
tunable_policy(`samba_enable_home_dirs',`
|
||||||
userdom_manage_user_home_subdir_files($1,smbd_t)
|
userdom_manage_user_home_files($1,smbd_t)
|
||||||
userdom_manage_user_home_subdir_symlinks($1,smbd_t)
|
userdom_manage_user_home_symlinks($1,smbd_t)
|
||||||
userdom_manage_user_home_subdir_sockets($1,smbd_t)
|
userdom_manage_user_home_sockets($1,smbd_t)
|
||||||
userdom_manage_user_home_subdir_pipes($1,smbd_t)
|
userdom_manage_user_home_pipes($1,smbd_t)
|
||||||
userdom_filetrans_user_home($1,smbd_t,{ dir file lnk_file sock_file fifo_file })
|
userdom_filetrans_user_home($1,smbd_t,{ dir file lnk_file sock_file fifo_file })
|
||||||
')
|
')
|
||||||
')
|
')
|
||||||
|
@ -1537,7 +1537,7 @@ template(`userdom_dontaudit_exec_user_home_files',`
|
|||||||
## </summary>
|
## </summary>
|
||||||
## </param>
|
## </param>
|
||||||
#
|
#
|
||||||
template(`userdom_manage_user_home_subdir_files',`
|
template(`userdom_manage_user_home_files',`
|
||||||
gen_require(`
|
gen_require(`
|
||||||
type $1_home_dir_t, $1_home_t;
|
type $1_home_dir_t, $1_home_t;
|
||||||
')
|
')
|
||||||
@ -1575,7 +1575,7 @@ template(`userdom_manage_user_home_subdir_files',`
|
|||||||
## </summary>
|
## </summary>
|
||||||
## </param>
|
## </param>
|
||||||
#
|
#
|
||||||
template(`userdom_manage_user_home_subdir_symlinks',`
|
template(`userdom_manage_user_home_symlinks',`
|
||||||
gen_require(`
|
gen_require(`
|
||||||
type $1_home_dir_t, $1_home_t;
|
type $1_home_dir_t, $1_home_t;
|
||||||
')
|
')
|
||||||
@ -1613,7 +1613,7 @@ template(`userdom_manage_user_home_subdir_symlinks',`
|
|||||||
## </summary>
|
## </summary>
|
||||||
## </param>
|
## </param>
|
||||||
#
|
#
|
||||||
template(`userdom_manage_user_home_subdir_pipes',`
|
template(`userdom_manage_user_home_pipes',`
|
||||||
gen_require(`
|
gen_require(`
|
||||||
type $1_home_dir_t, $1_home_t;
|
type $1_home_dir_t, $1_home_t;
|
||||||
')
|
')
|
||||||
@ -1651,7 +1651,7 @@ template(`userdom_manage_user_home_subdir_pipes',`
|
|||||||
## </summary>
|
## </summary>
|
||||||
## </param>
|
## </param>
|
||||||
#
|
#
|
||||||
template(`userdom_manage_user_home_subdir_sockets',`
|
template(`userdom_manage_user_home_sockets',`
|
||||||
gen_require(`
|
gen_require(`
|
||||||
type $1_home_dir_t, $1_home_t;
|
type $1_home_dir_t, $1_home_t;
|
||||||
')
|
')
|
||||||
|
Loading…
Reference in New Issue
Block a user