Bug 2278017 - SELinux is preventing pmlc from 'write' accesses on the sock_file pmcd.socket.
Summary: SELinux is preventing pmlc from 'write' accesses on the sock_file pmcd.socket.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:72357caace2aba115e861945671...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-30 17:29 UTC by Michael
Modified: 2024-08-08 02:42 UTC (History)
7 users (show)

Fixed In Version: pcp-6.3.0-2.fc40
Clone Of:
Environment:
Last Closed: 2024-08-08 02:42:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.87 KB, text/plain)
2024-04-30 17:30 UTC, Michael
no flags Details
File: os_info (734 bytes, text/plain)
2024-04-30 17:30 UTC, Michael
no flags Details

Description Michael 2024-04-30 17:29:57 UTC
Description of problem:
SELinux is preventing pmlc from 'write' accesses on the sock_file pmcd.socket.

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

If you believe that pmlc should be allowed write access on the pmcd.socket sock_file 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 'pmlc' --raw | audit2allow -M my-pmlc
# semodule -X 300 -i my-pmlc.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmlogger_t:s0
Target Context                system_u:object_r:var_run_t:s0
Target Objects                pmcd.socket [ sock_file ]
Source                        pmlc
Source Path                   pmlc
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.17-1.fc40.noarch
Local Policy RPM              pcp-selinux-6.2.1-1.fc40.x86_64
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.8.7-300.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Apr 17 19:21:08 UTC 2024
                              x86_64
Alert Count                   6
First Seen                    2024-04-30 18:55:03 CEST
Last Seen                     2024-04-30 19:25:03 CEST
Local ID                      12fb0a89-52fb-401a-8e71-776540f1d445

Raw Audit Messages
type=AVC msg=audit(1714497903.280:2396): avc:  denied  { write } for  pid=180638 comm="pminfo" name="pmcd.socket" dev="tmpfs" ino=5143 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file permissive=0


Hash: pmlc,pcp_pmlogger_t,var_run_t,sock_file,write

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing pmlc from 'write' accesses on the sock_file pmcd.socket.
package:        selinux-policy-targeted-40.17-1.fc40.noarch
component:      pcp
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.7-300.fc40.x86_64
component:      pcp

Comment 1 Michael 2024-04-30 17:30:00 UTC
Created attachment 2030348 [details]
File: description

Comment 2 Michael 2024-04-30 17:30:02 UTC
Created attachment 2030349 [details]
File: os_info

Comment 3 Fedora Update System 2024-07-30 06:36:28 UTC
FEDORA-2024-55a2b3f839 (pcp-6.3.0-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-55a2b3f839

Comment 4 Jan Kurik 2024-07-30 14:54:42 UTC
Verified on pcp-6.3.0-2.fc40 build.

Comment 5 Fedora Update System 2024-07-31 01:24:27 UTC
FEDORA-2024-55a2b3f839 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-55a2b3f839`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-55a2b3f839

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-08-08 02:42:16 UTC
FEDORA-2024-55a2b3f839 (pcp-6.3.0-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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