summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 09ad8d8ea5..fb0efd2ae5 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");