Skip to contentSkip to conversation

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

PATCH New Luis Ressel 2 participants 2 messages Oct 24, 2017 – Oct 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(+)
policy/modules/kernel/files.if +1 -0
index b3abd2961..7d3fb27e2 100644
@@ -3964,6 +3964,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)
 ')
 
 ########################################
Signature · 1 line
2.14.3
#1 lore raw

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

Quoted 11 lines · Luis Ressel via refpolicy

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(+)
policy/modules/kernel/files.if +0 -0
index b3abd2961..7d3fb27e2 100644

policy/modules/kernel/files.if interface(`files_list_kernel_modules',` · line 3970

Quoted 7 lines
policy/modules/kernel/files.if +1 -0
@@ -3964,6 +3964,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)
  ')
 
  ########################################

Merged.

Signature · 1 line
Chris PeBenito