Skip to content
Snippets Groups Projects
Commit 670f3dd736b0 authored by Lasse Collin's avatar Lasse Collin
Browse files

xz: Fix the Capsicum rights on user_abort_pipe.

parent b813210c4c1f
No related branches found
No related tags found
No related merge requests found
...@@ -198,4 +198,8 @@ ...@@ -198,4 +198,8 @@
CAP_WRITE, CAP_SEEK))) CAP_WRITE, CAP_SEEK)))
goto error; goto error;
if (cap_rights_limit(user_abort_pipe[0], cap_rights_init(&rights,
CAP_EVENT)))
goto error;
if (cap_rights_limit(user_abort_pipe[1], cap_rights_init(&rights, if (cap_rights_limit(user_abort_pipe[1], cap_rights_init(&rights,
...@@ -201,5 +205,5 @@ ...@@ -201,5 +205,5 @@
if (cap_rights_limit(user_abort_pipe[1], cap_rights_init(&rights, if (cap_rights_limit(user_abort_pipe[1], cap_rights_init(&rights,
CAP_EVENT, CAP_WRITE))) CAP_WRITE)))
goto error; goto error;
if (cap_enter()) if (cap_enter())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment