Bug 2293037

Summary: SELinux is preventing systemd-cryptse from 'search' accesses on the directory dev-mapper-luks\x2d41cf8d65\x2daf41\x2d4e50\x2db651\x2dd73a2ce3abea.device.d.
Product: [Fedora] Fedora Reporter: Andrei Nevedomskii <little.angry.satan>
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, little.angry.satan, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8fa4532e4b2c9244bb816f0d2d39c7ea9a8167c71f52cd84663df0653131b004;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-19 14:59:51 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 Andrei Nevedomskii 2024-06-19 07:19:26 UTC
Description of problem:
SELinux is preventing systemd-cryptse from 'search' accesses on the directory dev-mapper-luks\x2d41cf8d65\x2daf41\x2d4e50\x2db651\x2dd73a2ce3abea.device.d.

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

If you believe that systemd-cryptse should be allowed search access on the dev-mapper-luks\x2d41cf8d65\x2daf41\x2d4e50\x2db651\x2dd73a2ce3abea.device.d directory 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-cryptse' --raw | audit2allow -M my-systemdcryptse
# semodule -X 300 -i my-systemdcryptse.pp

Additional Information:
Source Context                system_u:system_r:systemd_cryptsetup_generator_t:s
                              0
Target Context                system_u:object_r:systemd_fstab_generator_unit_fil
                              e_t:s0
Target Objects                dev-mapper-luks\x2d41cf8d65\x2daf41\x2d4e50\x2db65
                              1\x2dd73a2ce3abea.device.d [ dir ]
Source                        systemd-cryptse
Source Path                   systemd-cryptse
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.9.4-200.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Jun 12 13:33:34 UTC 2024
                              x86_64
Alert Count                   4
First Seen                    2024-06-14 14:11:15 CEST
Last Seen                     2024-06-19 09:18:44 CEST
Local ID                      9fc65896-de26-4157-a590-8801b09c9ca0

Raw Audit Messages
type=AVC msg=audit(1718781524.278:446): avc:  denied  { search } for  pid=8839 comm="systemd-cryptse" name="dev-mapper-luks\x2d41cf8d65\x2daf41\x2d4e50\x2db651\x2dd73a2ce3abea.device.d" dev="tmpfs" ino=3204 scontext=system_u:system_r:systemd_cryptsetup_generator_t:s0 tcontext=system_u:object_r:systemd_fstab_generator_unit_file_t:s0 tclass=dir permissive=0


Hash: systemd-cryptse,systemd_cryptsetup_generator_t,systemd_fstab_generator_unit_file_t,dir,search

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

Additional info:
reporter:       libreport-2.17.15
component:      selinux-policy
reason:         SELinux is preventing systemd-cryptse from 'search' accesses on the directory dev-mapper-luks\x2d41cf8d65\x2daf41\x2d4e50\x2db651\x2dd73a2ce3abea.device.d.
type:           libreport
hashmarkername: setroubleshoot
package:        selinux-policy-targeted-40.22-1.fc40.noarch
kernel:         6.9.4-200.fc40.x86_64
component:      selinux-policy

Comment 1 Andrei Nevedomskii 2024-06-19 07:19:28 UTC
Created attachment 2037770 [details]
File: description

Comment 2 Andrei Nevedomskii 2024-06-19 07:19:30 UTC
Created attachment 2037771 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-06-19 14:59:51 UTC

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