Hide Forgot
Description of problem: The SELinux policy prevents Rhythmbox from communicating with avahi-daemon, breaking DAAP music sharing. Version-Release number of selected component (if applicable): selinux-policy-targeted-3.0.8-93.fc8 How reproducible: Steps to Reproduce: 1. Open rhythmbox in console 2. Read error messages. 3. Actual results: (rhythmbox:3172): Rhythmbox-WARNING **: Failed to invoke RequestName: Connection ":1.22" is not allowed to own the service "org.gnome.Rhythmbox" due to SELinux policy (rhythmbox:3172): Rhythmbox-WARNING **: Got unhandled reply 53 from RequestName (rhythmbox:3172): Rhythmbox-WARNING **: Unable to start mDNS browsing: MDNS service is not running (rhythmbox:3172): Rhythmbox-WARNING **: Unable to notify network of music sharing: The avahi MDNS service is not running Expected results: Additional info:
Are you seeing avc in /var/log/audit/audit.log?
I'm not quite certain how to answer your question as I don't know much about the workings of SELinux, but I think that this might be the relevant portion of the SELinux audit.log type=USER_AVC msg=audit(1205787612.852:61): user pid=2022 uid=81 auid=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc: denied { send_msg } for msgtype=method_call interface=org.freedesktop.Avahi.Server member=GetAPIVersion dest=org.freedesktop.Avahi spid=3654 tpid=2338 scontext=unconfined_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:system_r:avahi_t:s0 tclass=dbus : exe="/bin/dbus-daemon" (sauid=81, hostname=?, addr=?, terminal=?)' type=USER_AVC msg=audit(1205787612.853:62): user pid=2022 uid=81 auid=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc: denied { send_msg } for msgtype=method_return dest=:1.50 spid=2338 tpid=3654 scontext=system_u:system_r:avahi_t:s0 tcontext=unconfined_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023 tclass=dbus : exe="/bin/dbus-daemon" (sauid=81, hostname=?, addr=?, terminal=?)'
You can allow this for now by executing # audit2allow -M mypol -i /var/log/audit/audit.log # semodule -i mypol.pp Fixed in selinux-policy-3.0.8-95.fc8
Hello, after using the fix you posted I was able to browse DAAP shares and publish my own again via avahi. However, I did get this warning message that I wanted to share in case it is related: $ rhythmbox (rhythmbox:8763): Rhythmbox-WARNING **: Failed to invoke RequestName: Connection ":1.29" is not allowed to own the service "org.gnome.Rhythmbox" due to SELinux policy (rhythmbox:8763): Rhythmbox-WARNING **: Got unhandled reply 53 from RequestName
Looks like some avc is missing. Could you see if you got another
# setenforce 1; setenforce 0 # cat /dev/null > /var/log/audit/audit.log $ rhythmbox Play with rhythmbox for a while and if you will see an avc, attach your audit.log please.
I haven't seen any more audit.log entries relating to rhythmbox since restarting and running in permissive mode.
So you are not seeing this message at all (rhythmbox:8763): Rhythmbox-WARNING **: Failed to invoke RequestName: Connection ":1.29" is not allowed to own the service "org.gnome.Rhythmbox" due to SELinux policy Or you are not seeing it in permissive mode, but are seeing it in enforcing mode?
I only see it in enforcing mode, and there is not a corresponding entry in my audit.log
Ok, try to turn off dontaudit rules # semodule -DB Run Test # semodule -B Check for AVC Messages.
I'm using Fedora Core 9 now and I don't get any SELinux related errors when using rhythmbox. I think this bug can likely be closed.
Closing all bugs that have been in modified for over a month. Please reopen if the bug is not actually fixed.