diff --git a/policy/modules/services/networkmanager.te b/policy/modules/services/networkmanager.te index 6568e314c..27ca9adad 100644 --- a/policy/modules/services/networkmanager.te +++ b/policy/modules/services/networkmanager.te @@ -145,6 +145,7 @@ files_manage_etc_symlinks(NetworkManager_t) files_read_etc_runtime_files(NetworkManager_t) files_read_usr_files(NetworkManager_t) files_read_usr_src_files(NetworkManager_t) +files_watch_etc_dirs(NetworkManager_t) fs_getattr_all_fs(NetworkManager_t) fs_search_auto_mountpoints(NetworkManager_t) @@ -166,6 +167,8 @@ auth_use_nsswitch(NetworkManager_t) logging_send_audit_msgs(NetworkManager_t) logging_send_syslog_msg(NetworkManager_t) +libs_watch_lib_dirs(NetworkManager_t) + miscfiles_read_generic_certs(NetworkManager_t) miscfiles_read_localization(NetworkManager_t) diff --git a/policy/modules/system/libraries.if b/policy/modules/system/libraries.if index ab150d68b..c603551ef 100644 --- a/policy/modules/system/libraries.if +++ b/policy/modules/system/libraries.if @@ -276,6 +276,24 @@ interface(`libs_manage_lib_dirs',` allow $1 lib_t:dir manage_dir_perms; ') +######################################## +## +## Watch /usr/lib directories +## +## +## +## Domain allowed access. +## +## +# +interface(`libs_watch_lib_dirs',` + gen_require(` + type lib_t; + ') + + allow $1 lib_t:dir watch; +') + ######################################## ## ## dontaudit attempts to setattr on library files