user guide drafts: "Working with SELinux" sections
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On
Quoted 10 lines
Behalf Of [email protected]
Sent: Tuesday, September 30, 2008 9:00 PM
To: Murray McAllister
Cc: SE Linux
Subject: Re: user guide drafts: "Working with SELinux" sectionsQuoted 2 lines · Murray McAllister
Quoted 1 line
Erm. What *exactly* produces that entry in
/var/log/messages?Are you referring to SELinux denying access or
setroubelshoot-server?
Quoted 3 lines
Quoted 1 line
Quoted 1 line
AVC stuff ends up in auditd. Or is this just because the
setroubleshoot
Quoted 1 line
Quoted 1 line
RPMs aren't *quite* as mandatory as you noted above, and I don't
see
Quoted 6 lines
those
Quoted 1 line
Quoted 1 line
messages because I don't have them installed *and enabled*? (Gotta
watch
Quoted 3 lines
Quoted 1 line
out for those pesky 'chkconfig off' ;)
I thought I tried this before writing (thinking it only went into audit.log if setroubleshoot-server was installed, otherwise it would
go
Quoted 3 lines
Quoted 1 line
to
/var/log/messages). I will fix the text up to reflect this...AVC's go into dmesg (and wherever your syslog dumps that) if auditd
isn't
Quoted 5 lines
running.
AVC's goes into audit.log if auditd *is* running.
If setroubleshoot is running, it reads audit.log and pretty-prints
them
Quoted 3 lines
into the syslog.
Quoted 1 line
This is coming next in a separate chapter. Why can't you do much
with
Quoted 4 lines
Quoted 1 line
MCS if everyone is
user_u? Doesn't it use the level, not theuser/role/type?
Whether you're using either the level or the classification, you need
to
Quoted 2 lines
be
able to run users at different levels/classes for it to do any real
good:
Quoted 9 lines
Consider:
User1 can read classes A, B, C. User2 can read classes B, D, E. User3 can read classes A, B, and E.
Wow. That works pretty nice.
Quoted 7 lines
Now consider if you only have 1 defined user for people to run as:
User_ucan read classes A, B, C.User_ucan read classes B, D, E.User_ucan read.. oh nevermind. ;)So you need to be able to say "userid fred runs as user1, userid joe
runs
Quoted 1 line
as user2, userid dept-paperwork runs as user3/levelA, userid
dept-admin
Quoted 4 lines
runs
as user3/levelB", and so on....The stock MCS policy provides enough user classes and levels to
protect
Quoted 2 lines
the
*system* from users - but you need to roll-your-own to protect user
data
Quoted 2 lines
to
a similar level.
Even with all users mapped to selinux user user_u, mcs should still be able to be used effectively. While it is true that in the case above, user_u would need to be given access to all the compartments (A - E), that does not mean that individual linux users (as opposed to the selinux user user_u) must have access to all the compartments. Individual linux users can be given access to only a subset of the compartments through the "semanange login ..." command. The compartments that individual linux users have access to can be seen using "semanage login -l", and can be set by either adding or modifying a user with "semanage login ...". For example:
semanage login -a -s user_u -r A joe
gives the linux user joe, access only to compartment A, even though his linux user maps to the selinux user user_u, which has access to compartments A-E
--
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.