From 108490a7f8529aff50a0ac7897580b59a73d9845 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 14 Nov 2000 23:57:45 +0000 Subject: [PATCH] keep the CAP_SYS_RESOURCE capability on linux systems. as someone noted before (bob? brian?) this might not really be the right thing to do in a linuxthreads program. --- bin/named/unix/os.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index 9e8c32a908..22ef56da96 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.34 2000/11/08 18:58:00 mws Exp $ */ +/* $Id: os.c,v 1.35 2000/11/14 23:57:45 tale Exp $ */ #include #include @@ -32,8 +32,9 @@ #include #include -#include +#include #include +#include #include #include @@ -185,7 +186,11 @@ linux_initialprivs(void) { /* * XXX We might want to add CAP_SYS_RESOURCE, though it's not * clear it would work right given the way linuxthreads work. + * XXXDCL But since we need to be able to set the maximum number + * of files, the stack size, data size, and core dump size to + * support named.conf options, this is now being added to test. */ + caps |= (1 << CAP_SYS_RESOURCE); linux_setcaps(caps); }