From d9ba61d7e91c5aceef1a6a736dc65f0594b9be2a Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Thu, 12 Jan 2017 04:35:09 +0200 Subject: [PATCH] Log capability dropping --- sway/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/main.c b/sway/main.c index 6c74aab26..7bf71b535 100644 --- a/sway/main.c +++ b/sway/main.c @@ -331,6 +331,7 @@ int main(int argc, char **argv) { // Drop every cap except CAP_SYS_PTRACE cap_t caps = cap_init(); cap_value_t keep = CAP_SYS_PTRACE; + sway_log(L_INFO, "Dropping extra capabilities"); if (cap_set_flag(caps, CAP_PERMITTED, 1, &keep, CAP_SET) || cap_set_flag(caps, CAP_EFFECTIVE, 1, &keep, CAP_SET) || cap_set_proc(caps)) {