All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] stricter MLS policy constraints
@ 2006-12-12  7:28 Klaus Weidner
  2006-12-12  7:34 ` [PATCH RFC 1/2] " Klaus Weidner
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Klaus Weidner @ 2006-12-12  7:28 UTC (permalink / raw)
  To: selinux

Hello,

this is a followup to a previous discussion about the MLS constraints
in the reference policy:

	http://marc.theaimsgroup.com/?l=selinux&m=116327030930738&w=2

Darrel Goeddel's explained that these MLS constraints are based on
"ranged objects" for container objects such as directories, and for
sockets, allowing writes if the subject low level is within the object's
low-high range:

	http://marc.theaimsgroup.com/?l=selinux&m=116414826605626&w=2

These ranged objects unfortunately violate the Bell-LaPadula rules, and
can lead to information leaks. For example, a low subject may be able to
see names created in a ranged directory by a higher subject. Such ranged
directories should not be needed thanks to polyinstantiation.

The following patches attempt to get the system closer to the
Bell-LaPadula model expressed in the LSPP by permitting only "write
equal" for unprivileged subjects. The old behavior is still available by
giving attributes to the subjects that need it. (LSPP accepts privileged
programs that can override the information flow rules, so these
attributes can be given fairly liberally, but the default user types must
not have them.)

Patch 1: Rename the "mlsfilewriteinrange" attribute with no functional
changes. The reason for the renaming is that this is an object attribute
(like "mlstrustedobject"), and it's confusing to use the naming scheme
usually used for subject attributes for it. It's currently only used for
the printer device object.

Patch 2: For untrusted subjects, permit write operations on ranged
objects only when the subject effective level equals the object low
level. Introduce new subject attributes "mlsfilewriteranged" and
"mlsnetwriteranged" that give these privileged subjects the right to use
the old ranged-write behavior.

I haven't prepared a patch yet to provide interfaces for setting the new
attributes - that's easy to do once we've identified subjects that need
these privileges.

The patches are very lightly tested (the policy builds, and permits
unlabeled ssh login in enforcing mode) -- can the people doing labeled
networking tests please test it?

-Klaus

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-01-09  4:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12  7:28 [PATCH RFC 0/2] stricter MLS policy constraints Klaus Weidner
2006-12-12  7:34 ` [PATCH RFC 1/2] " Klaus Weidner
2007-01-08 15:47   ` Christopher J. PeBenito
2007-01-09  4:43     ` Klaus Weidner
2006-12-12  7:38 ` [PATCH RFC 0/2] " Klaus Weidner
2006-12-12  7:40 ` [PATCH RFC 2/2] " Klaus Weidner
2006-12-12 15:26 ` [PATCH RFC 3/2] " Klaus Weidner
2006-12-13 20:50 ` [PATCH RFC 0/2] " Paul Moore
2006-12-13 21:40   ` Klaus Weidner
2006-12-13 21:50     ` Paul Moore
2006-12-14 15:48       ` Joy Latten
2007-01-08 16:02       ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.