Ticket #272 (closed defect: wontfix)

Opened 4 years ago

Last modified 3 years ago

avahi-autoipd cannot up the device and exits

Reported by: Diego.SantaCruz Owned by: lennart
Milestone: Component: avahi-autoipd
Keywords: Cc:

Description

avahi-autoipd drops root privileges by default but then it cannot up the device if some other program downs it after avahi-autoipd has started. It then exits.

The error message is "SIOCSIFFLAGS failed: Permission denied".

I think the solution would be to use a script through the callout mechanism to do "ip link set $IFACE up" instead of using the SIOCSIFFLAGS ioctl in interface_up().

An alternative would be to keep the CAP_NET_ADMIN capability when switching the uid, but I guess that kind of defeats the purpose of having the callout mechanism.

Change History

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to wontfix

Hmm, so after thinking about this for a while I came to the conclusion that this is nothing that should be fixed in Avahi. If people shut down the iface while avahi-autoipd is running it's their own fault. They shouldn't do this. I think the benefit of the security is more important than working around broken setups, and hence I wont change the current logic.

Note: See TracTickets for help on using tickets.