Bug 2274959
| Summary: | SELinux is preventing uptime from 'read' accesses on the directory sessions. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Max M. <me5v5pg6nz5> | ||||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 40 | CC: | dwalsh, knazekovan, lvrabec, me5v5pg6nz5, mmalik, omosnacek, pkoncity, vmojzis, zpytela | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:f72874fb6159175c5f5df684869616dbc4f5f71986fc0b0bfd3be05512e77fe4;VARIANT_ID=; | ||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2024-04-15 05:58:28 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
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 *** |
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