Bug 596744

Summary: SELinux is preventing gcm-apply "write" access on /var/run/cups/cups.sock.
Product: [Fedora] Fedora Reporter: Anderson Freitas <acf1210>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, jbwillia, kingissingh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:cc5b35163bb0a7af9beda5e699f68bc6edf0187d96d845bdbb1d25e1fd520a3f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-27 14:03:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anderson Freitas 2010-05-27 12:32:19 UTC
Summary:

SELinux is preventing gcm-apply "write" access on /var/run/cups/cups.sock.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by gcm-apply. It is not expected that this
access is required by gcm-apply 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:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:cupsd_var_run_t:s0
Target Objects                /var/run/cups/cups.sock [ sock_file ]
Source                        gcm-apply
Source Path                   /usr/bin/gcm-apply
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-15.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.4-95.fc13.i686.PAE #1
                              SMP Thu May 13 05:38:26 UTC 2010 i686 i686
Alert Count                   11
First Seen                    Wed 26 May 2010 10:57:32 PM BRT
Last Seen                     Thu 27 May 2010 12:09:05 AM BRT
Local ID                      caa9dbc7-b935-4ba5-a8f3-c28bce0af080
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1274929745.511:16): avc:  denied  { write } for  pid=1733 comm="gcm-apply" name="cups.sock" dev=sda4 ino=2884151 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cupsd_var_run_t:s0 tclass=sock_file



Hash String generated from  catchall,gcm-apply,xdm_t,cupsd_var_run_t,sock_file,write
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t cupsd_var_run_t:sock_file write;

Comment 1 Daniel Walsh 2010-05-27 14:03:11 UTC

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