Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1585 - kernel module tun has wrong device links
Summary: kernel module tun has wrong device links
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-07 08:09 UTC by Dominik Westner
Modified: 2002-09-08 03:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Westner 2002-04-07 08:09:11 UTC
Kernel: 2.4.19-r1 (also with 2.4.19) compiled with the tun/tap as module.

If you do the following:

loki root # modprobe tun
loki root # ls -l /dev/net
total 0
lr-xr-xr-x    1 root     root           12 Apr  6 11:56 tun -> misc/net/tun

Apparently the link  tun -> misc/net/tun is wrong. The correct link should 
be:
tun -> ../misc/net/tun

Don't know if this is a kernel, devfsd or config issue.

Dominik
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-04-07 20:18:47 UTC
I think it's a devfsd issue.  You may want to contact Richard Gooch and see what
he says about this.  Probably an easy fix is available.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-01 09:19:21 UTC
this is definitely a devfs issue.  a search on google reveals as much, but what
it hasn't revealed is a workaround.  people simply say use /dev/misc/net/tun in
2.4 w/devfs

can we close this bug?
Comment 3 Ulf Bartelt (RETIRED) gentoo-dev 2002-07-31 15:13:56 UTC
# please test this addition to devfsd.conf.
# on my system it looks like fixing the link.

# net/tun hotfix
LOOKUP ^net/tun$ CFUNCTION GLOBAL unlink ${mntpnt}/net/tun
LOOKUP ^net/tun$ CFUNCTION GLOBAL mksymlink ${mntpnt}/misc/net/tun
        ${mntpnt}/net/tun
REGISTER ^misc/net/tun$ CFUNCTION GLOBAL unlink ${mntpnt}/net/tun
REGISTER ^misc/net/tun$ CFUNCTION GLOBAL mksymlink ${mntpnt}/misc/net/tun
        ${mntpnt}/net/tun

# indented lines shall be joined with previous ones, sorry.
Comment 4 Dominik Westner 2002-07-31 17:05:23 UTC
this seems to fix it for me.

Comment 5 David Leadbeater 2002-08-06 17:21:52 UTC
This fix works for me, too. 
Comment 6 Ulf Bartelt (RETIRED) gentoo-dev 2002-08-12 17:48:27 UTC
<sasquach> Azarah: and when we speak of bugs...  can you look at 1585 and put
that fix in devfsd.conf somehow?
<stroke> GenBot: bug 1585 ?
<GenBot> stroke: Bug http://bugs.gentoo.org/show_bug.cgi?id=1585 nor, P2, All,
azarah@gentoo.org, NEW, kernel module tun has wrong device links
<stroke> GenBot: thanks
<GenBot> stroke: np
<Azarah> sasquach: why once again ?
<Azarah> sasquach: its an hack for a kernel problem
<Azarah> sasquach: recent kernels fix it


so please document that and close this bug.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-12 18:07:50 UTC
Its a kernel issue:

nosferatu dev # modprobe tun
nosferatu dev # ls net/
tun
nosferatu dev # ls net/ -l
total 0
crw-r-----    1 root     root      10, 200 Jan  1  1970 tun


Update to recent kernel (i have 2.4.19_rc1 ... mjc-sources ...).
Comment 8 Ulf Bartelt (RETIRED) gentoo-dev 2002-08-12 18:39:06 UTC
thanks.

so it's time to mark this bug as closed/fixed.

or is there any reason to let it in status "NEW"?
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-08 03:52:53 UTC
Yeah .. bit busy this side ;-)