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
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 ***