Bug 1227052

Summary: [PATCH] avahi-daemon won't pick up rtnetlink messages in a netns & userns
Product: [Fedora] Fedora Reporter: Lubomir Rintel <lkundrak>
Component: avahiAssignee: Lennart Poettering <lpoetter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: extras-qa, lpoetter, msekleta, rdieter, rmarko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: avahi-0.6.31-31.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1203731 Environment:
Last Closed: 2015-06-26 06:39:41 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:
Bug Depends On: 1203731    
Bug Blocks:    
Description Flags
Suggested fix none

Description Lubomir Rintel 2015-06-01 20:25:58 UTC
Created attachment 1033484 [details]
Suggested fix

+++ This bug was initially created as a clone of Bug #1203731 +++
> To prevent this unfortunate behavior you can of course use user_ns. However
> once you go this road note that you are entering another realm of pain with
> current user_ns implementation. 

Not really; works fairly well.

One small problem is in the rtnetlink code, where the daemon checks for uid of the originating message, where it should be checking the messages come from kernel (an unprivileged user can now manage his network namespace).

Attaching fix.

Comment 1 Fedora Update System 2015-06-18 09:14:19 UTC
avahi-0.6.31-31.fc21 has been submitted as an update for Fedora 21.

Comment 2 Fedora Update System 2015-06-18 09:17:25 UTC
avahi-0.6.31-31.fc22 has been submitted as an update for Fedora 22.

Comment 3 Fedora Update System 2015-06-21 00:22:19 UTC
Package avahi-0.6.31-31.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing avahi-0.6.31-31.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-06-26 06:39:41 UTC
avahi-0.6.31-31.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-06-26 06:41:45 UTC
avahi-0.6.31-31.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.