Bug 2290363
Summary: | Pulseaudio is denied mapping a file in /run/pulse | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Göran Uddeborg <goeran> | ||||
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 40 | CC: | dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-40.22-1.fc40 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2024-06-12 01:11:39 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
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. |
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.