Bug 2386280 - SELinux is preventing nfs-server-gene from 'write' accesses on the Verzeichnis generator.
Summary: SELinux is preventing nfs-server-gene from 'write' accesses on the Verzeichni...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:30005040b40856b13d0d20e7ae7...
: 2386874 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-04 14:04 UTC by Frank Büttner
Modified: 2025-09-14 01:35 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-41.47-1.fc41
Clone Of:
Environment:
Last Closed: 2025-09-14 01:35:28 UTC
Type: ---
Embargoed:
zpytela: mirror+


Attachments (Terms of Use)
File: description (2.06 KB, text/plain)
2025-08-04 14:04 UTC, Frank Büttner
no flags Details
File: os_info (726 bytes, text/plain)
2025-08-04 14:04 UTC, Frank Büttner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1896 0 None None None 2025-08-04 14:21:52 UTC

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.


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