Add all (unused) args to prctl call

tingping/wmclass
Alexander Larsson 2015-02-08 10:12:32 +01:00
parent a2f9562989
commit 79b12777bf
1 changed files with 1 additions and 1 deletions

View File

@ -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 */