Bug 572406 - SELinux is preventing /sbin/shutdown "create" access .
Summary: SELinux is preventing /sbin/shutdown "create" access .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d2c082f55fb...
: 572405 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-11 04:21 UTC by adrian1h
Modified: 2010-05-27 02:19 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.6.32-103.fc12
Clone Of:
Environment:
Last Closed: 2010-03-20 03:32:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description adrian1h 2010-03-11 04:21:06 UTC
Summary:

SELinux is preventing /sbin/shutdown "create" 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                system_u:system_r:apcupsd_t:s0
Target Context                system_u:system_r:apcupsd_t:s0
Target Objects                None [ netlink_audit_socket ]
Source                        shutdown
Source Path                   /sbin/shutdown
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           upstart-0.3.11-3.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-89.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.22.fc12.i686.PAE #1 SMP Fri Feb 19
                              19:10:04 UTC 2010 i686 athlon
Alert Count                   1
First Seen                    Thu 04 Mar 2010 03:47:20 PM EST
Last Seen                     Thu 04 Mar 2010 03:47:20 PM EST
Local ID                      b5039a06-e1d6-46e4-80d8-ee9346f1e4db
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1267735640.964:24605): avc:  denied  { create } for  pid=28897 comm="shutdown" scontext=system_u:system_r:apcupsd_t:s0 tcontext=system_u:system_r:apcupsd_t:s0 tclass=netlink_audit_socket

node=(removed) type=SYSCALL msg=audit(1267735640.964:24605): arch=40000003 syscall=102 success=no exit=-13 a0=1 a1=bf99bf40 a2=680ff4 a3=3 items=0 ppid=28893 pid=28897 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="shutdown" exe="/sbin/shutdown" subj=system_u:system_r:apcupsd_t:s0 key=(null)



Hash String generated from  catchall,shutdown,apcupsd_t,apcupsd_t,netlink_audit_socket,create
audit2allow suggests:

#============= apcupsd_t ==============
allow apcupsd_t self:netlink_audit_socket create;

Comment 1 Daniel Walsh 2010-03-11 14:07:08 UTC
Miroslav

Add

optional_policy(`
	shutdown_domtrans(apcupsd_t)
')

Comment 2 Daniel Walsh 2010-03-11 14:07:35 UTC
*** Bug 572405 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2010-03-11 15:31:15 UTC
Dan, 
we need also

optional_policy(`
 shutdown_domtrans(hald_t)
')    

optional_policy(`
 shutdown_domtrans(nut_upsmon_t)
')

Comment 4 Miroslav Grepl 2010-03-15 11:10:30 UTC
Fixed in selinux-policy-3.6.32-102.fc12

Comment 5 Fedora Update System 2010-03-15 22:18:12 UTC
selinux-policy-3.6.32-103.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-103.fc12

Comment 6 Fedora Update System 2010-03-16 23:24:25 UTC
selinux-policy-3.6.32-103.fc12 has been pushed to the Fedora 12 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.6.32-103.fc12

Comment 7 Fedora Update System 2010-03-20 03:30:23 UTC
selinux-policy-3.6.32-103.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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