mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-21 15:21:05 -05:00
and include...
git-svn-id: file:///svn/unbound/trunk@1476 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
205f6d1afc
commit
95f5b577d4
1 changed files with 4 additions and 1 deletions
|
|
@ -63,6 +63,9 @@
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_LOGIN_CAP_H
|
||||||
|
#include <login_cap.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_MINI_EVENT
|
#ifdef USE_MINI_EVENT
|
||||||
# ifdef USE_WINSOCK
|
# ifdef USE_WINSOCK
|
||||||
|
|
@ -465,7 +468,7 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
|
||||||
* also resource limits from login config, but we
|
* also resource limits from login config, but we
|
||||||
* still call setresuid, setresgid to be sure to set all uid*/
|
* still call setresuid, setresgid to be sure to set all uid*/
|
||||||
if(setusercontext(NULL, pwd, uid, LOGIN_SETALL) != 0)
|
if(setusercontext(NULL, pwd, uid, LOGIN_SETALL) != 0)
|
||||||
fatal_exit("could not setusercontext %s: %s",
|
log_warn("unable to setusercontext %s: %s",
|
||||||
cfg->username, strerror(errno));
|
cfg->username, strerror(errno));
|
||||||
#else /* !HAVE_SETUSERCONTEXT */
|
#else /* !HAVE_SETUSERCONTEXT */
|
||||||
# ifdef HAVE_INITGROUPS
|
# ifdef HAVE_INITGROUPS
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue