commit:     d46e984bba90f703233e36a3c77926f0e4711859
Author:     Luis Ressel via refpolicy <refpolicy <AT> oss <DOT> tresys <DOT> 
com>
AuthorDate: Tue Oct 24 23:46:43 2017 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 12:59:50 2017 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d46e984b

kernel/files.if: files_list_kernel_modules should grant read perms for symlinks

files_search_kernel_modules also grant this; there's a couple of
symlinks in /lib/modules/.

 policy/modules/kernel/files.if | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if
index a9557079..05ca46a7 100644
--- a/policy/modules/kernel/files.if
+++ b/policy/modules/kernel/files.if
@@ -3966,6 +3966,7 @@ interface(`files_list_kernel_modules',`
        ')
 
        allow $1 modules_object_t:dir list_dir_perms;
+       read_lnk_files_pattern($1, modules_object_t, modules_object_t)
 ')
 
 ########################################

Reply via email to