Policy transport, management, application installation, etc
Well, the time has come.. We now have the ability to label files during installation
and so we have no choice but to confront my worst fear and problem since day 1
Policy transport:
How to get the policy to the users machine when they install app X
Policy management:
How should the package manager deal with policies.
To properly label a package the policy of the package would have to
be
merged in to the users policy, recompiled and reloaded so that the contexts needed are available.
This seems bad, playing with the users policy can't be a good thing,
but installing files with incorrect labels can't either.
Without doing this the user would be installing apps that either
don't
have the proper labels to enforce proper use, or apps that just plain don't work
I've really dreaded this moment from the very beginning of this project
but if we are to make this usable by anyone except us :P this needs to happen, and if we are to be taken seriously it has to happen the right way. I'd REALLY like comments, suggestions, flames, advice, details on existing implementations, etc.
PLEASE HELP! :)
--
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.
Quoted 2 lines · Joshua Brindle
Policy management:
How should the package manager deal with policies.
Not at all.
The policy is definitely NOT part of the user-space program, and it has no business messing with it. The policy is set by the system (or security) administrator, and may well be very different on different systems for the same program.
Also, remember that SE tries to be transparent to most software.
Quoted 7 lines
This seems bad, playing with the users policy can't be a good thing, but installing files with incorrect labels can't either.
Without doing this the user would be installing apps that either
don't
have the proper labels to enforce proper use, or apps that just plain don't work
I am convinced that there is no solution but a secondary infrastructure for policy management. On all accounts, this does make sense. Think seperation of function and control.
Setting up the policy is the responsibility of - well, whoever is responsible for the security of the system in question. I would go so far to say that the package manager should be considered an untrusted piece of software. On a regular Unix, the package management tool can essentially own you. On SE, we can prevent this, maintaining system integrity provided we are willing to leave the core tools untouchable by the package manager (or only touchable if run from a specific role).
(Yes, I still have that dream of a "core system" that is small and can be shown to be secure, and an outer layer that doesn't necessarily have to be trustworthy. A "ring 0" equivalent, if you want.)
Anyway, we can help the starting-out admins by providing examples and default policies, though we definitely have to set up a better management process for that, see my earlier mail.
Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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.
If you haven't already seen it there was considerable discussion about managing SELinux within an RPM framework about a year ago. Unfortunately, I think more was said than done.
http://www.nsa.gov/selinux/list-archive/1645.html This thread has a lot of thinking about how to construct RPMS for SELinux, although you'll have to hunt through the messages for it. (Of course, I'm partial to my opinions expressed there.)
http://www.nsa.gov/selinux/list-archive/1501.html This thread also has some concepts I think are important about trying to manage different distribution provided policies in concert with local policies.
Quoted 41 lines · Tom
Quoted 2 lines · Joshua Brindle
Policy management:
How should the package manager deal with policies.Not at all.
The policy is definitely NOT part of the user-space program, and it has no business messing with it. The policy is set by the system (or security) administrator, and may well be very different on different systems for the same program.
Also, remember that SE tries to be transparent to most software.
Quoted 7 lines
This seems bad, playing with the users policy can't be a good thing, but installing files with incorrect labels can't either.
Without doing this the user would be installing apps that either
don't
have the proper labels to enforce proper use, or apps that just plain don't workI am convinced that there is no solution but a secondary infrastructure for policy management. On all accounts, this does make sense. Think seperation of function and control.
Setting up the policy is the responsibility of - well, whoever is responsible for the security of the system in question. I would go so far to say that the package manager should be considered an untrusted piece of software. On a regular Unix, the package management tool can essentially own you. On SE, we can prevent this, maintaining system integrity provided we are willing to leave the core tools untouchable by the package manager (or only touchable if run from a specific role).
(Yes, I still have that dream of a "core system" that is small and can be shown to be secure, and an outer layer that doesn't necessarily have to be trustworthy. A "ring 0" equivalent, if you want.)
Anyway, we can help the starting-out admins by providing examples and default policies, though we definitely have to set up a better management process for that, see my earlier mail.
Signature · 9 lines
Howard Holm <[email protected]> Secure Systems Research Office 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.