diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-22 05:44:28 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-22 05:44:28 +0000 |
commit | 1855230e93e1e431f26b80ff4f7d864798452e1a (patch) | |
tree | 393f5b13a20a3badfc6c7cf29d6ef813490e9b77 | |
parent | a7071fb4b3a7688592a8a02ffba742f02226a152 (diff) |
Don't bother calling suser() in tunopen().
"Sure" deraadt@
-rw-r--r-- | sys/net/if_tun.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 2e4b3ee9391..ba9ce52790d 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.107 2010/07/08 08:40:29 yasuoka Exp $ */ +/* $OpenBSD: if_tun.c,v 1.108 2010/09/22 05:44:27 matthew Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -343,9 +343,6 @@ tunopen(dev_t dev, int flag, int mode, struct proc *p) struct ifnet *ifp; int error, s; - if ((error = suser(p, 0)) != 0) - return (error); - if ((tp = tun_lookup(minor(dev))) == NULL) { /* create on demand */ char xname[IFNAMSIZ]; |