|
Security Enhanced Linux
What's New
Frequently Asked Questions
Background
Documents
License
Download
Participating
Mail List
Archives
Remaining Work
Contributors
Related Work
Press Releases
Information Assurance Research
NIARL In-house Research Areas
Mathematical Sciences Program
Sabbaticals
Computer & Information Sciences Research
Technology Transfer
Advanced Computing
Advanced Mathematics
Communications & Networking
Information Processing
Microelectronics
Other Technologies
Technology Fact Sheets
Publications
Related Links
|
SELinux Mailing List
Re: [PATCH 1/2] VM/SELinux: require CAP_SYS_RAWIO for all mmap_zero operations
From: Eric Paris <eparis_at_redhat.com>
Date: Tue, 21 Jul 2009 11:57:13 -0400
Sadly, it couldn't reasonably :(
> > > Am I missing something here, this "solution" sounds completely brain Yet another tunable is easy, and what I mentioned yesterday, i'd probably put it in /selinux since it would be an selinux only thing. This just seemed reasonable, since the Kconfig default is 4096 that's what most people have anyway right?
> So this looks to me like a regression in features, that makes the system Herein lies the problem. It sounds easy to do, but isn't. Sure I can remove mmap_zero from unconfined_t (and actually it should be that way in rawhide by default by now) but like I said, it's not even a speed bump to be that broad.
runcon -t wine_t [my exploit]
So now I have to stop allowing unconfined_t to specifically run things as wine_t. Easy enough to get around
chcon -t wine_exec_t [my exploit]
Well crap, now I have to stop letting unconfined_t label things wine_exec_t. Easy enough to get around if you can load it as an rpm (ok, this step is probably harder) and hell, how do I know I can't just get wine some windows program to get win to map the page for me? Finding all of the contortions that an unconfined user can do is nearly impossible. It's one of the reasons a lot of selinux people argued against the unconfined domain to begin with. There are some analysis tools used in high security environments to prove security goals but unconfined is such a monstrosity it's too hard to get a handle on. Make everyone log in as user_t (man semanage) and you will be better (but I haven't proven it is safe...)
> Currently I have low page protection and I don't have to run wine as and you still could. Just set mmap_min_addr = 0 and you get SELinux protection for confined domains. I'll gladly add an selinux tunable if people like it so SELinux users who don't want to enforce the uid=0 rule can do exactly everything they can do today. Someone on this list has to know a wine guru. Seems to me there has to be a way that we can give wine CAP_SYS_RAWIO just long enough to map the page so non-SELinux users aren't left in the lurch they are today. -- 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.Received on Tue 21 Jul 2009 - 11:59:33 EDT |
|
|
Date Posted: Nov 14, 2008 | Last Modified: Mar 19, 2010 | Last Reviewed: Mar 19, 2010 |











