aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-04-01 14:45:25 +0300
committerLasse Collin <lasse.collin@tukaani.org>2015-04-01 14:45:25 +0300
commitfc0df0f8db87dff45543708a711e17d29c37f632 (patch)
tree98869711096eb31200b051a2a4f2b2d3039dcff8
parentUpdate THANKS. (diff)
downloadxz-fc0df0f8db87dff45543708a711e17d29c37f632.tar.xz
xz: Fix the Capsicum rights on user_abort_pipe.
-rw-r--r--src/xz/file_io.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c
index 308fa1d2..8a5e0453 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -195,8 +195,12 @@ io_sandbox_enter(int src_fd)
CAP_WRITE, CAP_SEEK)))
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,
- CAP_EVENT, CAP_WRITE)))
+ CAP_WRITE)))
goto error;
if (cap_enter())