Bug 499005

Summary: need policy for shutdown/reboot/runlevel talking to audit
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, jkubin, mgrepl, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-04 19:07:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Nottingham 2009-05-04 19:03:37 UTC
Description of problem:

A patch was added to the shutdown/reboot/runlevel tools to talk to the audit daemon in F-11, to create audit events for reboot and runlevel changes.

Ergo, any confined domain that executes these commands needs policy like:

require {
        type consolekit_t;
        class capability audit_write;
        class netlink_audit_socket { write nlmsg_relay create read };
}

#============= consolekit_t ==============
allow consolekit_t self:capability audit_write;
allow consolekit_t self:netlink_audit_socket { write nlmsg_relay create read };

I suspect there's other apps that can call shutdwon besides consolekit_t ; as it states in the sample policy, creating a shutdown domain may be useful in the future.

Version-Release number of selected component (if applicable):

selinux-policy-3.6.12-23.fc11.noarch

Comment 1 Daniel Walsh 2009-05-04 19:07:39 UTC
Fixed in selinux-policy-3.6.12-25.fc11.noarch