Re: udev-139 and file permissions of /dev/net/tun

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Attila wrote:
> Hi,
>
> i use a script to prepare a bridged network for a kvm session and therefore i
> have this line in /etc/udev/rules.d/01-attila.rules:
>
> KERNEL=="tun", NAME="net/%k", MODE="0660", GROUP="network"
>
> After upgrading udev my file permissions of the new persistent /dev/net/tun
> looks so after booting up:
>
> crw-rw-rw- 1 root root 10, 200  8. Mär 00:43 /dev/net/tun
>
> I play with this lines in /etc/udev/permissions.d/00-my.permissions:
>
> a) tun:root:network:0660
> b) net/tun:root:network:0660
>
> I reboot even after changing the line but there is no change. If i do
> a "modprobe tun" there be the right permissions:
>
> crw-rw---- 1 root network 10, 200  8. Mär 00:43 /dev/net/tun
>
> So my questions is how and/or where can i control the file permissions of the
> persistent devices from the new udev?
>
> This is definitly not bad, i want more to know what i have overseen.-)
>
> See you, Attila
>
>
>   
The tun dev is statically created, and the perms are adjusted in
/lib/udev/rules.d/50-udev-default.rules then if you need to adjust these
perms make a file >50 in /etc/udev/rules.d/ like this:

[root@arch32 ~]# cat /etc/udev/rules.d/99-myperms.rules
KERNEL=="tun", NAME="net/%k", MODE="0660", GROUP="network"


[root@arch32 ~]# ls -l /dev/net/tun
crw-rw-rw- 1 root root 10, 200 2009-03-07 21:43 /dev/net/tun
[root@arch32 ~]# modprobe tun
[root@arch32 ~]# ls -l /dev/net/tun
crw-rw---- 1 root network 10, 200 2009-03-07 21:43 /dev/net/tun

;)

-- 
Gerardo Exequiel Pozzi ( djgera )
http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219  76ED 39AB 221B 1B8C 330D



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux