mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Fix the Capsicum rights on user_abort_pipe.
This commit is contained in:
parent
57393615b3
commit
fc0df0f8db
1 changed files with 5 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue