Skip to contentSkip to conversation

general_file_read_access

PATCH New Stephen Smalley 1 participant 1 message Jul 15, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 general_file_read_access

The attached patch (also committed to the sourceforge CVS tree) fixes an error in the general_file_read_access macro that was introduced when the base_file_read_access macro was defined. By using 'domain' instead of '$1', the macro was applying base_file_read_access to every domain rather than the parameter domain. To apply, save the patch to ~/file_read.patch, cd selinux && patch -p0 < ~/file_read.patch. Then rebuild and reload your policy.

--
Stephen D. Smalley, NAI Labs
[email protected]

Index: policy/macros/global_macros.te
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux/policy/macros/global_macros.te,v retrieving revision 1.4

macros/global_macros.te +1 -1
diff -u -r1.4 global_macros.te
@@ -642,7 +642,7 @@
 # Get attributes of file systems.
 allow $1 fs_type:filesystem getattr;
 
-base_file_read_access(domain)
+base_file_read_access($1)
 
 # Read directories and files with the readable_t type.
 # This type is a general type for "world"-readable files.