Bug 2386280

Summary: SELinux is preventing nfs-server-gene from 'write' accesses on the Verzeichnis generator.
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: 41CC: bugzilla, dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---Flags: zpytela: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:30005040b40856b13d0d20e7ae70e6b710baeb2c591ca248d977127436aa9f8f;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-41.47-1.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-14 01:35: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:
Description Flags
File: description
none
File: os_info none

Description Frank Büttner 2025-08-04 14:04:42 UTC
Description of problem:
SELinux is preventing nfs-server-gene from 'write' accesses on the Verzeichnis generator.

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

Wenn Sie denken, dass es nfs-server-gene standardmäßig erlaubt sein sollte, write Zugriff auf generator directory 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 'nfs-server-gene' --raw | audit2allow -M my-nfsservergene
# semodule -X 300 -i my-nfsservergene.pp

Additional Information:
Source Context                system_u:system_r:nfsd_t:s0
Target Context                system_u:object_r:systemd_generator_unit_file_t:s0
Target Objects                generator [ dir ]
Source                        nfs-server-gene
Source Path                   nfs-server-gene
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.46-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.46-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.15.8-100.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 24 12:25:37 UTC 2025
                              x86_64
Alert Count                   2
First Seen                    2025-08-04 16:03:29 CEST
Last Seen                     2025-08-04 16:03:31 CEST
Local ID                      39514b2b-7916-4ac3-954d-fd106dd52e96

Raw Audit Messages
type=AVC msg=audit(1754316211.496:396): avc:  denied  { write } for  pid=6029 comm="nfs-server-gene" name="generator" dev="tmpfs" ino=3977 scontext=system_u:system_r:nfsd_t:s0 tcontext=system_u:object_r:systemd_generator_unit_file_t:s0 tclass=dir permissive=0


Hash: nfs-server-gene,nfsd_t,systemd_generator_unit_file_t,dir,write

Version-Release number of selected component:
selinux-policy-targeted-41.46-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
kernel:         6.15.8-100.fc41.x86_64
package:        selinux-policy-targeted-41.46-1.fc41.noarch
reason:         SELinux is preventing nfs-server-gene from 'write' accesses on the Verzeichnis generator.
type:           libreport
hashmarkername: setroubleshoot
component:      selinux-policy
component:      selinux-policy

Comment 1 Frank Büttner 2025-08-04 14:04:45 UTC
Created attachment 2102643 [details]
File: description

Comment 2 Frank Büttner 2025-08-04 14:04:46 UTC
Created attachment 2102644 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-08-07 13:12:31 UTC
*** Bug 2386874 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2025-09-09 17:05:06 UTC
FEDORA-2025-acfddac85e (selinux-policy-41.47-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-acfddac85e

Comment 5 Fedora Update System 2025-09-10 02:41:36 UTC
FEDORA-2025-acfddac85e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-acfddac85e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-acfddac85e

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

Comment 6 Fedora Update System 2025-09-14 01:35:28 UTC
FEDORA-2025-acfddac85e (selinux-policy-41.47-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.