commit | fc0df0f8db87dff45543708a711e17d29c37f632 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Wed Apr 01 14:45:25 2015 +0300 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Wed Apr 01 14:45:25 2015 +0300 |
tree | 98869711096eb31200b051a2a4f2b2d3039dcff8 | |
parent | 57393615b31b3788dd77280452d845bcc12d33af [diff] |
xz: Fix the Capsicum rights on user_abort_pipe.
diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 308fa1d..8a5e045 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c
@@ -195,8 +195,12 @@ 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())