Fix linux privilege dropping.

This commit is contained in:
Bob Halley
1999-10-31 02:05:31 +00:00
parent a5cda71d84
commit 4344875f60

View File

@@ -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);