[Fwd: Re: Policy]
Whoops, meant to hit "Reply All". =)
-----Forwarded Message-----
From: Gregory Ade <[email protected]>
To: Howard Holm <[email protected]>
Subject: Re: Policy
Date: 03 Apr 2002 16:50:02 -0800
Quoted 4 lines · Howard Holm
The most compelling argument for me, though is that I believe the SELinux utilities are being installed to "replace or upgrade software in /usr" as described in section 4.9.1. We have often said that we would like the changes in the utilities to be transparent on a non-SELinux system and
Quoted 8 lines
carried by the upstream packages. From that perspective, the utilties are direct replacements and I would argue that binary packages should replace the equivalent non-SELinux packages on an SELinux system. (I suspect several people will strongly disagree with me on that point.) For people building it from source, I think they must have the option to install in
/usr/local/{bin,sbin,include,lib,share}because I think that makes it far more clearly "locally maintained" software. That may be an inconsistent view of the world, but that's the way I see it.
Been lurking for a while, but:
I'd agree with this. if the goal is to become a seamless part of the underlying distribution, then stay out of /usr/local or /opt; just go ahead and replace the existing binaries (optionally, for the more advanced packagers, you could make backup copies of all the originals, like 'ls.preselinux' or whatever). To be really slick, the SELinux packages would act as upgrades or replacements for whichever packages' binaries are being replaced, so that the package manager can keep track of everything sanely.
When building from source, I'd most likely put it /usr/local/selinux, just to keep it simple. In my eyes, /usr/local (and, to an extent, /opt) is the sole domain of the sysadmin to manage at his discretion, and package managers should keep their grubby fingers out of there. =)
Quoted 6 lines
Quoted 1 line
Standard proceedure for Unix software distribution in my experience...
The policy has its own unique complications. I think it would be great to allow packages to modify the default polic(ies) when they are installed so that the default polic(ies) include(s) the statements from all installed packages.
[snip]
Quoted 1 line
I think this needs some more discussion.
Or, how's this for an idea (note that i'm very unfamiliar with the current way policies are managed, so this could well be construed as me talking out my behind):
Policy is defined, instead of in a single file, by a combination of a "top" configuration file and a "bottom" directory containing parts. i.e.:
/etc/selinux/policy - local sysadmin-defined policy rules
/etc/selinux/policy.d/* - policy fragments installed by the various
SELinux components
Then, the programs that actually check and apply the policies would first compile them from the /etc/selinux/policy.d/* files, and then apply the policies from /etc/selinux/policy, where conflicts result in /etc/selinux/policy overriding anything else?
I'm going to go do some more reading and tinkering and see how far off-base what I just said is... =)
Signature · 3 lines
Gregory K. Ade <[email protected]> http://bigbrother.net/~gkade OpenPGP Key ID: EAF4844B keyserver: pgpkeys.mit.edu
Quoted 9 lines · Gregory Ade
I'd agree with this. if the goal is to become a seamless part of the underlying distribution, then stay out of
/usr/localor /opt; just go ahead and replace the existing binaries (optionally, for the more advanced packagers, you could make backup copies of all the originals, like 'ls.preselinux' or whatever). To be really slick, the SELinux packages would act as upgrades or replacements for whichever packages' binaries are being replaced, so that the package manager can keep track of everything sanely.
Quoted 4 lines
When building from source, I'd most likely put it
/usr/local/selinux, just to keep it simple. In my eyes,/usr/local(and, to an extent, /opt) is the sole domain of the sysadmin to manage at his discretion, and package managers should keep their grubby fingers out of there. =)
Seems like we're getting agreement on that.
Quoted 4 lines
Or, how's this for an idea (note that i'm very unfamiliar with the current way policies are managed, so this could well be construed as me talking out my behind):
Quoted 8 lines
Policy is defined, instead of in a single file, by a combination of a "top" configuration file and a "bottom" directory containing parts. i.e.:
/etc/selinux/policy- local sysadmin-defined policy rules
/etc/selinux/policy.d/*- policy fragments installed by the various
SELinux components
We currently have /etc/selinux/domains/programs for policy fragments for particular programs.
Quoted 4 lines
Then, the programs that actually check and apply the policies would first compile them from the
/etc/selinux/policy.d/*files, and then apply the policies from/etc/selinux/policy, where conflicts result in/etc/selinux/policyoverriding anything else?
Conflicts should result in an error message and the administrator having to fix it!
For ordering, we could prepend a 2 digit number like we do for init scripts.
Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines of legalistic junk at the end then you are specifically authorizing me to do whatever I wish with the message and all other messages from your domain, by posting the message you agree that your long legalistic sig is void. -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.