From 1c4ef0b808d3d38232aeeb1cebb7e9a43def42c5 Mon Sep 17 00:00:00 2001 From: "dtucker@openbsd.org" Date: Sun, 23 Oct 2016 22:04:05 +0000 Subject: upstream commit Factor out "can bind to low ports" check into its own function. This will make it easier for Portable to support platforms with permissions models other than uid==0 (eg bz#2625). ok djm@, "doesn't offend me too much" deraadt@. Upstream-ID: 86213df4183e92b8f189a6d2dac858c994bfface --- misc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc.h') diff --git a/misc.h b/misc.h index 8f954198b..3578e8ef5 100644 --- a/misc.h +++ b/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.59 2016/09/12 01:22:38 deraadt Exp $ */ +/* $OpenBSD: misc.h,v 1.60 2016/10/23 22:04:05 dtucker Exp $ */ /* * Author: Tatu Ylonen @@ -30,6 +30,7 @@ struct Forward { }; int forward_equals(const struct Forward *, const struct Forward *); +int bind_permitted(int, uid_t); /* Common server and client forwarding options. */ struct ForwardOptions { -- cgit v1.2.3