All of lore.kernel.org
 help / color / mirror / Atom feed
* MCS and unconfined_t
@ 2006-03-28 13:01 KaiGai Kohei
  2006-03-28 21:27 ` Stephen Smalley
  0 siblings, 1 reply; 12+ messages in thread
From: KaiGai Kohei @ 2006-03-28 13:01 UTC (permalink / raw)
  To: selinux

Hello,

Today, I'm considering an configuration for Fedora core 5 using MCS.

Some users are associated with restricted category 'c0,c1' at most.
If user field in security context would not change, they cannot
transit to wider range of categories.

But they can login with unconfined_t domain in default.
Because unconfined_t domain has 'execcon' permission, they can
transit to discretional range of categories by re-writing the
user field in security context.

Is it possible to control the unconfined_t processes by MCS ?
It seems a bit difficult.
Please notice me, if I have misunderstanding or misconfiguration.

Thanks,

---- current configuration ----
'ymj' logins with 'officer:system_r:unconfined_t:President'.
He can transit to 'user_t:system_t:unconfined_t:God' via an evil
program calls setexeccon().
It makes all MCS configuration nonsense.

[root@ayu ~]# semanage translation -l

Level                     Translation

s0
s0-s0:c0                  Executive
s0-s0:c0,c1               President
s0-s0:c0.c255             God
s0:c0                     Secret
s0:c0,c1                  TopSecret
[root@ayu ~]# semanage user -l

                MLS/       MLS/
SELinux User    MCS Level  MCS Range        SELinux Roles

officer         s0         President        system_r
root            s0         God              sysadm_r user_r system_r
system_u        s0         God              system_r
user_u          s0         God              sysadm_r user_r system_r
[root@ayu ~]# semanage login -l

Login Name                SELinux User              MLS/MCS Range

__default__               user_u                    s0
root                      root                      God
tak                       officer                   Executive
ymj                       officer                   President
[root@ayu ~]#

-- 
KaiGai Kohei <kaigai@kaigai.gr.jp>

--
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:[~2006-04-02 13:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-28 13:01 MCS and unconfined_t KaiGai Kohei
2006-03-28 21:27 ` Stephen Smalley
2006-03-29  0:36   ` Russell Coker
2006-03-29 12:35     ` Stephen Smalley
2006-03-29 16:29   ` Christopher J. PeBenito
2006-03-29 16:45     ` Stephen Smalley
2006-03-29 17:59       ` Christopher J. PeBenito
2006-03-30  3:57         ` KaiGai Kohei
2006-03-30 12:09           ` Russell Coker
2006-03-30 12:31           ` Stephen Smalley
2006-04-02 13:55             ` KaiGai Kohei
2006-03-31 14:55     ` Russell Coker

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.