Give runc fibers no capabilities once CRIU can dump a mount namespace per fiber

Đang mở
#26 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes, linux

Hướng nghiên cứu

Start by tracing runc fiber capability setup and the CRIU dump path around criu/files-reg.c:1790; the issue does not name repository files or tests. Compare the two listed approaches, accounting for the registry-template bind and the missing per-fiber mount namespace support. Done means fibers can run without capabilities while CRIU can dump and restore them reliably.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

runc fibers keep CAP_SYS_ADMIN, which CRIU's parasite needs to mount a scratch /proc for a fiber whose /proc is not its own. Full nocaps would need a mount namespace per runc fiber, and CRIU cannot dump that today.

criu/files-reg.c:1790: Can't lookup mount=N for fd=-3 path=/bin/refzygote

The zygote's executable stays mapped through the container's mount namespace, which CRIU neither dumps nor runs in. On overlayfs, CRIU falls back to the path and passes, which hid this in the integration suite.

Options.

  • Teach CRIU to find a mapping's mount by its path.
  • Give each grant's runc zygote an overlayfs root, which leans on that same fallback and leaves the registry-template bind uncovered.
Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.