Bug 2435755 - SELinux is preventing sshd-session from 'getattr' accesses on the Datei /proc/sys/net/ipv6/conf/all/disable_ipv6.
Summary: SELinux is preventing sshd-session from 'getattr' accesses on the Datei /proc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:def9cbbd7404e28bc91add7fb69...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-01 11:39 UTC by Frank Büttner
Modified: 2026-02-12 01:10 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-42.23-1.fc42
Clone Of:
Environment:
Last Closed: 2026-02-12 01:10:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.13 KB, text/plain)
2026-02-01 11:39 UTC, Frank Büttner
no flags Details
File: os_info (726 bytes, text/plain)
2026-02-01 11:39 UTC, Frank Büttner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 3049 0 None open Allow sshd-session read network sysctls 2026-02-02 10:47:21 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.