From 86e0e2fdfa197c03aa14538eb609a65efaad95bd Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 10 Jul 2000 22:07:58 +0000 Subject: [PATCH] pullup: 299. [cleanup] Get the user and group information before changing the root directory, so the administrator does not need to keep a copy of the user and group databases in the chroot'ed environment. Suggested by Hakan Olsson. --- bin/named/unix/include/named/os.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/named/unix/include/named/os.h b/bin/named/unix/include/named/os.h index afe7c6d87e..67a33bf25f 100644 --- a/bin/named/unix/include/named/os.h +++ b/bin/named/unix/include/named/os.h @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: os.h,v 1.7 2000/06/22 21:49:58 tale Exp $ */ +/* $Id: os.h,v 1.7.2.1 2000/07/10 22:07:58 gson Exp $ */ #ifndef NS_OS_H #define NS_OS_H 1 @@ -32,10 +32,13 @@ void ns_os_chroot(const char *root); void -ns_os_changeuser(const char *username); +ns_os_inituserinfo(const char *username); void -ns_os_minprivs(const char *username); +ns_os_changeuser(void); + +void +ns_os_minprivs(void); void ns_os_writepidfile(const char *filename);