Skip to contentSkip to conversation

load_policy with latest strict policy

PATCH Russell Coker 2 participants 2 messages Apr 14, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch is needed to allow load_policy to detect SE Linux. Without this access it claims to be running on a non-SE system and refuses to do anything.

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
core_macros.te renamed from core_macros.te.old +1 -0
@@ -361,6 +361,7 @@
 # Get the selinuxfs mount point via /proc/self/mounts.
 allow $1 proc_t:dir search;
 allow $1 proc_t:lnk_file read;
+allow $1 proc_t:file { getattr read };
 allow $1 self:dir search;
 allow $1 self:file { getattr read };
 # Access selinuxfs.
#1 lore raw
Quoted 3 lines · Russell Coker

The attached patch is needed to allow load_policy to detect SE Linux. Without this access it claims to be running on a non-SE system and refuses to do anything.

The patch to load_policy has been reverted, as it was a bad idea in the first place (it prevents using load_policy to perform an initial policy load in the case where this has not occurred already, e.g. from anaconda during install).

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.