aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2017-01-12 04:35:09 +0200
committerMykyta Holubakha <hilobakho@gmail.com>2017-01-12 04:35:09 +0200
commitd9ba61d7e91c5aceef1a6a736dc65f0594b9be2a (patch)
treebcfca21ab99e7ad31f0805cc08a80b6c15c3d287
parentea1313d80d5ee1623b00c8cdf6e7ff8a7e14c2ae (diff)
Log capability dropping
-rw-r--r--sway/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 6c74aab2..7bf71b53 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)) {