]> git.baikalelectronics.ru Git - kernel.git/commit
tun: avoid owner checks on IFF_ATTACH_QUEUE
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 10 Jan 2013 01:31:08 +0000 (01:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 22:26:43 +0000 (14:26 -0800)
commitef0d68986ac512fafa4a8930fc41a89ba8f12eef
treedd0785b9710e271f876eb72063c803ca13b69e74
parentc0d570cfdb6cb2d54b923b9093db575d49542d0a
tun: avoid owner checks on IFF_ATTACH_QUEUE

At the moment, we check owner when we enable queue in tun.
This seems redundant and will break some valid uses
where fd is passed around: I think TUNSETOWNER is there
to prevent others from attaching to a persistent device not
owned by them. Here the fd is already attached,
enabling/disabling queue is more like read/write.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c