* udev /dev/net/tun bug
@ 2004-07-06 2:05 Alexander E. Patrakov
2004-07-06 2:28 ` Greg KH
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Alexander E. Patrakov @ 2004-07-06 2:05 UTC (permalink / raw)
To: linux-hotplug
To reproduce:
cd /etc/hotplug
modprobe tun
udevstart
Result:
The following synthetic "net" hotplug event is received:
=======
DEVPATH=/class/misc/tun
UDEV_NO_SLEEP=1
ACTIONd
PWD=/etc/hotplug
DEVNAME=/dev/net/tun
SHLVL=2
INTERFACE=/dev/net/tun
_=/usr/bin/env
=======
This event is bogus, because there is really no interface, but a
character device /dev/net/tun is involved. You may be interested in the
following information:
udevinfo -a -p /class/misc/tun
device '/sys/class/misc/tun' has major:minor 10:200
looking at class device '/sys/class/misc/tun':
SYSFS{dev}="10:200"
--
Alexander E. Patrakov
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: udev /dev/net/tun bug
2004-07-06 2:05 udev /dev/net/tun bug Alexander E. Patrakov
@ 2004-07-06 2:28 ` Greg KH
2004-07-06 5:48 ` Kevin P. Fleming
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-07-06 2:28 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jul 06, 2004 at 08:05:41AM +0600, Alexander E. Patrakov wrote:
> To reproduce:
>
> cd /etc/hotplug
> modprobe tun
> udevstart
>
> Result:
>
> The following synthetic "net" hotplug event is received:
No, it's a real event.
> DEVPATH=/class/misc/tun
> UDEV_NO_SLEEP=1
> ACTIONd
> PWD=/etc/hotplug
> DEVNAME=/dev/net/tun
> SHLVL=2
> INTERFACE=/dev/net/tun
> _=/usr/bin/env
> =======
>
> This event is bogus, because there is really no interface, but a
> character device /dev/net/tun is involved.
Exactly, that's why this event is important. Without it, udev would not
be able to create the character device.
What is the issue you are having with this?
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: udev /dev/net/tun bug
2004-07-06 2:05 udev /dev/net/tun bug Alexander E. Patrakov
2004-07-06 2:28 ` Greg KH
@ 2004-07-06 5:48 ` Kevin P. Fleming
2004-07-06 9:26 ` Alexander E. Patrakov
2004-07-09 17:47 ` Greg KH
3 siblings, 0 replies; 5+ messages in thread
From: Kevin P. Fleming @ 2004-07-06 5:48 UTC (permalink / raw)
To: linux-hotplug
Greg KH wrote:
> Exactly, that's why this event is important. Without it, udev would not
> be able to create the character device.
>
> What is the issue you are having with this?
Agreed... I have 2.6.7 system here running udev-028 and OpenVPN, which
uses /dev/net/tun to create tunnel interfaces, and it works just fine.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: udev /dev/net/tun bug
2004-07-06 2:05 udev /dev/net/tun bug Alexander E. Patrakov
2004-07-06 2:28 ` Greg KH
2004-07-06 5:48 ` Kevin P. Fleming
@ 2004-07-06 9:26 ` Alexander E. Patrakov
2004-07-09 17:47 ` Greg KH
3 siblings, 0 replies; 5+ messages in thread
From: Alexander E. Patrakov @ 2004-07-06 9:26 UTC (permalink / raw)
To: linux-hotplug
Greg KH wrote:
> On Tue, Jul 06, 2004 at 08:05:41AM +0600, Alexander E. Patrakov wrote:
>
>>To reproduce:
>>
>>cd /etc/hotplug
>>modprobe tun
>>udevstart
>>
>>Result:
>>
>>The following synthetic "net" hotplug event is received:
>
> No, it's a real event.
Why do I re-receive that when I re-run udevstart? AFAIK just re-running
udevstart doesn't produce any real hotplug events.
>>DEVPATH=/class/misc/tun
>>UDEV_NO_SLEEP=1
>>ACTIONd
>>PWD=/etc/hotplug
>>DEVNAME=/dev/net/tun
>>SHLVL=2
>>INTERFACE=/dev/net/tun
>>_=/usr/bin/env
>>=======
>>
>>This event is bogus, because there is really no interface, but a
>>character device /dev/net/tun is involved.
>
> Exactly, that's why this event is important. Without it, udev would not
> be able to create the character device.
>
> What is the issue you are having with this?
Yes, this is exactly the event due to which udev creates the
/dev/net/tun character device :) However, it also gets dispatched to
/etc/hotplug/net.agent for some reason.
--
Alexander E. Patrakov
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: udev /dev/net/tun bug
2004-07-06 2:05 udev /dev/net/tun bug Alexander E. Patrakov
` (2 preceding siblings ...)
2004-07-06 9:26 ` Alexander E. Patrakov
@ 2004-07-09 17:47 ` Greg KH
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-07-09 17:47 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jul 06, 2004 at 03:26:44PM +0600, Alexander E. Patrakov wrote:
> Yes, this is exactly the event due to which udev creates the
> /dev/net/tun character device :) However, it also gets dispatched to
> /etc/hotplug/net.agent for some reason.
It does so because of the "net" in the class path. No harm done.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-07-09 17:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-06 2:05 udev /dev/net/tun bug Alexander E. Patrakov
2004-07-06 2:28 ` Greg KH
2004-07-06 5:48 ` Kevin P. Fleming
2004-07-06 9:26 ` Alexander E. Patrakov
2004-07-09 17:47 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).