Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: logwatch -> uptime SELinux is preventing uptime from 'read' accesses on the directory sessions. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that uptime should be allowed read access on the sessions directory 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 'uptime' --raw | audit2allow -M my-uptime # semodule -X 300 -i my-uptime.pp Additional Information: Source Context system_u:system_r:logwatch_t:s0-s0:c0.c1023 Target Context system_u:object_r:systemd_logind_sessions_t:s0 Target Objects sessions [ dir ] Source uptime Source Path uptime Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-40.13-1.fc40.noarch Local Policy RPM selinux-policy-targeted-40.13-1.fc40.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.8.5-301.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 20:00:10 UTC 2024 x86_64 Alert Count 1 First Seen 2024-04-14 03:17:05 CEST Last Seen 2024-04-14 03:17:05 CEST Local ID f04cc690-2ea0-46b6-b2dc-79f5df9ab421 Raw Audit Messages type=AVC msg=audit(1713057425.152:187): avc: denied { read } for pid=27484 comm="uptime" name="sessions" dev="tmpfs" ino=91 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_sessions_t:s0 tclass=dir permissive=0 Hash: uptime,logwatch_t,systemd_logind_sessions_t,dir,read Version-Release number of selected component: selinux-policy-targeted-40.13-1.fc40.noarch Additional info: reporter: libreport-2.17.15 kernel: 6.8.5-301.fc40.x86_64 package: selinux-policy-targeted-40.13-1.fc40.noarch component: selinux-policy type: libreport hashmarkername: setroubleshoot reason: SELinux is preventing uptime from 'read' accesses on the directory sessions. comment: logwatch -> uptime component: selinux-policy
Created attachment 2026782 [details] File: description
Created attachment 2026783 [details] File: os_info
This bug is a duplicate of BZ#2270484.
*** This bug has been marked as a duplicate of bug 2270484 ***