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: policy issues in 2.3.18-10 - sshd & polyinstantiation
From: Klaus Weidner <klaus_at_atsec.com>
Date: Tue, 17 Oct 2006 17:12:11 -0500
The current LSPP ks script sets up policy and contexts to support polyinstantiation. I've attached the policy, here's the script fragment. Polyinstantiation parent dirs need to be polyparent_t, and /etc/security/namespace.init needs to be pam_exec_t or something similar. (Don't use chcon, define persistent file contexts instead to ensure that they don't get overwritten on the next autorelabel. And remember how nice it is that SELinux doesn't do path based security ;-) -Klaus ConfigurePolyinstantiation() { Title " Configure polyinstantiation" if ShallI "Update polyinstantiation (pam_namespace) configuration"; then local DIRS=$( awk '/^[^#]/ {print $2}' $_BASE/$_NAMESPACE_CONF ) Log "Creating base dirs: $DIRS" mkdir -m 0 $DIRS local D for D in $DIRS; do semanage fcontext -a -t polyparent_t $( echo "$D" | sed ' s/\/$//; s/\([.*?]\)/\\\1/; ') done restorecon $DIRS # FIXME: following should be fixed in upstream package? semanage fcontext -a -t pam_exec_t /etc/security/namespace.init restorecon /etc/security/namespace.init Replace /etc/security/$_NAMESPACE_CONF with $_BASE/$_NAMESPACE_CONF else Log "configuration update declined." _FAILURE=1 fi }
-- 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 17 Oct 2006 - 18:12:21 EDT |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |