Commit 8ffd9a9b authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Remove PR_SET_DUMPABLE check as it is available since Linux 2.3.20

parent 8e4cc152
...@@ -444,7 +444,7 @@ named_os_changeuser(void) { ...@@ -444,7 +444,7 @@ named_os_changeuser(void) {
named_main_earlyfatal("setuid(): %s", strbuf); named_main_earlyfatal("setuid(): %s", strbuf);
} }
#if defined(PR_SET_DUMPABLE) #if defined(HAVE_SYS_CAPABILITY_H)
/* /*
* Restore the ability of named to drop core after the setuid() * Restore the ability of named to drop core after the setuid()
* call has disabled it. * call has disabled it.
...@@ -454,8 +454,7 @@ named_os_changeuser(void) { ...@@ -454,8 +454,7 @@ named_os_changeuser(void) {
named_main_earlywarning("prctl(PR_SET_DUMPABLE) failed: %s", named_main_earlywarning("prctl(PR_SET_DUMPABLE) failed: %s",
strbuf); strbuf);
} }
#endif
#if defined(HAVE_SYS_CAPABILITY_H)
linux_minprivs(); linux_minprivs();
#endif #endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment