Bug 2292647

Summary: SELinux is preventing systemd-fstab-g from 'create' accesses on the file .#50-device-timeout.conf15e7dcfe31836b53.
Product: [Fedora] Fedora Reporter: Vasco Rodrigues <v>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, v, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:862b7a4c888eec7091ca6b66df3dc2e0e0ee56e5be1c116631560ed1f9833a64;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-17 15:54:38 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 Vasco Rodrigues 2024-06-17 12:23:53 UTC
Description of problem:
Updating the kernel thru dnf update, while it was running post-install scripts to generate kernel and initrd
SELinux is preventing systemd-fstab-g from 'create' accesses on the file .#50-device-timeout.conf15e7dcfe31836b53.

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

If you believe that systemd-fstab-g should be allowed create access on the .#50-device-timeout.conf15e7dcfe31836b53 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 'systemd-fstab-g' --raw | audit2allow -M my-systemdfstabg
# semodule -X 300 -i my-systemdfstabg.pp

Additional Information:
Source Context                system_u:system_r:systemd_fstab_generator_t:s0
Target Context                system_u:object_r:systemd_cryptsetup_generator_uni
                              t_file_t:s0
Target Objects                .#50-device-timeout.conf15e7dcfe31836b53 [ file ]
Source                        systemd-fstab-g
Source Path                   systemd-fstab-g
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.22-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.22-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.8.11-300.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon May 27 14:53:33 UTC 2024
                              x86_64
Alert Count                   1
First Seen                    2024-06-17 11:11:32 WEST
Last Seen                     2024-06-17 11:11:32 WEST
Local ID                      b5ef1975-6eaa-44e1-964c-13af000686ea

Raw Audit Messages
type=AVC msg=audit(1718619092.510:1853): avc:  denied  { create } for  pid=849429 comm="systemd-fstab-g" name=".#50-device-timeout.conf15e7dcfe31836b53" scontext=system_u:system_r:systemd_fstab_generator_t:s0 tcontext=system_u:object_r:systemd_cryptsetup_generator_unit_file_t:s0 tclass=file permissive=0


Hash: systemd-fstab-g,systemd_fstab_generator_t,systemd_cryptsetup_generator_unit_file_t,file,create

Version-Release number of selected component:
selinux-policy-targeted-40.22-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.15
package:        selinux-policy-targeted-40.22-1.fc40.noarch
kernel:         6.8.11-300.fc40.x86_64
component:      selinux-policy
reason:         SELinux is preventing systemd-fstab-g from 'create' accesses on the file .#50-device-timeout.conf15e7dcfe31836b53.
comment:        Updating the kernel thru dnf update, while it was running post-install scripts to generate kernel and initrd
hashmarkername: setroubleshoot
type:           libreport
component:      selinux-policy

Comment 1 Vasco Rodrigues 2024-06-17 12:23:55 UTC
Created attachment 2037568 [details]
File: description

Comment 2 Vasco Rodrigues 2024-06-17 12:23:56 UTC
Created attachment 2037569 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-06-17 15:54:38 UTC

*** This bug has been marked as a duplicate of bug 2292191 ***