Commit d119051e authored by Brian Wellington's avatar Brian Wellington
Browse files

667. [bug] On Linux, running named with the -u option and a

                        non-world-readable configuration file didn't work.
                        [RT #626]
parent c8616286
667. [bug] On Linux, running named with the -u option and a
non-world-readable configuration file didn't work.
[RT #626]
666. [bug] If a request sent by dig is longer than 512 bytes,
use TCP.
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: os.c,v 1.36 2000/12/14 18:29:57 marka Exp $ */
/* $Id: os.c,v 1.37 2001/01/09 00:10:42 bwelling Exp $ */
#include <config.h>
#include <stdarg.h>
......@@ -183,6 +183,12 @@ linux_initialprivs(void) {
*/
caps |= (1 << CAP_SETGID);
/*
* Without this, we run into problems reading a configuration file
* owned by a non-root user and non-world-readable on startup.
*/
caps |= (1 << CAP_DAC_READ_SEARCH);
/*
* XXX We might want to add CAP_SYS_RESOURCE, though it's not
* clear it would work right given the way linuxthreads work.
......
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