[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)
commit8c644623fe7e41f59fe97cdf666cba3cb7ced7d8
tree42ed72e59e73b6ec840aa4ea97a34630f3544093
parent0ba48053831d5b89ee2afaefaae1c06eae80cb05
[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