]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Allow group ownership of TUN/TAP devices.
authorGuido Guenther <agx@sigxcpu.org>
Tue, 3 Jul 2007 05:50:25 +0000 (22:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:16:42 +0000 (22:16 -0700)
commit2e844c3e891c8a677b1065022c96cfdfe0f76629
tree42ed72e59e73b6ec840aa4ea97a34630f3544093
parent53326300db2a810522bf4320e0e3bf90b4fdfd74
[NET]: Allow group ownership of TUN/TAP devices.

Introduce a new syscall TUNSETGROUP for group ownership setting of tap
devices. The user now is allowed to send packages if either his euid or
his egid matches the one specified via tunctl (via -u or -g
respecitvely). If both, gid and uid, are set via tunctl, both have to
match.

Signed-off-by: Guido Guenther <agx@sigxcpu.org>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
include/linux/if_tun.h