diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-13 16:09:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-13 16:09:25 +0000 |
commit | db5f9a203ccd7157a14c383dbca6ea3308cd47c2 (patch) | |
tree | fa6a9a2ed993d711489ab6242b991af39b727f0b /sys/kern | |
parent | e46f546d959cf23c5028425020fea16d08010ab7 (diff) |
allow getsockopt IP_RECVDSTPORT & IPV6_RECVDSTPORT for an "inet" pledge
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_pledge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index d898d77d186..af54fb7dd01 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.18 2015/10/13 00:03:42 doug Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.19 2015/10/13 16:09:24 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -1142,6 +1142,7 @@ pledge_setsockopt_check(struct proc *p, int level, int optname) case IP_MINTTL: case IP_PORTRANGE: case IP_RECVDSTADDR: + case IP_RECVDSTPORT: return (0); case IP_MULTICAST_IF: case IP_ADD_MEMBERSHIP: @@ -1159,6 +1160,7 @@ pledge_setsockopt_check(struct proc *p, int level, int optname) case IPV6_RECVHOPLIMIT: case IPV6_PORTRANGE: case IPV6_RECVPKTINFO: + case IPV6_RECVDSTPORT: #ifdef notyet case IPV6_V6ONLY: #endif |