Bug 2039985 - SELinux is preventing (sd-parse-elf) from 'dac_read_search' accesses on the cap_userns labeled systemd_coredump_t.
Summary: SELinux is preventing (sd-parse-elf) from 'dac_read_search' accesses on the c...
Keywords:
Status: CLOSED DUPLICATE of bug 2031356
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d3606dde54531b2c81b6826bc18...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-12 20:56 UTC by Mikhail
Modified: 2022-01-14 08:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-14 08:05:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2022-01-12 20:56:58 UTC
Description of problem:
SELinux is preventing (sd-parse-elf) from 'dac_read_search' accesses on the cap_userns labeled systemd_coredump_t.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do

Turn on full auditing
# auditctl -w /etc/shadow -p w
Try to recreate AVC. Then execute
# ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla.

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that (sd-parse-elf) should be allowed dac_read_search access on cap_userns labeled systemd_coredump_t 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 '(sd-parse-elf)' --raw | audit2allow -M my-sdparseelf
# semodule -X 300 -i my-sdparseelf.pp

Additional Information:
Source Context                system_u:system_r:systemd_coredump_t:s0
Target Context                system_u:system_r:systemd_coredump_t:s0
Target Objects                Unknown [ cap_userns ]
Source                        (sd-parse-elf)
Source Path                   (sd-parse-elf)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.8-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-35.8-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.17.0-
                              0.rc0.20220112gitdaadb3bd0e8d.63.fc36.x86_64 #1
                              SMP PREEMPT Wed Jan 12 18:54:57 UTC 2022 x86_64
                              x86_64
Alert Count                   8
First Seen                    2022-01-11 22:24:51 +05
Last Seen                     2022-01-13 01:54:20 +05
Local ID                      d8ff9c11-15cd-40cc-a189-8f470249815e

Raw Audit Messages
type=AVC msg=audit(1642020860.61:389): avc:  denied  { dac_read_search } for  pid=24757 comm="(sd-parse-elf)" capability=2  scontext=system_u:system_r:systemd_coredump_t:s0 tcontext=system_u:system_r:systemd_coredump_t:s0 tclass=cap_userns permissive=1


Hash: (sd-parse-elf),systemd_coredump_t,systemd_coredump_t,cap_userns,dac_read_search

Version-Release number of selected component:
selinux-policy-targeted-35.8-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.17.0-0.rc0.20220112gitdaadb3bd0e8d.63.fc36.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-01-14 08:05:26 UTC

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


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