Bug 2435755

Summary: SELinux is preventing sshd-session from 'getattr' accesses on the Datei /proc/sys/net/ipv6/conf/all/disable_ipv6.
Product: [Fedora] Fedora Reporter: Frank Büttner <bugzilla>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: bugzilla, dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:def9cbbd7404e28bc91add7fb6968502fd0f10890c71fe80d2269728bbff8aec;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-42.23-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-12 01:10:00 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:
Description Flags
File: description
none
File: os_info none

Description Frank Büttner 2026-02-01 11:39:10 UTC
Description of problem:
SELinux is preventing sshd-session from 'getattr' accesses on the Datei /proc/sys/net/ipv6/conf/all/disable_ipv6.

*****  Plugin catchall (100. confidence) suggests   **************************

Wenn Sie denken, dass es sshd-session standardmäßig erlaubt sein sollte, getattr Zugriff auf disable_ipv6 file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'sshd-session' --raw | audit2allow -M my-sshdsession
# semodule -X 300 -i my-sshdsession.pp

Additional Information:
Source Context                system_u:system_r:sshd_session_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                /proc/sys/net/ipv6/conf/all/disable_ipv6 [ file ]
Source                        sshd-session
Source Path                   sshd-session
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.22-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-42.22-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.18.7-100.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Jan 23 15:37:26 UTC 2026
                              x86_64
Alert Count                   2
First Seen                    2026-02-01 12:38:22 CET
Last Seen                     2026-02-01 12:38:26 CET
Local ID                      4259452f-9a97-4a27-8257-88575492b86f

Raw Audit Messages
type=AVC msg=audit(1769945906.568:934): avc:  denied  { getattr } for  pid=41964 comm="sshd-session" path="/proc/sys/net/ipv6/conf/all/disable_ipv6" dev="proc" ino=12547 scontext=system_u:system_r:sshd_session_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file permissive=1


Hash: sshd-session,sshd_session_t,sysctl_net_t,file,getattr

Version-Release number of selected component:
selinux-policy-targeted-42.22-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
kernel:         6.18.7-100.fc42.x86_64
package:        selinux-policy-targeted-42.22-1.fc42.noarch
reason:         SELinux is preventing sshd-session from 'getattr' accesses on the Datei /proc/sys/net/ipv6/conf/all/disable_ipv6.
type:           libreport
hashmarkername: setroubleshoot
component:      selinux-policy
component:      selinux-policy

Comment 1 Frank Büttner 2026-02-01 11:39:13 UTC
Created attachment 2127689 [details]
File: description

Comment 2 Frank Büttner 2026-02-01 11:39:14 UTC
Created attachment 2127690 [details]
File: os_info

Comment 3 Fedora Update System 2026-02-05 11:19:30 UTC
FEDORA-2026-eec17b8b68 (selinux-policy-42.23-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-eec17b8b68

Comment 4 Fedora Update System 2026-02-07 01:53:28 UTC
FEDORA-2026-eec17b8b68 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-eec17b8b68`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-eec17b8b68

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-02-12 01:10:00 UTC
FEDORA-2026-eec17b8b68 (selinux-policy-42.23-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.