diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-19 15:37:38 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-19 15:37:38 +0000 |
commit | ffd6f583e595712e6b925bae9da5e3499465d28f (patch) | |
tree | 7d6dae020819ffe52ced9064ddd96d8a917b0883 /usr.sbin/bind/bin/named | |
parent | 630de13bd1ad27a3337f998f309abeba98ec9219 (diff) |
unbreak -t; ok jakob, henning
Diffstat (limited to 'usr.sbin/bind/bin/named')
-rw-r--r-- | usr.sbin/bind/bin/named/include/named/globals.h | 2 | ||||
-rw-r--r-- | usr.sbin/bind/bin/named/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bind/bin/named/include/named/globals.h b/usr.sbin/bind/bin/named/include/named/globals.h index 157f0e44bc2..8dd57568461 100644 --- a/usr.sbin/bind/bin/named/include/named/globals.h +++ b/usr.sbin/bind/bin/named/include/named/globals.h @@ -100,7 +100,7 @@ EXTERN isc_resourcevalue_t ns_g_initopenfiles INIT(0); * Misc. */ EXTERN isc_boolean_t ns_g_coreok INIT(ISC_TRUE); -EXTERN const char * ns_g_chrootdir INIT("/var/named"); +EXTERN const char * ns_g_chrootdir INIT(NULL); EXTERN isc_boolean_t ns_g_foreground INIT(ISC_FALSE); EXTERN isc_boolean_t ns_g_logstderr INIT(ISC_FALSE); diff --git a/usr.sbin/bind/bin/named/main.c b/usr.sbin/bind/bin/named/main.c index 10a7a1e2ddc..81ba46a1f7f 100644 --- a/usr.sbin/bind/bin/named/main.c +++ b/usr.sbin/bind/bin/named/main.c @@ -617,7 +617,7 @@ setup(void) { * Privilege separation */ isc_priv_init(ns_g_logstderr); - isc_drop_privs(ns_g_username); + isc_drop_privs(ns_g_username, ns_g_chrootdir); isc_socket_privsep(1); /* process is now unprivileged and inside a chroot */ |