Created attachment 2036251 [details] My service file to start the pulseaudio server Description of problem: I have what you could call a "sound server". It is a machine having a USB sound device that other machines in the local network can connect to and play on. I do this by starting the pulseaudio server in "system mode". Doing so I get the error that SELinux prevents "alsa-sing-USB A" from the map access on a file named /run/pulse/orcexec.Tw9Ifn. (The last 6 characters of course vary for each execution.) Version-Release number of selected component (if applicable): pulseaudio-16.1-7.fc40.x86_64 selinux-policy-targeted-40.20-1.fc40.noarch How reproducible: Every start Steps to Reproduce: 1.Activate pulseaudio in system mode via systemd (my service file is attached) Actual results: type=AVC msg=audit(1717356971.313:861): avc: denied { map } for pid=831 comm=616C73612D73696E6B2D5553422041 path=2F72756E2F70756C73652F6F7263657865632E54773949666E202864656C6574656429 dev="tmpfs" ino=2349 scontext=system_u:system_r:pulseaudio_t:s0 tcontext=system_u:object_r:pulseaudio_var_run_t:s0 tclass=file permissive=0 Expected results: No avc violations. Additional info: orcexec files are apparently created using liborc to make some JIT code. It seems to make sense for pulseaudio_t to be able to map files it has generated when they have the type pulseaudio_var_run_t.
Makes sense to allow it as all other permissions are already there.
FEDORA-2024-9fae7e7b23 (selinux-policy-40.22-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-9fae7e7b23
FEDORA-2024-9fae7e7b23 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-9fae7e7b23` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9fae7e7b23 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-9fae7e7b23 (selinux-policy-40.22-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.