Bug 573296

Summary: SELinux is preventing shutdown "dac_override" access .
Product: [Fedora] Fedora Reporter: Bruno Wolff III <bruno>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 13CC: dwalsh, jmoskovc, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5daa5b8de248821a0f24fdf73cf92891aca3e049bf485e55068a6320e2f37de8
Fixed In Version: selinux-policy-3.7.15-1.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-24 00:49:25 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 Bruno Wolff III 2010-03-13 23:04:56 UTC
Summary:

SELinux is preventing shutdown "dac_override" access .

Detailed Description:

SELinux denied access requested by shutdown. It is not expected that this access
is required by shutdown and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:unconfined_r:shutdown_t:s0-s0:c0.c102
                              3
Target Context                unconfined_u:unconfined_r:shutdown_t:s0-s0:c0.c102
                              3
Target Objects                None [ capability ]
Source                        shutdown
Source Path                   /sbin/shutdown
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.14-3.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33-8.fc13.i686.PAE #1 SMP
                              Fri Mar 5 13:17:04 UTC 2010 i686 i686
Alert Count                   2
First Seen                    Sat 13 Mar 2010 03:54:30 PM CST
Last Seen                     Sat 13 Mar 2010 04:26:09 PM CST
Local ID                      afb8b688-bd69-431d-9241-a8f62dda2183
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268519169.969:218117): avc:  denied  { dac_override } for  pid=22311 comm="shutdown" capability=1  scontext=unconfined_u:unconfined_r:shutdown_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:shutdown_t:s0-s0:c0.c1023 tclass=capability



Hash String generated from  catchall,shutdown,shutdown_t,shutdown_t,capability,dac_override
audit2allow suggests:

#============= shutdown_t ==============
allow shutdown_t self:capability dac_override;

Comment 1 Daniel Walsh 2010-03-15 02:45:22 UTC
Fixed in selinux-policy-3.7.14-4.fc13.noarch

Miroslav, add to F12.

Comment 2 Fedora Update System 2010-03-18 17:24:49 UTC
selinux-policy-3.7.15-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 3 Fedora Update System 2010-03-23 02:17:51 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 4 Fedora Update System 2010-03-24 00:48:55 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.