lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 04 May 2009 15:58:05 +0100
From:	David Woodhouse <dwmw2@...radead.org>
To:	Stephen Hemminger <shemminger@...tta.com>
Cc:	netdev@...r.kernel.org, Mark McLoughlin <markmc@...hat.com>
Subject: Re: tun: add tun_flags, owner, group attributes in sysfs

On Mon, 2009-05-04 at 07:47 -0700, Stephen Hemminger wrote:
> Netlink please not sysfs. 

That seems like overkill in this case.

> also, any sysfs attributes have to handle unregistration issues.
>       ( sleep 900; read owner ) </sys/class/net/tun0/owner &
>       rmmod tun

That gets handled for you automatically...

[root@...ersburg ~]# ( sleep 900 ; read owner; echo $owner ) < /sys/class/net/tun0/owner &
[1] 4728
[root@...ersburg ~]# ./ip tuntap del tun0 mode tun
[root@...ersburg ~]# rmmod tun
[root@...ersburg ~]# killall sleep
-bash: line 28:  4729 Terminated              sleep 900
[root@...ersburg ~]# -bash: line 28: read: read error: 0: No such device

-- 
dwmw2

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ