Bugzilla – Bug 444
setusercontext is called too late
Last modified: 2012-04-05 11:30:41 CEST
Created attachment 204 [details]
setusercontext before chroot
setusercontext() is called too late, at least on OpenBSD it needs /etc/login.conf and doesn't have access to it once chrooted.
Apr 3 19:10:52 symphytum unbound: cannot stat /etc/login.conf: No such file or directory
Apr 3 19:10:52 symphytum unbound: could not set user environment: No such file or directory
Apr 3 19:10:52 symphytum unbound: [24594:0] warning: unable to setusercontext _unbound: No such file or directory
Attached diff (submitted by Bjorn Ketelaars) moves it up above the chroot, as was also done in NSD r3151.
Patch in svn trunk. Thanks for the report and thanks to Bjorn for the patch :-)