From 4344875f6065edcaedc98ed5ae9c7475f9f0ae21 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 31 Oct 1999 02:05:31 +0000 Subject: [PATCH] Fix linux privilege dropping. --- bin/named/unix/os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index e20b92817f..48451250f2 100644 --- a/bin/named/unix/os.c +++ b/bin/named/unix/os.c @@ -54,7 +54,7 @@ linux_dropprivs() { * privileged ports. */ - caps = CAP_NET_BIND_SERVICE; + caps = 1 << CAP_NET_BIND_SERVICE; memset(&caphead, 0, sizeof caphead); caphead.version = _LINUX_CAPABILITY_VERSION; @@ -86,7 +86,7 @@ ns_os_init(void) { setup_syslog(); #ifdef HAVE_LINUX_CAPABILITY_H - /* linux_dropprivs(); */ + linux_dropprivs(); #endif return (ISC_R_SUCCESS);