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 ListRe: The sort algorithm is broken by the second rule, We need a way to pin these rules to the top.
From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Fri, 31 Mar 2006 14:15:35 -0500
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.Received on Fri 31 Mar 2006 - 14:10:59 EST |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |