Bug 1005453
Summary: | SELinux is preventing /usr/bin/pulseaudio from using the 'setcap' accesses on a process. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sai Kiran Kanuri <saikiranrgda> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, vaxon77 |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:a10e33b9e2ab6b7f4791ebf4840f54e4eed5fd4622cc04869eddb8e4152db215 | ||
Fixed In Version: | selinux-policy-3.12.1-135.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-21 09:25:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sai Kiran Kanuri
2013-09-07 05:02:45 UTC
I guess mpd should transition to pulseaudio? Miroslav have we tried this in the past? AFAIK yes and it caused issues. We could try to re-test it. Basically the idea is we have pulseaudio running in the caller domain. gpg.te: pulseaudio_exec(gpg_pinentry_t) mozilla.te: pulseaudio_exec(mozilla_t) mozilla.te: pulseaudio_exec(mozilla_plugin_t) mpd.te: pulseaudio_exec(mpd_t) nsplugin.te: pulseaudio_exec(nsplugin_t) Ok then lets add the access. selinux-policy-3.12.1-74.3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.3.fc19 Package selinux-policy-3.12.1-74.3.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.3.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-16580/selinux-policy-3.12.1-74.3.fc19 then log in and leave karma (feedback). selinux-policy-3.12.1-74.3.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. This still happens on Fedora 20: SELinux is preventing /usr/bin/pulseaudio from using the setcap access on a process. ***** Plugin mozplugger (99.1 confidence) suggests ************************ If you want to use the plugin package Then you must turn off SELinux controls on the Firefox plugins. Do # setsebool -P unconfined_mozilla_plugin_transition 0 ***** Plugin catchall (1.81 confidence) suggests ************************** If you believe that pulseaudio should be allowed setcap access on processes labeled mozilla_plugin_t 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: # grep pulseaudio /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c 0.c1023 Target Context unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c 0.c1023 Target Objects [ process ] Source pulseaudio Source Path /usr/bin/pulseaudio Port <Unknown> Host black.localnet Source RPM Packages pulseaudio-4.0-9.gitf81e3.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-122.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name black.localnet Platform Linux black.localnet 3.13.3-201.fc20.x86_64 #1 SMP Fri Feb 14 19:08:32 UTC 2014 x86_64 x86_64 Alert Count 2 First Seen 2014-02-24 18:15:02 MSK Last Seen 2014-02-24 18:16:07 MSK Local ID f73354f7-6756-4d9c-8c28-3d52fe89402f Raw Audit Messages type=AVC msg=audit(1393251367.345:463): avc: denied { setcap } for pid=20609 comm="pulseaudio" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tclass=process type=SYSCALL msg=audit(1393251367.345:463): arch=x86_64 syscall=capset success=no exit=EACCES a0=25cd044 a1=25cd04c a2=25cd040 a3=386061c310 items=0 ppid=20574 pid=20609 auid=1001 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 ses=1 tty=(none) comm=pulseaudio exe=/usr/bin/pulseaudio subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null) Hash: pulseaudio,mozilla_plugin_t,mozilla_plugin_t,process,setcap Thanks, Val. c027ce43185d1c8ae31d95921363d6c0607daeae allows this in git. (In reply to vaxon from comment #7) > This still happens on Fedora 20: > > SELinux is preventing /usr/bin/pulseaudio from using the setcap access on a > process. > > ***** Plugin mozplugger (99.1 confidence) suggests > ************************ > > If you want to use the plugin package > Then you must turn off SELinux controls on the Firefox plugins. > Do > # setsebool -P unconfined_mozilla_plugin_transition 0 > > ***** Plugin catchall (1.81 confidence) suggests > ************************** > > If you believe that pulseaudio should be allowed setcap access on processes > labeled mozilla_plugin_t 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: > # grep pulseaudio /var/log/audit/audit.log | audit2allow -M mypol > # semodule -i mypol.pp > > Additional Information: > Source Context > unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c > 0.c1023 > Target Context > unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c > 0.c1023 > Target Objects [ process ] > Source pulseaudio > Source Path /usr/bin/pulseaudio > Port <Unknown> > Host black.localnet > Source RPM Packages pulseaudio-4.0-9.gitf81e3.fc20.x86_64 > Target RPM Packages > Policy RPM selinux-policy-3.12.1-122.fc20.noarch > Selinux Enabled True > Policy Type targeted > Enforcing Mode Enforcing > Host Name black.localnet > Platform Linux black.localnet 3.13.3-201.fc20.x86_64 #1 > SMP > Fri Feb 14 19:08:32 UTC 2014 x86_64 x86_64 > Alert Count 2 > First Seen 2014-02-24 18:15:02 MSK > Last Seen 2014-02-24 18:16:07 MSK > Local ID f73354f7-6756-4d9c-8c28-3d52fe89402f > > Raw Audit Messages > type=AVC msg=audit(1393251367.345:463): avc: denied { setcap } for > pid=20609 comm="pulseaudio" > scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 > tcontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 > tclass=process > > > type=SYSCALL msg=audit(1393251367.345:463): arch=x86_64 syscall=capset > success=no exit=EACCES a0=25cd044 a1=25cd04c a2=25cd040 a3=386061c310 > items=0 ppid=20574 pid=20609 auid=1001 uid=1001 gid=1001 euid=1001 suid=1001 > fsuid=1001 egid=1001 sgid=1001 fsgid=1001 ses=1 tty=(none) comm=pulseaudio > exe=/usr/bin/pulseaudio > subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null) > > Hash: pulseaudio,mozilla_plugin_t,mozilla_plugin_t,process,setcap > > Thanks, > Val. Somehow, removing ~/.config/pulse/ seems to have fixed the problem. Thanks, Val. selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20 Package selinux-policy-3.12.1-135.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-135.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |