From d1e4b08844175357a925ddd6dcfa750cccd2b116 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 10 Aug 2000 18:56:58 +0000 Subject: [PATCH] Comment the PR_SET_KEEPCAPS definition. --- bin/named/unix/os.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index b01f6c23c0..915f019234 100644 --- a/bin/named/unix/os.c +++ b/bin/named/unix/os.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.30 2000/08/10 00:31:58 bwelling Exp $ */ +/* $Id: os.c,v 1.31 2000/08/10 18:56:58 bwelling Exp $ */ #include @@ -61,9 +61,17 @@ static isc_boolean_t done_setuid = ISC_FALSE; #ifdef HAVE_LINUX_PRCTL_H #include /* Required for prctl(). */ + +/* + * If the value of PR_SET_KEEPCAPS is not in , define it + * here. This allows setuid() to work on systems running a new enough + * kernel but with /usr/include/linux pointing to "standard" kernel + * headers. + */ #ifndef PR_SET_KEEPCAPS #define PR_SET_KEEPCAPS 8 #endif + #endif /* HAVE_LINUX_PRCTL_H */ #ifndef SYS_capset