Description of problem: SELinux is preventing stress-ng from 'map' accesses on the directory /proc/<pid>. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that stress-ng should be allowed map access on the <pid> 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 'stress-ng' --raw | audit2allow -M my-stressng # semodule -X 300 -i my-stressng.pp Additional Information: Source Context unconfined_u:unconfined_r:unconfined_t:s0- s0:c0.c1023 Target Context unconfined_u:unconfined_r:unconfined_t:s0- s0:c0.c1023 Target Objects /proc/<pid> [ dir ] Source stress-ng Source Path stress-ng Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-37.1-1.fc37.noarch Local Policy RPM selinux-policy-targeted-37.1-1.fc37.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.18.0- 0.rc5.20220503git9050ba3a61a4b5b.41.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 3 14:03:53 UTC 2022 x86_64 x86_64 Alert Count 28 First Seen 2022-05-05 02:45:57 +05 Last Seen 2022-05-05 02:46:41 +05 Local ID ea1043b0-a90e-4b86-bc37-bc909d9e9c27 Raw Audit Messages type=AVC msg=audit(1651700801.804:609): avc: denied { map } for pid=5411 comm="stress-ng" path="/proc/10381" dev="proc" ino=67726 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=dir permissive=0 Hash: stress-ng,unconfined_t,unconfined_t,dir,map Version-Release number of selected component: selinux-policy-targeted-37.1-1.fc37.noarch Additional info: component: selinux-policy reporter: libreport-2.17.1 hashmarkername: setroubleshoot kernel: 5.18.0-0.rc5.20220503git9050ba3a61a4b5b.41.fc37.x86_64 type: libreport
Similar problem has been detected: # stress-ng --all 8 --timeout 60s --metrics-brief --tz causes this alert hashmarkername: setroubleshoot kernel: 5.18.0-0.rc5.20220503git9050ba3a61a4b5b.41.fc37.x86_64 package: selinux-policy-targeted-37.1-1.fc37.noarch reason: SELinux is preventing stress-ng from 'map' accesses on the directory /proc/<pid>. type: libreport
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37.
FEDORA-2022-839f7bd62c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-839f7bd62c
FEDORA-2022-839f7bd62c has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-839f7bd62c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-839f7bd62c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-839f7bd62c has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.