View Issue Details

IDProjectCategoryView StatusLast Update
0018194CentOS-7selinux-policypublic2021-05-16 12:18
ReporterdkhLaw Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
OS Version7 
Summary0018194: SELinux is preventing /usr/sbin/ldconfig from 'setattr' accesses on the file
DescriptionDescription of problem:
SELinux is preventing /usr/sbin/ldconfig from 'setattr' accesses on the file

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

If you believe that ldconfig should be allowed setattr access on the file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'ldconfig' --raw | audit2allow -M my-ldconfig
# semodule -i my-ldconfig.pp

Additional Information:
Source Context system_u:system_r:ldconfig_t:s0
Target Context system_u:object_r:initrc_tmp_t:s0
Target Objects [ file ]
Source ldconfig
Source Path /usr/sbin/ldconfig
Port <Unknown>
Host (removed)
Source RPM Packages glibc-2.17-324.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 Permissive
Host Name (removed)
Platform Linux (removed) 3.10.0-1160.25.1.el7.x86_64 #1 SMP
                              Wed Apr 28 21:49:45 UTC 2021 x86_64 x86_64
Alert Count 38
First Seen 2021-04-26 14:02:14 EDT
Last Seen 2021-05-08 23:37:15 EDT
Local ID efd538f6-1476-47e7-ba4c-f9ff085eb54b

Raw Audit Messages
type=AVC msg=audit(1620531435.108:231): avc: denied { setattr } for pid=8545 comm="ldconfig" name="" dev="dm-0" ino=68346261 scontext=system_u:system_r:ldconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file permissive=1

type=SYSCALL msg=audit(1620531435.108:231): arch=x86_64 syscall=chmod success=yes exit=0 a0=fb1d50 a1=1a4 a2=1411 a3=7ffe10858190 items=0 ppid=31522 pid=8545 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ldconfig exe=/usr/sbin/ldconfig subj=system_u:system_r:ldconfig_t:s0 key=(null)

Hash: ldconfig,ldconfig_t,initrc_tmp_t,file,setattr

Version-Release number of selected component:
Additional Informationreporter: libreport-
hashmarkername: setroubleshoot
kernel: 3.10.0-1160.25.1.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.




2021-05-16 12:17

manager   ~0038443

Last edited: 2021-05-16 12:18

1. is not needed for normal use
2. you probably need a relabel of the filesystem. I suggest to try restorecon -Rv /etc/

Issue History

Date Modified Username Field Change
2021-05-15 20:31 dkhLaw New Issue
2021-05-16 12:17 ManuelWolfshant Note Added: 0038443
2021-05-16 12:18 ManuelWolfshant Note Edited: 0038443