]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1838. [cleanup] Don't allow Linux capabilities to be inherited.
authorMark Andrews <marka@isc.org>
Fri, 20 May 2005 01:37:03 +0000 (01:37 +0000)
committerMark Andrews <marka@isc.org>
Fri, 20 May 2005 01:37:03 +0000 (01:37 +0000)
                        [RT #13707]

CHANGES
bin/named/unix/os.c
doc/private/branches

diff --git a/CHANGES b/CHANGES
index ea4c1e16a6712ae76c488bc098fd072465babb41..b636576dc057c62b0318800888bf533b51de1bc5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -71,7 +71,8 @@
 
 1839.  [bug]           <isc/hash.h> was not being installed.
 
-1838.  [placeholder]   rt13707
+1838.  [cleanup]       Don't allow Linux capabilities to be inherited.
+                       [RT #13707]
 
 1837.  [bug]           Compile time option ISC_FACILITY was not effective
                        for 'named -u <user>'.  [RT #13714]
index e453c7b488aa797dabb7c93c7a7ad4f40b82b892..43907bf1ef35824384c80296ddf712177ded3c23 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: os.c,v 1.74 2005/04/27 04:56:02 sra Exp $ */
+/* $Id: os.c,v 1.75 2005/05/20 01:37:03 marka Exp $ */
 
 /*! \file */
 
@@ -164,7 +164,7 @@ linux_setcaps(unsigned int caps) {
        memset(&cap, 0, sizeof(cap));
        cap.effective = caps;
        cap.permitted = caps;
-       cap.inheritable = caps;
+       cap.inheritable = 0;
        if (syscall(SYS_capset, &caphead, &cap) < 0) {
                isc__strerror(errno, strbuf, sizeof(strbuf));
                ns_main_earlyfatal("capset failed: %s:"
index 94c74fbddde32f57205ec9dafcec4dca0861a322..092178d01b36ea5605d695f37c94ba352e5c9800 100644 (file)
@@ -32,8 +32,8 @@ rt13587                               review
 rt13606                                open    marka   // TSIG SHA256
 rt13662                                new     
 rt13694                                new     
-rt13707                                new     
-rt13714                                13714   
+rt13707                                closed  
+rt13714                                closed  
 rt13753                                new     
 rt13754                                new     
 rt13771                                new