Bug 499005 - need policy for shutdown/reboot/runlevel talking to audit
Summary: need policy for shutdown/reboot/runlevel talking to audit
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-04 19:03 UTC by Bill Nottingham
Modified: 2014-03-17 03:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-04 19:07:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.