better chroot support, and also default chroot and userchange.

git-svn-id: file:///svn/unbound/trunk@723 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-10-31 10:56:31 +00:00
parent 75c30382ba
commit 2e9785cfb5
25 changed files with 63 additions and 43 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ main(int argc, char* argv[])
usage();
return 1;
}
log_init(NULL, 0);
log_init(NULL, 0, NULL);
log_ident_set("lock-verify");
/* init */
all_locks = rbtree_create(order_lock_cmp);
+1 -1
View File
@@ -236,7 +236,7 @@ process_nsec3(int argc, char* argv[])
/** main program */
int main(int argc, char* argv[])
{
log_init(NULL, 0);
log_init(NULL, 0, NULL);
if(argc != 6) {
usage();
}
+3 -1
View File
@@ -138,6 +138,8 @@ setup_config(FILE* in, char* configfile, int* lineno,
/* some basic settings to not pollute the host system */
fprintf(cfg, "server: use-syslog: no\n");
fprintf(cfg, " directory: \"\"\n");
fprintf(cfg, " chroot: \"\"\n");
fprintf(cfg, " username: \"\"\n");
while(fgets(line, MAX_LINE_LEN-1, in)) {
parse = line;
(*lineno)++;
@@ -207,7 +209,7 @@ main(int argc, char* argv[])
char* init_optarg = optarg;
struct replay_scenario* scen = NULL;
log_init(NULL, 0);
log_init(NULL, 0, NULL);
log_info("Start of %s testbound program.", PACKAGE_STRING);
/* determine commandline options for the daemon */
cfgfile[0] = 0;
+1 -1
View File
@@ -228,7 +228,7 @@ rnd_test()
int
main(int argc, char* argv[])
{
log_init(NULL, 0);
log_init(NULL, 0, NULL);
if(argc != 1) {
printf("usage: %s\n", argv[0]);
printf("\tperforms unit tests.\n");