diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-02 20:42:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-02 20:42:27 +0000 |
commit | 773d3f588ff2d8bb4101f2019a36e682a08f382e (patch) | |
tree | 018e9b413a07b764bab469b24a97872ecd18e12a /sys | |
parent | 982ffbb436a049fc335c8998cf1af71edf3682e6 (diff) |
kern_tame.c
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_tame.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c index 0966c380698..9c10f8320f8 100644 --- a/sys/kern/kern_tame.c +++ b/sys/kern/kern_tame.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_tame.c,v 1.51 2015/10/02 05:30:30 deraadt Exp $ */ +/* $OpenBSD: kern_tame.c,v 1.52 2015/10/02 20:42:26 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -929,7 +929,8 @@ tame_socket_check(struct proc *p, int domain) return (0); if ((p->p_p->ps_tame & (TAME_INET | TAME_UNIX))) return (0); - if ((p->p_p->ps_tame & TAME_DNS_ACTIVE) && domain == AF_INET) + if ((p->p_p->ps_tame & TAME_DNS_ACTIVE) && + (domain == AF_INET || domain == AF_INET6)) return (0); return (EPERM); } |