The branch, v3-5-test has been updated
       via  1d61fe6 s3:lib/ctdbd_conn: try ctdbd_init_connection() as root (bug 
#8684)
      from  93c76f9 Fix bug #8686 - Packet validation checks can be done before 
length validation causing uninitialized memory read. (cherry picked from commit 
24ac26ddfd9ee8841d1984e710a4dfe535b9abcf)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 1d61fe68230dc307c107b9eabf9583f8571f5d61
Author: Stefan Metzmacher <[email protected]>
Date:   Fri Dec 23 14:45:45 2011 +0100

    s3:lib/ctdbd_conn: try ctdbd_init_connection() as root (bug #8684)
    
    ctdbd_traverse is only called if the main db_context is already
    open. So if we could get to information via dbwrap_fetch,
    we should also be able to traverse.
    
    metze
    
    Autobuild-User: Stefan Metzmacher <[email protected]>
    Autobuild-Date: Fri Dec 23 18:19:14 CET 2011 on sn-devel-104
    (cherry picked from commit 4a1895eb9921ad533910d08823c2814c470875fd)

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/ctdbd_conn.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 6b50009..9ae8f9f 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -1131,7 +1131,9 @@ NTSTATUS ctdbd_traverse(uint32 db_id,
        int cstatus;
        struct ctdbd_traverse_state state;
 
+       become_root();
        status = ctdbd_init_connection(NULL, &conn);
+       unbecome_root();
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0, ("ctdbd_init_connection failed: %s\n",
                          nt_errstr(status)));


-- 
Samba Shared Repository

Reply via email to