All of lore.kernel.org
 help / color / mirror / Atom feed
* MCS and default labels
@ 2009-09-08  5:58 Michal Svoboda
  2009-09-08 15:35 ` Stephen Smalley
  0 siblings, 1 reply; 26+ messages in thread
From: Michal Svoboda @ 2009-09-08  5:58 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

Hello,

I have implemented a simple MCS based system for hosting SVN
repositories. I was happy with the performance until I found out that
the s0-s0:c1 processes will happily create new revisions (ie. new files)
as s0 inside a s0:c1 directory. According to various sources, new files
are always created using the lowest security level in the range of the
creating process, despite an inheritance mechanism already working for
types. What is the reasoning behind this?

I tried to mitigate this by forcing a ssh session into a certain MCS
range, as in ssh user/foo_r:foo_t:s0:c1, however this only works for
changing roles but not for MCS. Not even setting the MCS level in
default_contexts works as one would expect. Again, why?

Running out of ideas, my solution for now is to hope that a s0 process
cannot search / modify the s0:c1 directory, even with s0 files present
and to periodically "restorecon" the whole dir (no, restorecond does not
seem to be working on dirs recursively). So the third question is, are
there any better ways?

Regards,
Michal Svoboda

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2009-09-30 14:20 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08  5:58 MCS and default labels Michal Svoboda
2009-09-08 15:35 ` Stephen Smalley
2009-09-08 16:36   ` Michal Svoboda
2009-09-08 17:10     ` Stephen Smalley
2009-09-09 10:06       ` Michal Svoboda
2009-09-09 12:17         ` Stephen Smalley
2009-09-09 13:19           ` Michal Svoboda
2009-09-09 13:34             ` Stephen Smalley
2009-09-09 13:59               ` Michal Svoboda
2009-09-09 14:34                 ` Stephen Smalley
2009-09-14  8:19           ` Michal Svoboda
2009-09-14 12:20             ` Stephen Smalley
2009-09-14 13:00               ` Stephen Smalley
2009-09-15  6:32               ` Michal Svoboda
2009-09-15 11:16                 ` Stephen Smalley
2009-09-27  7:34           ` Russell Coker
2009-09-28 13:37             ` Stephen Smalley
2009-09-28 20:57               ` Russell Coker
2009-09-28 23:22               ` Kyle Moffett
2009-09-29 12:21                 ` Stephen Smalley
2009-09-29 13:54                   ` Kyle Moffett
2009-09-29 20:54                     ` Paul Moore
2009-09-30  3:51                       ` Kyle Moffett
2009-09-30 13:19                         ` Paul Moore
2009-09-30 13:49                           ` Kyle Moffett
2009-09-30 14:20                             ` Paul Moore

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.