Description of problem: SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /etc/passwd. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that bash should be allowed getattr access on the passwd 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 'selinux-autorel' --raw | audit2allow -M my-selinuxautorel # semodule -X 300 -i my-selinuxautorel.pp Additional Information: Source Context system_u:system_r:selinux_autorelabel_generator_t: s0 Target Context system_u:object_r:passwd_file_t:s0 Target Objects /etc/passwd [ file ] Source selinux-autorel Source Path /usr/bin/bash Port <Unknown> Host (removed) Source RPM Packages bash-5.2.26-3.fc40.x86_64 Target RPM Packages setup-2.14.5-2.fc40.noarch SELinux Policy RPM selinux-policy-targeted-40.16-1.fc41.noarch Local Policy RPM selinux-policy-targeted-40.16-1.fc41.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 6.9.0- 0.rc4.20240416git96fca68c4fbf7.39.fc41.x86_64+debu g #1 SMP PREEMPT_DYNAMIC Tue Apr 16 18:15:19 +05 2024 x86_64 Alert Count 13 First Seen 2024-04-15 23:13:38 +05 Last Seen 2024-04-18 10:09:32 +05 Local ID f1f12a59-1088-483f-b536-722b7d1c7841 Raw Audit Messages type=AVC msg=audit(1713416972.348:1550): avc: denied { getattr } for pid=2271913 comm="selinux-autorel" path="/etc/passwd" dev="nvme0n1p2" ino=40679685 scontext=system_u:system_r:selinux_autorelabel_generator_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file permissive=1 type=SYSCALL msg=audit(1713416972.348:1550): arch=x86_64 syscall=fstat success=yes exit=0 a0=3 a1=7ffeea5832f0 a2=7f2f405eeea0 a3=0 items=0 ppid=2271901 pid=2271913 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=selinux-autorel exe=/usr/bin/bash subj=system_u:system_r:selinux_autorelabel_generator_t:s0 key=(null) Hash: selinux-autorel,selinux_autorelabel_generator_t,passwd_file_t,file,getattr Version-Release number of selected component: selinux-policy-targeted-40.16-1.fc41.noarch Additional info: reporter: libreport-2.17.15 reason: SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /etc/passwd. package: selinux-policy-targeted-40.16-1.fc41.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport kernel: 6.9.0-0.rc4.20240417git96fca68c4fbf.40.fc41.x86_64+debug component: selinux-policy
Created attachment 2027539 [details] File: description
Created attachment 2027540 [details] File: os_info
*** This bug has been marked as a duplicate of bug 2275266 ***