Bug 572405 - SELinux is preventing /sbin/shutdown "setuid" access .
Summary: SELinux is preventing /sbin/shutdown "setuid" access .
Keywords:
Status: CLOSED DUPLICATE of bug 572406
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:8aebbde4472...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-11 04:20 UTC by adrian1h
Modified: 2010-06-11 17:49 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-11 14:07:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description adrian1h 2010-03-11 04:20:33 UTC
Summary:

SELinux is preventing /sbin/shutdown "setuid" access .

Detailed Description:

[shutdown has a permissive type (apcupsd_t). This access was not denied.]

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 [ capability ]
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                      20c59020-1698-41d0-9e87-d465d0f289a3
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1267735640.944:24604): avc:  denied  { setuid } for  pid=28897 comm="shutdown" capability=7 scontext=system_u:system_r:apcupsd_t:s0 tcontext=system_u:system_r:apcupsd_t:s0 tclass=capability

node=(removed) type=SYSCALL msg=audit(1267735640.944:24604): arch=40000003 syscall=213 success=yes exit=0 a0=0 a1=308ff4 a2=0 a3=8497730 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,capability,setuid
audit2allow suggests:

#============= apcupsd_t ==============
allow apcupsd_t self:capability setuid;

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

*** This bug has been marked as a duplicate of bug 572406 ***


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