Bug 2143403
| Summary: | SELinux is preventing hostname from 'read' accesses on the file disable_ipv6. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Colin J Thomson <colin.thomson> |
| Component: | cockpit | Assignee: | Martin Pitt <mpitt> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | dperpeet, mmarusak, mpitt, patrick, pvolpe, stefw, user-cont-team+packit-fas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:4d3b908ecc1cad344d67d3ae79b32c930eccc3517f70b8054da7d8df7d882dcb;VARIANT_ID=kde; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-18 07:19:35 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: | |||
This is similar enough to #2143070 to treat it in one bugzilla. Thanks for reporting! *** This bug has been marked as a duplicate of bug 2143070 *** |
Description of problem: I started seeing this alert after changing my Hostname using the command "sudo hostnamectl set-hostname --static xxx" SELinux is preventing hostname from 'read' accesses on the file disable_ipv6. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that hostname should be allowed read access on the disable_ipv6 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 'hostname' --raw | audit2allow -M my-hostname # semodule -X 300 -i my-hostname.pp Additional Information: Source Context system_u:system_r:cockpit_ws_t:s0 Target Context system_u:object_r:sysctl_net_t:s0 Target Objects disable_ipv6 [ file ] Source hostname Source Path hostname Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-37.14-1.fc37.noarch Local Policy RPM cockpit-ws-279-1.fc37.x86_64 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.0.9-300.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 16 17:36:22 UTC 2022 x86_64 x86_64 Alert Count 2 First Seen 2022-11-16 20:21:45 GMT Last Seen 2022-11-16 20:21:45 GMT Local ID dd47ba41-3955-47e0-a084-046223a91859 Raw Audit Messages type=AVC msg=audit(1668630105.555:223): avc: denied { read } for pid=1317 comm="hostname" name="disable_ipv6" dev="proc" ino=20412 scontext=system_u:system_r:cockpit_ws_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file permissive=0 Hash: hostname,cockpit_ws_t,sysctl_net_t,file,read Version-Release number of selected component: selinux-policy-targeted-37.14-1.fc37.noarch Additional info: component: cockpit reporter: libreport-2.17.4 hashmarkername: setroubleshoot kernel: 6.0.9-300.fc37.x86_64 type: libreport