View Issue Details

IDProjectCategoryView StatusLast Update
0017971CentOS-7selinux-policypublic2020-12-27 17:27
Reporterfcentusr 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0017971: SELinux is preventing /usr/sbin/smbd from 'read' accesses on the sock_file cups.sock.
DescriptionDescription of problem:
The selinux policy seems not update and cause the samba print service error for the system log function.
SELinux is preventing /usr/sbin/smbd from 'read' accesses on the sock_file cups.sock.

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

若您相信 smbd 應該預設允許在 cups.sock sock_file 上作 read 存取。
Then 您應將此回報為錯誤。
您可產生本機模組,以允許這項存取。
Do
現在允許此存取,只需透過執行:
# ausearch -c 'lpqd' --raw | audit2allow -M my-lpqd
# semodule -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 /usr/sbin/smbd
Port <Unknown>
Host (removed)
Source RPM Packages samba-4.10.16-9.el7_9.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.11.1.el7.x86_64 #1 SMP
                              Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64
Alert Count 9
First Seen 2020-12-25 22:59:16 CST
Last Seen 2020-12-26 00:40:12 CST
Local ID 7542689e-c070-45ea-8455-e3df5426abcc

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


type=SYSCALL msg=audit(1608914412.568:246): arch=x86_64 syscall=access success=no exit=EACCES a0=7fe6d5364841 a1=4 a2=74736f68 a3=7fffc6e0d990 items=0 ppid=1712 pid=13311 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=lpqd exe=/usr/sbin/smbd subj=system_u:system_r:smbd_t:s0 key=(null)

Hash: lpqd,smbd_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.11.1.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.
abrt_hash8344a13690b03fa8b377c69174884ff8f2a3896c938914c52492031738e29935
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-12-25 16:51 fcentusr New Issue