public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question on /dev/tap0
@ 2001-03-25 22:58 James Stevenson
  2001-03-26  0:27 ` Lennert Buytenhek
  0 siblings, 1 reply; 3+ messages in thread
From: James Stevenson @ 2001-03-25 22:58 UTC (permalink / raw)
  To: Linux Kernel


Hi

would somebody be able to explain to me
when you try to open /dev/tap0 which is a
character device file which has the permissions

File: "tap0"
Size: 0            Filetype: Character Device
Mode: (0666/crw-rw-rw-)

when tried to open

[mistral@linux /dev]$ cat tap0
cat: tap0: Operation not permitted

and strace shows that it gets a permission error
open("tap0", O_RDONLY|0x8000)           = -1 EPERM

is it just me or is this either
a) a bug
b) very misleading

thanks
	James

-- 
---------------------------------------------
Check Out: http://stev.org
E-Mail: mistral@stev.org
 10:50pm  up 58 min,  3 users,  load average: 0.30, 0.11, 0.03


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question on /dev/tap0
  2001-03-25 22:58 question on /dev/tap0 James Stevenson
@ 2001-03-26  0:27 ` Lennert Buytenhek
  2001-03-26  9:52   ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Lennert Buytenhek @ 2001-03-26  0:27 UTC (permalink / raw)
  To: James Stevenson; +Cc: Linux Kernel


Intended behaviour. This is because of the access checks done in the
netlink code. Misleading, yes.


On Sun, 25 Mar 2001, James Stevenson wrote:

>
> Hi
>
> would somebody be able to explain to me
> when you try to open /dev/tap0 which is a
> character device file which has the permissions
>
> File: "tap0"
> Size: 0            Filetype: Character Device
> Mode: (0666/crw-rw-rw-)
>
> when tried to open
>
> [mistral@linux /dev]$ cat tap0
> cat: tap0: Operation not permitted
>
> and strace shows that it gets a permission error
> open("tap0", O_RDONLY|0x8000)           = -1 EPERM
>
> is it just me or is this either
> a) a bug
> b) very misleading
>
> thanks
> 	James
>
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question on /dev/tap0
  2001-03-26  0:27 ` Lennert Buytenhek
@ 2001-03-26  9:52   ` David Woodhouse
  0 siblings, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2001-03-26  9:52 UTC (permalink / raw)
  To: Lennert Buytenhek; +Cc: James Stevenson, Linux Kernel


buytenh@math.leidenuniv.nl said:
>  Intended behaviour. This is because of the access checks done in the
> netlink code. Misleading, yes. 

I fixed the netlink code so it allowed this to work at one point. Search 
l-k archives for it.

--
dwmw2



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-26  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-25 22:58 question on /dev/tap0 James Stevenson
2001-03-26  0:27 ` Lennert Buytenhek
2001-03-26  9:52   ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox