Commit 31a71adf authored by Mark Andrews's avatar Mark Andrews
Browse files

1725. [port] linux: update error message on interaction of threads,

                        capabilities and setuid support (named -u). [RT #12541]
parent 722ebc3a
......@@ -35,7 +35,8 @@
1726. [port] aix5: add support for aix5
1725. [placeholder] rt12541
1725. [port] linux: update error message on interaction of threads,
capabilities and setuid support (named -u). [RT #12541]
1724. [bug] Look for DNSKEY records with "dig +sigtrace".
[RT #12557]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: os.c,v 1.70 2004/09/29 06:45:37 marka Exp $ */
/* $Id: os.c,v 1.71 2004/10/07 02:33:31 marka Exp $ */
#include <config.h>
#include <stdarg.h>
......@@ -464,10 +464,14 @@ ns_os_changeuser(void) {
#ifdef HAVE_LINUXTHREADS
#ifdef HAVE_LINUX_CAPABILITY_H
if (!non_root_caps)
ns_main_earlyfatal("-u with Linux threads not supported: "
"requires kernel support for "
"prctl(PR_SET_KEEPCAPS)");
#else
ns_main_earlyfatal("-u with Linux threads not supported: "
"no capabilities support or capabilities "
"disabled at build time");
#endif
ns_main_earlyfatal(
"-u not supported on Linux kernels older than "
"2.3.99-pre3 or 2.2.18 when using threads");
#endif
if (setgid(runas_pw->pw_gid) < 0) {
......
Supports Markdown
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