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 ListRe: Proposed change to install
From: Stephen Smalley <sds_at_epoch.ncsc.mil>
Date: Tue, 28 Dec 2004 13:43:07 -0500
EACCES would be the common case, for processes that cannot read file_contexts. ENOENT is another possible frequent case, for files that match no entry or match <<none>> (if we change matchpathcon to return -1 with errno ENOENT for that case). The only other error (and the only one worth reporting) might be ENOMEM for memory allocation failures.
> Sounds good, that way we don't need to check. Or check for ENOENT and ignore the error in that case. That is likely what we will want for restorecon once matchpathcon handles <<none>> internally.
> +static int setdefaultfilecon(const char *path) { Might as well make this void and not return any error code as the caller doesn't use it anyway. -- Stephen Smalley <sds@epoch.ncsc.mil> 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 Tue 28 Dec 2004 - 13:48:48 EST |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |