mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- chdir to / after chroot call (suggested by Camiel Dobbelaar).
git-svn-id: file:///svn/unbound/trunk@2764 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b44780b22c
commit
1ade6965b2
2 changed files with 6 additions and 0 deletions
|
|
@ -539,6 +539,9 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
|
||||||
if(chroot(cfg->chrootdir))
|
if(chroot(cfg->chrootdir))
|
||||||
fatal_exit("unable to chroot to %s: %s",
|
fatal_exit("unable to chroot to %s: %s",
|
||||||
cfg->chrootdir, strerror(errno));
|
cfg->chrootdir, strerror(errno));
|
||||||
|
if(chdir("/"))
|
||||||
|
fatal_exit("unable to chdir to / in chroot %s: %s",
|
||||||
|
cfg->chrootdir, strerror(errno));
|
||||||
verbose(VERB_QUERY, "chroot to %s", cfg->chrootdir);
|
verbose(VERB_QUERY, "chroot to %s", cfg->chrootdir);
|
||||||
if(strncmp(*cfgfile, cfg->chrootdir,
|
if(strncmp(*cfgfile, cfg->chrootdir,
|
||||||
strlen(cfg->chrootdir)) == 0)
|
strlen(cfg->chrootdir)) == 0)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
21 September 2012: Wouter
|
||||||
|
- chdir to / after chroot call (suggested by Camiel Dobbelaar).
|
||||||
|
|
||||||
17 September 2012: Wouter
|
17 September 2012: Wouter
|
||||||
- patch_rsamd5_enable.diff: this patch enables RSAMD5 validation
|
- patch_rsamd5_enable.diff: this patch enables RSAMD5 validation
|
||||||
otherwise it is treated as insecure. The RSAMD5 algorithm is
|
otherwise it is treated as insecure. The RSAMD5 algorithm is
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue