mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Comment the PR_SET_KEEPCAPS definition.
This commit is contained in:
parent
4508b24fcd
commit
d1e4b08844
1 changed files with 9 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: os.c,v 1.30 2000/08/10 00:31:58 bwelling Exp $ */
|
||||
/* $Id: os.c,v 1.31 2000/08/10 18:56:58 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -61,9 +61,17 @@ static isc_boolean_t done_setuid = ISC_FALSE;
|
|||
|
||||
#ifdef HAVE_LINUX_PRCTL_H
|
||||
#include <sys/prctl.h> /* Required for prctl(). */
|
||||
|
||||
/*
|
||||
* If the value of PR_SET_KEEPCAPS is not in <linux/prctl.h>, define it
|
||||
* here. This allows setuid() to work on systems running a new enough
|
||||
* kernel but with /usr/include/linux pointing to "standard" kernel
|
||||
* headers.
|
||||
*/
|
||||
#ifndef PR_SET_KEEPCAPS
|
||||
#define PR_SET_KEEPCAPS 8
|
||||
#endif
|
||||
|
||||
#endif /* HAVE_LINUX_PRCTL_H */
|
||||
|
||||
#ifndef SYS_capset
|
||||
|
|
|
|||
Loading…
Reference in a new issue