Bug 1227052 - [PATCH] avahi-daemon won't pick up rtnetlink messages in a netns & userns
Summary: [PATCH] avahi-daemon won't pick up rtnetlink messages in a netns & userns
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: avahi
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1203731
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-01 20:25 UTC by Lubomir Rintel
Modified: 2015-06-26 06:41 UTC (History)
5 users (show)

Fixed In Version: avahi-0.6.31-31.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of: 1203731
Environment:
Last Closed: 2015-06-26 06:39:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Suggested fix (1.21 KB, text/plain)
2015-06-01 20:25 UTC, Lubomir Rintel
no flags Details

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.
https://admin.fedoraproject.org/updates/avahi-0.6.31-31.fc21

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.
https://admin.fedoraproject.org/updates/avahi-0.6.31-31.fc22

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:
https://admin.fedoraproject.org/updates/FEDORA-2015-10326/avahi-0.6.31-31.fc22
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.


Note You need to log in before you can comment on or make changes to this bug.