Bug 845487 - SELinux is preventing /usr/sbin/cupsd from 'block_suspend' accesses on the capability2 .
Summary: SELinux is preventing /usr/sbin/cupsd from 'block_suspend' accesses on the ca...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:278f64fe022a95c7d2a365bd748...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-03 08:31 UTC by D. Charles Pyle
Modified: 2012-08-03 09:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-03 09:21:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description D. Charles Pyle 2012-08-03 08:31:45 UTC
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 09:21:57 UTC
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.