Bug 1705871 - SELinux is preventing ps from 'sys_ptrace' accesses on the cap_userns labeled pcp_pmie_t.
Summary: SELinux is preventing ps from 'sys_ptrace' accesses on the cap_userns labeled...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:42a2d906cb9372b6c51ed0fa5c1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-03 05:22 UTC by Thomas Neuber
Modified: 2019-06-17 23:33 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.14.2-60.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-17 23:33:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Neuber 2019-05-03 05:22:34 UTC
Description of problem:
SELinux is preventing ps from 'sys_ptrace' accesses on the cap_userns labeled pcp_pmie_t.

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

Wenn du das glaubst ps sollte erlaubt sein sys_ptrace Zugriff auf cap_userns beschriftet pcp_pmie_t standardmäßig.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'ps' --raw | audit2allow -M my-ps
# semodule -X 300 -i my-ps.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmie_t:s0
Target Context                system_u:system_r:pcp_pmie_t:s0
Target Objects                Unknown [ cap_userns ]
Source                        ps
Source Path                   ps
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-57.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.0.9-200.fc29.x86_64 #1 SMP Mon
                              Apr 22 00:55:30 UTC 2019 x86_64 x86_64
Alert Count                   408
First Seen                    2019-05-03 07:11:05 CEST
Last Seen                     2019-05-03 07:18:38 CEST
Local ID                      9635b8c8-4f14-4eb0-a395-9d2d5d7dc776

Raw Audit Messages
type=AVC msg=audit(1556860718.499:7680): avc:  denied  { sys_ptrace } for  pid=14815 comm="ps" capability=19  scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:system_r:pcp_pmie_t:s0 tclass=cap_userns permissive=0


Hash: ps,pcp_pmie_t,pcp_pmie_t,cap_userns,sys_ptrace

Version-Release number of selected component:
selinux-policy-3.14.2-57.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.9-200.fc29.x86_64
type:           libreport

Potential duplicate: bug 1620033

Comment 1 Zdenek Pytela 2019-05-03 07:15:49 UTC
Hi,

Thank you for reporting the issue. I've created a pull request to address the issue:

https://github.com/fedora-selinux/selinux-policy-contrib/pull/107

It now awaits peer review.

Comment 2 Lukas Vrabec 2019-05-15 06:56:13 UTC
Hi Lukas, 

Could you please look on this PR ? 

THanks,
Lukas.

Comment 3 Lukas Berk 2019-05-16 11:29:26 UTC
Done. LGTM and would be helpful for upstream PCP

Comment 4 Fedora Update System 2019-05-31 08:47:41 UTC
FEDORA-2019-04b9c67922 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-04b9c67922

Comment 5 Fedora Update System 2019-06-01 18:54:48 UTC
selinux-policy-3.14.2-60.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-04b9c67922

Comment 6 Fedora Update System 2019-06-17 23:33:14 UTC
selinux-policy-3.14.2-60.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, 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.