mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '1090-fix-unable-to-set-effective-uid-to-0-fixup' into 'master'
Hide setperms when not in use Closes #1090 See merge request isc-projects/bind9!3443
This commit is contained in:
commit
0bb2bda169
1 changed files with 2 additions and 0 deletions
|
|
@ -626,6 +626,7 @@ error:
|
|||
return (-1);
|
||||
}
|
||||
|
||||
#if !HAVE_SYS_CAPABILITY_H
|
||||
static void
|
||||
setperms(uid_t uid, gid_t gid) {
|
||||
#if defined(HAVE_SETEGID) || defined(HAVE_SETRESGID)
|
||||
|
|
@ -673,6 +674,7 @@ setperms(uid_t uid, gid_t gid) {
|
|||
}
|
||||
#endif /* if defined(HAVE_SETEUID) */
|
||||
}
|
||||
#endif /* !HAVE_SYS_CAPABILITY_H */
|
||||
|
||||
FILE *
|
||||
named_os_openfile(const char *filename, mode_t mode, bool switch_user) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue