Skip to content
Snippets Groups Projects
Commit 9cde5ab9 authored by Lyndon Brown's avatar Lyndon Brown
Browse files

rootwrap: remove redundant sanity check

now that we're checking the return value from `setuid(uid)` as of the
previous commit.

(see discussion of [MR 47])

[MR 47]: videolan/vlc!47)
parent d8dc0638
No related branches found
No related tags found
No related merge requests found
Pipeline #92421 passed with stage
in 22 minutes and 6 seconds
......@@ -249,9 +249,6 @@ int main (int argc, char *argv[])
if (setuid (uid))
exit (1);
if (!setuid (0)) /* sanity check: we cannot get root back */
exit (1);
/* Yeah, the user can execute just about anything from here.
* But we've dropped privileges, so it does not matter. */
if (strlen (argv[0]) < sizeof ("-wrapper"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment