Correct name of PR_SET_NO_NEW_PRIVS in error message

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2020-05-23 15:33:20 +01:00
parent a9700fa13c
commit e8f67bc6c9

View File

@@ -2247,7 +2247,7 @@ main (int argc,
/* Never gain any more privs during exec */ /* Never gain any more privs during exec */
if (prctl (PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) < 0) if (prctl (PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) < 0)
die_with_error ("prctl(PR_SET_NO_NEW_CAPS) failed"); die_with_error ("prctl(PR_SET_NO_NEW_PRIVS) failed");
/* The initial code is run with high permissions /* The initial code is run with high permissions
(i.e. CAP_SYS_ADMIN), so take lots of care. */ (i.e. CAP_SYS_ADMIN), so take lots of care. */