X-Git-Url: http://git.samba.org/?p=amitay%2Fsamba.git;a=blobdiff_plain;f=source3%2Fsmbd%2Fserver.c;h=fb0efd2ae5202ed5315e3cd4b972e8783c89e6fb;hp=09ad8d8ea55af057d8fea68b266929d1c5b634d2;hb=899bd0005f56dcc1e95c3988d41ab3f628bb15db;hpb=2dd301e5cd6ff97943c4bf9c7cd9b820d6193b45;ds=inline diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 09ad8d8ea55..fb0efd2ae52 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1047,6 +1047,14 @@ extern void build_options(bool screen); gain_root_privilege(); gain_root_group_privilege(); + /* + * Ensure we have CAP_KILL capability set on Linux, + * where we need this to communicate with threads. + * This is inherited by new threads, but not by new + * processes across exec(). + */ + set_effective_capability(KILL_CAPABILITY); + fault_setup((void (*)(void *))exit_server_fault); dump_core_setup("smbd");