From 79b12777bf210f8b4e2c7abf0b350bedef2b8d97 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Sun, 8 Feb 2015 10:12:32 +0100 Subject: [PATCH] Add all (unused) args to prctl call --- xdg-app-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdg-app-helper.c b/xdg-app-helper.c index 855fc792..4a55820d 100644 --- a/xdg-app-helper.c +++ b/xdg-app-helper.c @@ -1075,7 +1075,7 @@ acquire_caps (void) struct __user_cap_data_struct data; /* Tell kernel not clear capabilities when dropping root */ - if (prctl (PR_SET_KEEPCAPS, 1) < 0) + if (prctl (PR_SET_KEEPCAPS, 1, 0, 0, 0) < 0) die_with_error ("prctl(PR_SET_KEEPCAPS) failed"); /* Drop root uid, but retain the required permitted caps */