mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 15:09:59 -04:00
remove CAP_SYS_RESOURCE
This commit is contained in:
parent
54e587cfac
commit
5e4b7294d8
1 changed files with 6 additions and 5 deletions
|
|
@ -76,14 +76,16 @@ linux_initialprivs(void) {
|
|||
|
||||
/*
|
||||
* Drop all privileges except the abilities to bind() to privileged
|
||||
* ports, set resource limits, and chroot().
|
||||
* ports and chroot().
|
||||
*/
|
||||
|
||||
caps = 0;
|
||||
caps |= (1 << CAP_NET_BIND_SERVICE);
|
||||
caps |= (1 << CAP_SYS_RESOURCE);
|
||||
caps |= (1 << CAP_SYS_CHROOT);
|
||||
|
||||
/*
|
||||
* XXX We might want to add CAP_SYS_RESOURCE, though it's not
|
||||
* clear it would work right given the way linuxthreads work.
|
||||
*/
|
||||
linux_setcaps(caps);
|
||||
}
|
||||
|
||||
|
|
@ -93,12 +95,11 @@ linux_minprivs(void) {
|
|||
|
||||
/*
|
||||
* Drop all privileges except the abilities to bind() to privileged
|
||||
* ports and set resource limits.
|
||||
* ports.
|
||||
*/
|
||||
|
||||
caps = 0;
|
||||
caps |= (1 << CAP_NET_BIND_SERVICE);
|
||||
caps |= (1 << CAP_SYS_RESOURCE);
|
||||
|
||||
linux_setcaps(caps);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue