fix: sudo can't determine default type for sysadm_r

This commit is contained in:
bauen1 2019-08-28 10:46:22 +02:00
parent 17f06cf1fe
commit d4cc5cf3d2
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
2 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,7 @@ template(`sudo_role_template',`
miscfiles_read_localization($1_sudo_t)
seutil_search_default_contexts($1_sudo_t)
seutil_read_default_contexts($1_sudo_t)
seutil_libselinux_linked($1_sudo_t)
userdom_spec_domtrans_all_users($1_sudo_t)

View File

@ -735,8 +735,7 @@ interface(`seutil_read_default_contexts',`
')
files_search_etc($1)
allow $1 selinux_config_t:dir search_dir_perms;
allow $1 default_context_t:dir list_dir_perms;
list_dirs_pattern($1, selinux_config_t, default_context_t)
read_files_pattern($1, default_context_t, default_context_t)
')