Bug 1386927 - SELinux is preventing lpqd from 'read' accesses on the sock_file cups.sock.
Summary: SELinux is preventing lpqd from 'read' accesses on the sock_file cups.sock.
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8344a13690b03fa8b377c691748...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 21:17 UTC by Juan Orti
Modified: 2016-11-07 21:47 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 21:47:34 UTC
Type: ---


Attachments (Terms of Use)

Description Juan Orti 2016-10-19 21:17:05 UTC
Description of problem:
SELinux is preventing lpqd from 'read' accesses on the sock_file cups.sock.

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

If cree que de manera predeterminada, lpqd debería permitir acceso read sobre cups.sock sock_file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c 'lpqd' --raw | audit2allow -M my-lpqd
# semodule -X 300 -i my-lpqd.pp

Additional Information:
Source Context                system_u:system_r:smbd_t:s0
Target Context                system_u:object_r:cupsd_var_run_t:s0
Target Objects                cups.sock [ sock_file ]
Source                        lpqd
Source Path                   lpqd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-219.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.1-1.fc25.x86_64 #1 SMP Fri Oct
                              7 14:38:22 UTC 2016 x86_64 x86_64
Alert Count                   49
First Seen                    2016-10-13 19:54:25 CEST
Last Seen                     2016-10-19 23:08:43 CEST
Local ID                      fad25d1d-11e9-446d-bec7-b6748d72613f

Raw Audit Messages
type=AVC msg=audit(1476911323.958:626): avc:  denied  { read } for  pid=3788 comm="lpqd" name="cups.sock" dev="tmpfs" ino=18917 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:cupsd_var_run_t:s0 tclass=sock_file permissive=0


Hash: lpqd,smbd_t,cupsd_var_run_t,sock_file,read

Version-Release number of selected component:
selinux-policy-3.13.1-219.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.1-1.fc25.x86_64
type:           libreport


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