Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 2123929

Summary: SELinux is preventing pmdakvm from 'search' accesses on the directory /sys/kernel/tracing.
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: dwalsh, grepl.miroslav, lvrabec, mmalik, nknazeko, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:605e5bcfd31c8454b37bab702e7a9a3cf01c405ca5ef2b4fb5d636df323d461f;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-07 13:22:08 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:

Description Ian Laurie 2022-09-03 06:54:36 UTC
Description of problem:
First login to Xfce Security Lab freshly installed from 20220831.n.0.
SELinux is preventing pmdakvm from 'search' accesses on the directory /sys/kernel/tracing.

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

If you believe that pmdakvm should be allowed search access on the tracing 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 'pmdakvm' --raw | audit2allow -M my-pmdakvm
# semodule -X 300 -i my-pmdakvm.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmcd_t:s0
Target Context                system_u:object_r:tracefs_t:s0
Target Objects                /sys/kernel/tracing [ dir ]
Source                        pmdakvm
Source Path                   pmdakvm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.8-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.8-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.19.3-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Aug 21 16:17:41 UTC 2022
                              x86_64 x86_64
Alert Count                   1
First Seen                    2022-09-03 16:46:26 AEST
Last Seen                     2022-09-03 16:46:26 AEST
Local ID                      d5f4e3cc-43ff-44e5-aae5-add7e80d1c67

Raw Audit Messages
type=AVC msg=audit(1662187586.800:247): avc:  denied  { search } for  pid=1665 comm="pmdakvm" name="/" dev="tracefs" ino=1 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:tracefs_t:s0 tclass=dir permissive=0


Hash: pmdakvm,pcp_pmcd_t,tracefs_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-37.8-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.2
hashmarkername: setroubleshoot
kernel:         5.19.3-300.fc37.x86_64
type:           libreport

Potential duplicate: bug 2041845

Comment 1 Nikola Knazekova 2022-09-07 13:22:08 UTC

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