Bug 2292512 - SELinux is preventing zram-generator from 'search' accesses on the directory local-fs.target.wants.
Summary: SELinux is preventing zram-generator from 'search' accesses on the directory ...
Keywords:
Status: CLOSED DUPLICATE of bug 2292253
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:f12f882d35a5e342e7b7f28d948...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-15 17:30 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2024-06-17 15:46 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-17 15:46:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2024-06-15 17:30 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: description (2.12 KB, text/plain)
2024-06-15 17:30 UTC, Dominik 'Rathann' Mierzejewski
no flags Details

Description Dominik 'Rathann' Mierzejewski 2024-06-15 17:30:11 UTC
Description of problem:
SELinux is preventing zram-generator from 'search' accesses on the directory local-fs.target.wants.

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

If you believe that zram-generator should be allowed search access on the local-fs.target.wants 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 'zram-generator' --raw | audit2allow -M my-zramgenerator
# semodule -X 300 -i my-zramgenerator.pp

Additional Information:
Source Context                system_u:system_r:systemd_zram_generator_t:s0
Target Context                system_u:object_r:systemd_fstab_generator_unit_fil
                              e_t:s0
Target Objects                local-fs.target.wants [ dir ]
Source                        zram-generator
Source Path                   zram-generator
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-13 20:08:17 CEST
Last Seen                     2024-06-13 20:08:17 CEST
Local ID                      d74d9bdc-f4f5-4580-b045-1c9a90cb64d5

Raw Audit Messages
type=AVC msg=audit(1718302097.98:501): avc:  denied  { search } for  pid=36100 comm="zram-generator" name="local-fs.target.wants" dev="tmpfs" ino=4231 scontext=system_u:system_r:systemd_zram_generator_t:s0 tcontext=system_u:object_r:systemd_fstab_generator_unit_file_t:s0 tclass=dir permissive=1


Hash: zram-generator,systemd_zram_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
type:           libreport
kernel:         6.9.4-200.fc40.x86_64
package:        selinux-policy-targeted-40.22-1.fc40.noarch
reason:         SELinux is preventing zram-generator from 'search' accesses on the directory local-fs.target.wants.
component:      selinux-policy
hashmarkername: setroubleshoot
component:      selinux-policy

Comment 1 Dominik 'Rathann' Mierzejewski 2024-06-15 17:30:13 UTC
Created attachment 2037469 [details]
File: os_info

Comment 2 Dominik 'Rathann' Mierzejewski 2024-06-15 17:30:15 UTC
Created attachment 2037470 [details]
File: description

Comment 3 Zdenek Pytela 2024-06-17 15:46:07 UTC

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


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