My ethertap device seems to be completely unusable except by root. I was under
the impression that all I have to do is set the owner or mode bits to allow
non-root users to access it, but that doesn't seem to work:
$ ls -l /dev/tap0
crwxrwxrwx 1 stark tap 36, 16 Aug 6 22:26 /dev/tap0
$ whoami
stark
$ cat /dev/tap0
cat: /dev/tap0: Operation not permitted
$ strace -e open cat /dev/tap0
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/dev/tap0", O_RDONLY) = -1 EPERM (Operation not permitted)
cat: /dev/tap0: Operation not permitted
The strange thing is that as I read the device driver code open should never
fail except with ENOBUFS so I really don't get what's going on here.
I have tried it with the interface ifconfig'd up, down, multicast -multicast
arp noarp, etc. No combination works.
tap0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00
inet addr:10.2.0.1 Bcast:10.2.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
Interrupt:5
--
greg
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]