Research
Skip Research Menus
Research MenuSecurity 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 ListPlease remove my e-mail address from your contact lists
From: Morrison, Daniel C <MorrisonDC_at_state.gov>
Date: Wed, 12 Apr 2006 10:56:48 +0100
Thanks, Dan
-----Original Message-----
On Fri, 2006-03-31 at 14:03 -0500, Ivan Gyurdiev wrote:
Yes, Joshua had sent a patch to add the sorting logic to matchpathcon back in Oct '05, but I rejected it at the time because it needed to be coordinated with a policy update to ensure no actual change in filesystem labeling and because it sorted all of the file_contexts.* files together rather than retaining a prioritization among them. And as we later agreed, it belongs in libsemanage at generation time rather than in libselinux. Current libselinux matchpathcon logic only moves exact specifications (no regex in the pathname) to the end so that they are never overridden by a pathname regex; otherwise, it just uses the provided ordering within each file and it uses a fixed ordering among the files (file_contexts.local takes precedence over file_contexts.homedirs which takes precedence over file_contexts). What is a little confusing right now is that there are potentially two "file_contexts.local" files; the one managed via semanage that only exists in the store and is merged to the end of the generated file_contexts file for installation and the one that can be manually created by the admin that is "merged" to the end of the in-memory table by matchpathcon. I suppose we should consider the latter to be deprecated but libselinux will continue to look for it for legacy support. -- Stephen Smalley National Security Agency -- 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. -- 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 Wed 12 Apr 2006 - 06:01:01 EDT |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |