Skip to contentSkip to conversation

Let the user list noxattr fs directories

PATCH New Guido Trentalancia 2 participants 2 messages Oct 29, 2016 – Oct 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Let the user list noxattr fs directories

When reading or managing noxattr fs files or symbolic links, also let the user list noxattr fs directories.

This patch should be applied after the following one:

http://oss.tresys.com/pipermail/refpolicy/2016-October/008539.html

"Let users read/manage symlinks on fs that do not support xattr"

posted on Sat, 29 Oct 2016 15:39:46 UTC.

---
 policy/modules/kernel/filesystem.if |    4 ++++
 1 file changed, 4 insertions(+)
policy/modules/kernel/filesystem.if +4 -0
diff -pru refpolicy-git-29102016-orig/policy/modules/kernel/filesystem.if refpolicy-git-29102016/policy/modules/kernel/filesystem.if
@@ -1179,6 +1179,7 @@ interface(`fs_read_noxattr_fs_files',`
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	read_files_pattern($1, noxattrfs, noxattrfs)
 ')
 
@@ -1234,6 +1235,7 @@ interface(`fs_manage_noxattr_fs_files',`
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	manage_files_pattern($1, noxattrfs, noxattrfs)
 ')
 
@@ -1252,6 +1254,7 @@ interface(`fs_read_noxattr_fs_symlinks',
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	read_lnk_files_pattern($1, noxattrfs, noxattrfs)
 ')
 
@@ -1270,6 +1273,7 @@ interface(`fs_manage_noxattr_fs_symlinks
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	manage_lnk_files_pattern($1, noxattrfs, noxattrfs)
 ')
 
#1 lore raw

PATCH 1/1 Let the user list noxattr fs directories

Quoted 44 lines · Guido Trentalancia via refpolicy

When reading or managing noxattr fs files or symbolic links, also let the user list noxattr fs directories.

This patch should be applied after the following one:

http://oss.tresys.com/pipermail/refpolicy/2016-October/008539.html

"Let users read/manage symlinks on fs that do not support xattr"

posted on Sat, 29 Oct 2016 15:39:46 UTC.

---
 policy/modules/kernel/filesystem.if |    4 ++++
 1 file changed, 4 insertions(+)

diff -pru refpolicy-git-29102016-orig/policy/modules/kernel/filesystem.if refpolicy-git-29102016/policy/modules/kernel/filesystem.if

policy/modules/kernel/filesystem.if +3 -0
@@ -1179,6 +1179,7 @@ interface(`fs_read_noxattr_fs_files',`
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	read_files_pattern($1, noxattrfs, noxattrfs)
 ')
 
@@ -1234,6 +1235,7 @@ interface(`fs_manage_noxattr_fs_files',`
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	manage_files_pattern($1, noxattrfs, noxattrfs)
 ')
 
@@ -1252,6 +1254,7 @@ interface(`fs_read_noxattr_fs_symlinks',
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	read_lnk_files_pattern($1, noxattrfs, noxattrfs)
 ')
 

policy/modules/kernel/filesystem.if interface(`fs_manage_noxattr_fs_symlinks · line 1278

Quoted 6 lines
policy/modules/kernel/filesystem.if +1 -0
@@ -1270,6 +1273,7 @@ interface(`fs_manage_noxattr_fs_symlinks
 		attribute noxattrfs;
 	')
 
+	fs_list_noxattr_fs($1)
 	manage_lnk_files_pattern($1, noxattrfs, noxattrfs)
 ')

Merged.

Signature · 1 line
Chris PeBenito