Bug 2292480 - SELinux is preventing systemd-cryptse from 'search' accesses on the directory dev-mapper-luks\x2dd03920bd\x2db9a4\x2d4e86\x2dbad8\x2ddbd5ff4f8a47.device.d.
Summary: SELinux is preventing systemd-cryptse from 'search' accesses on the directory...
Keywords:
Status: CLOSED DUPLICATE of bug 2292627
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8fa4532e4b2c9244bb816f0d2d3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-15 07:12 UTC by Philipp Raich
Modified: 2024-06-17 16:01 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-17 16:01:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.42 KB, text/plain)
2024-06-15 07:13 UTC, Philipp Raich
no flags Details
File: os_info (734 bytes, text/plain)
2024-06-15 07:13 UTC, Philipp Raich
no flags Details

Description Philipp Raich 2024-06-15 07:12:58 UTC
Description of problem:
dnf update?
SELinux is preventing systemd-cryptse from 'search' accesses on the directory dev-mapper-luks\x2dd03920bd\x2db9a4\x2d4e86\x2dbad8\x2ddbd5ff4f8a47.device.d.

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

If you believe that systemd-cryptse should be allowed search access on the dev-mapper-luks\x2dd03920bd\x2db9a4\x2d4e86\x2dbad8\x2ddbd5ff4f8a47.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\x2dd03920bd\x2db9a4\x2d4e86\x2dbad
                              8\x2ddbd5ff4f8a47.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.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-12 22:16:35 CEST
Last Seen                     2024-06-12 22:16:35 CEST
Local ID                      b3873ae6-11fe-4458-84bf-c29e4be1711a

Raw Audit Messages
type=AVC msg=audit(1718223395.221:406): avc:  denied  { search } for  pid=36378 comm="systemd-cryptse" name="dev-mapper-luks\x2dd03920bd\x2db9a4\x2d4e86\x2dbad8\x2ddbd5ff4f8a47.device.d" dev="tmpfs" ino=6978 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
reason:         SELinux is preventing systemd-cryptse from 'search' accesses on the directory dev-mapper-luks\x2dd03920bd\x2db9a4\x2d4e86\x2dbad8\x2ddbd5ff4f8a47.device.d.
package:        selinux-policy-targeted-40.22-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.11-300.fc40.x86_64
comment:        dnf update?
component:      selinux-policy

Comment 1 Philipp Raich 2024-06-15 07:13:00 UTC
Created attachment 2037406 [details]
File: description

Comment 2 Philipp Raich 2024-06-15 07:13:02 UTC
Created attachment 2037407 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-06-17 16:01:50 UTC

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


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