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
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.
Hi Lukas, Could you please look on this PR ? THanks, Lukas.
Done. LGTM and would be helpful for upstream PCP
FEDORA-2019-04b9c67922 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-04b9c67922
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
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.