Skip to content

Commit

Permalink
Reapply "attach: Do not drop caps"
Browse files Browse the repository at this point in the history
This reverts commit 901baa7.
  • Loading branch information
nift4 committed Nov 24, 2024
1 parent 901baa7 commit 4e3a363
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,9 +776,9 @@ static int drop_capabilities(struct attach_context *ctx)
int ret;
__u32 last_cap;

ret = lxc_caps_last_cap(&last_cap);
if (ret)
return syserror_ret(ret, "%d - Failed to drop capabilities", ret);
// ret = lxc_caps_last_cap(&last_cap);
// if (ret)
// return syserror_ret(ret, "%d - Failed to drop capabilities", ret);

for (__u32 cap = 0; cap <= last_cap; cap++) {
if (ctx->capability_mask & (1LL << cap))
Expand Down

0 comments on commit 4e3a363

Please sign in to comment.