Bug 845487 - SELinux is preventing /usr/sbin/cupsd from 'block_suspend' accesses on the capability2 .
SELinux is preventing /usr/sbin/cupsd from 'block_suspend' accesses on the ca...
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:278f64fe022a95c7d2a365bd748...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-03 04:31 EDT by D. Charles Pyle
Modified: 2012-08-03 05:21 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-08-03 05:21:57 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 D. Charles Pyle 2012-08-03 04:31:45 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.6.0-0.rc0.git8.1.fc18.x86_64
time:           Fri 03 Aug 2012 04:29:34 AM EDT

description:
:SELinux is preventing /usr/sbin/cupsd from 'block_suspend' accesses on the capability2 .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that cupsd should be allowed block_suspend access on the  capability2 by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep cupsd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
:Target Objects                 [ capability2 ]
:Source                        cupsd
:Source Path                   /usr/sbin/cupsd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           cups-1.5.4-1.fc18.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-0.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.0-0.rc0.git8.1.fc18.x86_64 #1
:                              SMP Wed Aug 1 13:05:57 UTC 2012 x86_64 x86_64
:Alert Count                   4
:First Seen                    2012-08-03 04:12:49 EDT
:Last Seen                     2012-08-03 04:19:15 EDT
:Local ID                      bdbf5a10-ed52-4cdc-9ae1-6fd9e12fdb70
:
:Raw Audit Messages
:type=AVC msg=audit(1343981955.503:343): avc:  denied  { block_suspend } for  pid=2591 comm="cupsd" capability=36  scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tclass=capability2
:
:
:type=SYSCALL msg=audit(1343981955.503:343): arch=x86_64 syscall=epoll_ctl success=yes exit=0 a0=5 a1=2 a2=f a3=7fff775255a0 items=0 ppid=1 pid=2591 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=cupsd exe=/usr/sbin/cupsd subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: cupsd,cupsd_t,cupsd_t,capability2,block_suspend
:
:audit2allow
:
:#============= cupsd_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow cupsd_t self:capability2 block_suspend;
:
:audit2allow -R
:
:#============= cupsd_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow cupsd_t self:capability2 block_suspend;
:
Comment 1 Miroslav Grepl 2012-08-03 05:21:57 EDT
cups.te:allow cupsd_t self:capability2 { block_suspend };

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