uml-utilities conflicts with udev

Bug #129254 reported by PtOLU8zjbZxlgNOiyGyd
10
Affects Status Importance Assigned to Milestone
uml-utilities (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Intrepid by PtOLU8zjbZxlgNOiyGyd

Bug Description

Binary package hint: uml-utilities

uml-utilites is somewhat broken when used with udev. It sets permissions on /dev/net/tun with a hack in /etc/network/if-pre-up.d/uml-utilities that reads (commented out as I have already applied the proposed fix to my running system):

#
# why the hell does this need to be done?
#
#chown root:uml-net /dev/net/tun
#chmod 660 /dev/net/tun

This has the inconveniece that as soon as udev loads or unloads a different module (say for a USB flash key) tun permissions immediately return to root:root

The solution is to replace that hack with a udev rules file with the proper permissions:

#/etc/udev/rules.d/40-uml-utilities.rules
KERNEL=="tun", GROUP="uml-net", MODE="0660"

Changed in uml-utilities:
status: New → Confirmed
Revision history for this message
Dyno (dyno-fu) wrote :

and even the rules is added it still may not work, check this link https://wiki.ubuntu.com/VirtualboxHostNetworkingAndWIFI, and the excerpt.

"""
UPDATE July 29: it seems that since a few updates (don't know which one unfortunately) the ownership of /dev/net/tun is reverted to root:root after each reboot so we have to chown and chmod everytime. There must be a rule in udev that we can change or create a script and link it in /etc/rc2.d. I am okay to change a udev rule IF it works, so far it does not.
Personally, I changed the ownership of /lib/udev/devices/net/tun so that /net/dev/tun is created (copied apparently) with the correct permissions. (reboot necessary afterwards unless someone has another solution)

sudo chgrp uml-net /lib/udev/devices/net/tun
sudo chmod g+rw /lib/udev/devices/net/tun
"""

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.