Bug 499005 - need policy for shutdown/reboot/runlevel talking to audit
need policy for shutdown/reboot/runlevel talking to audit
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-04 15:03 EDT by Bill Nottingham
Modified: 2014-03-16 23:18 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-04 15:07:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bill Nottingham 2009-05-04 15:03:37 EDT
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 15:07:39 EDT
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.