Bug 702588 - SELinux is preventing /usr/lib/cups/backend/mfp from read, write access on the shared memory Unknown.
Summary: SELinux is preventing /usr/lib/cups/backend/mfp from read, write access on th...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ca92246a5db...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-06 08:20 UTC by mariolinux
Modified: 2011-11-21 16:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-21 16:43:01 UTC
Type: ---


Attachments (Terms of Use)

Description mariolinux 2011-05-06 08:20:26 UTC
SELinux is preventing /usr/lib/cups/backend/mfp from read, write access on the shared memory Unknown.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that mfp should be allowed read write access on the Unknown shm 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 mfp /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                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                Unknown [ shm ]
Source                        mfp
Source Path                   /usr/lib/cups/backend/mfp
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-21.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.5-22.fc15.x86_64
                              #1 SMP Mon May 2 19:28:55 UTC 2011 x86_64 x86_64
Alert Count                   5
First Seen                    ven 06 mag 2011 10:14:06 CEST
Last Seen                     ven 06 mag 2011 10:18:59 CEST
Local ID                      bcda3af0-0077-4295-a4ac-8c0136ea5d8c

Raw Audit Messages
type=AVC msg=audit(1304669939.474:235): avc:  denied  { read write } for  pid=2892 comm="mfp" key=-324508640  scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=shm


type=SYSCALL msg=audit(1304669939.474:235): arch=x86_64 syscall=shmat success=no exit=EACCES a0=28005 a1=0 a2=0 a3=7fffe48a8290 items=0 ppid=1156 pid=2892 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=mfp exe=/usr/lib/cups/backend/mfp subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: mfp,cupsd_t,unconfined_t,shm,read,write

audit2allow

#============= cupsd_t ==============
allow cupsd_t unconfined_t:shm { read write };

audit2allow -R

#============= cupsd_t ==============
allow cupsd_t unconfined_t:shm { read write };

Comment 1 Miroslav Grepl 2011-05-06 12:48:56 UTC
What were you doing when this happened?


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