View Issue Details

IDProjectCategoryView StatusLast Update
0018132CentOS-7selinux-policypublic2021-04-05 22:24
Reporterhubbardharrison Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
OS Version7 
Summary0018132: SELinux is preventing /usr/lib/udev/udev-configure-printer from 'read' accesses on the sock_file /var/run/cups/cups.sock.
DescriptionDescription of problem:
1 installed new brother MFC-L2690DW printer
2 linstalled XSANE software
3 did a scan frpm printer to file useing scan button on the printer.
SELinux is preventing /usr/lib/udev/udev-configure-printer from 'read' accesses on the sock_file /var/run/cups/cups.sock.

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

If you believe that udev-configure-printer should be allowed read access on the cups.sock sock_file 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:
# ausearch -c 'udev-configure-' --raw | audit2allow -M my-udevconfigure
# semodule -i my-udevconfigure.pp

Additional Information:
Source Context system_u:system_r:cupsd_config_t:s0
Target Context system_u:object_r:cupsd_var_run_t:s0
Target Objects /var/run/cups/cups.sock [ sock_file ]
Source udev-configure-
Source Path /usr/lib/udev/udev-configure-printer
Port <Unknown>
Host (removed)
Source RPM Packages system-config-printer-udev-1.4.1-23.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-268.el7_9.2.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 3.10.0-1160.21.1.el7.x86_64 #1 SMP
                              Tue Mar 16 18:28:22 UTC 2021 x86_64 x86_64
Alert Count 8
First Seen 2021-03-11 20:48:37 CST
Last Seen 2021-03-28 19:56:27 CDT
Local ID 08200075-e3c3-4117-8fb6-d1405afa167d

Raw Audit Messages
type=AVC msg=audit(1616979387.628:2375): avc: denied { read } for pid=2817 comm="udev-configure-" name="cups.sock" dev="tmpfs" ino=15294 scontext=system_u:system_r:cupsd_config_t:s0 tcontext=system_u:object_r:cupsd_var_run_t:s0 tclass=sock_file permissive=0


type=SYSCALL msg=audit(1616979387.628:2375): arch=x86_64 syscall=access success=no exit=EACCES a0=7fafa1b0e841 a1=4 a2=74736f68 a3=7ffc5e196820 items=1 ppid=1 pid=2817 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=udev-configure- exe=/usr/lib/udev/udev-configure-printer subj=system_u:system_r:cupsd_config_t:s0 key=(null)

type=CWD msg=audit(1616979387.628:2375): cwd=/

type=PATH msg=audit(1616979387.628:2375): item=0 name=/var/run/cups/cups.sock inode=15294 dev=00:14 mode=0140666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:cupsd_var_run_t:s0 objtype=NORMAL cap_fp=0000000000000000 cap_fi=0000000000000000 cap_fe=0 cap_fver=0

Hash: udev-configure-,cupsd_config_t,cupsd_var_run_t,sock_file,read

Version-Release number of selected component:
selinux-policy-3.13.1-268.el7_9.2.noarch
Additional Informationreporter: libreport-2.1.11.1
hashmarkername: setroubleshoot
kernel: 3.10.0-1160.21.1.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.
abrt_hashe8e8089dfbeb7edd49b95cc6e3e37fb02efa608e1655e2bc872c9e17eefd05f5
URL

Activities

ManuelWolfshant

ManuelWolfshant

2021-03-29 11:27

manager   ~0038344

Please try to touch /.autorelabel and reboot in order to relabel the filesystem
If you still have issues after that , please contact Brother and report the bug.
Hugh

Hugh

2021-04-05 22:24

reporter   ~0038360

Me too (CentOS 7, up to date, and a Brother printer but not a proprietary driver). I got this when trying to print a pdf using lp and with lpr. I was and am remote so I cannot test well.

type=AVC msg=audit(1617659478.372:1330): avc: denied { read } for pid=5826 comm="udev-configure-" name="cups.sock" dev="tmpfs" ino=21976 scontext=system_u:system_r:cupsd_config_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cupsd_var_run_t:s0 tclass=sock_file permissive=0

Mysteriously, CUPS status included:
        "loadFilename failed: /var/spool/cups/d00014-001: not a PDF file"

When I did a "file" command on the spool file, it was a PDF file. So CUPS is a bit confused by this.

I was able to print when I used using enscript instead of lp. That may have been a coincidence.

I will to a relabel but I cannot retest soon.

Issue History

Date Modified Username Field Change
2021-03-29 02:43 hubbardharrison New Issue
2021-03-29 11:27 ManuelWolfshant Note Added: 0038344
2021-04-05 22:24 Hugh Note Added: 0038360