Skip to content

Commit 4e3a363

Browse files
committed
Reapply "attach: Do not drop caps"
This reverts commit 901baa7.
1 parent 901baa7 commit 4e3a363

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lxc/attach.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,9 @@ static int drop_capabilities(struct attach_context *ctx)
776776
int ret;
777777
__u32 last_cap;
778778

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

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

0 commit comments

Comments
 (0)