Skip to contentSkip to conversation

policy-1

PATCH Russell Coker 1 participant 1 message Oct 29, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Bastian Blank

hi folks

this patch fixes the following problems:
- fix type for shlibs in /usr/local/lib
files: file_contexts/types.fc

How about the attached patch?

I've been changing all the file contexts files to include the type of the file as much as possible.

I have changed the ldconfig.te file to have sym-links generated with type lib_t. So the attached patch will make /usr/local/lib act the way that /usr/lib and /lib will.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
types.fc +1 -1
Index: file_contexts/types.fc
===================================================================
@@ -322,7 +322,7 @@
 # /usr/local/lib
 #
 /usr/local/lib(/.*)?		system_u:object_r:lib_t
-/usr/local/lib/.*\.so		system_u:object_r:shlib_t
+/usr/local/lib/.*\.so.* --	system_u:object_r:shlib_t
 
 #
 # /usr/sbin