sandboxpolicy: one shared identity table for all enforcement sections (latch the class at exec)
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
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, kubernetes, linux
- Lĩnh vực
- operating-systems, security
Hướng nghiên cứu
Start by reviewing #1067 and the follow-up stack through #1083, then locate the sandboxpolicy common layer and each section's per-cgroup bindings, slots, and exec arming state. Design review is required before implementation; map the identity table layout, pin versioning, ancestor lookup, and exec-time class latching. Done means one shared table, a kernel test for a cgroup change during exec, and tests showing class changes, publishes, and restart adoption each use one map update per container.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up from the review of #1067 (Matthias's nit on latching the class at exec).
Problem
Today each sandbox section (privilege, network, file, and the root barrier inside file) keeps its own per-cgroup state:
- its own
<section>bindingsmap (cgroup → slot and flags) and its own slots and generations; - its own
armed_tasks/ arming state, filled atbprm_committed_creds; - every hook resolves the binding again from the task's current cgroup.
This has costs:
- The same container identity is written N times, once per section, and the sections can disagree for a short time during a publish, a heal or a restart adoption.
- The class (Strict or Audit) is re-resolved from the current cgroup on each hook. The exec reference latches it at exec and never falls back to the current cgroup for an in-flight exec.
- A class change has to reach every per-section copy, including bindings adopted after a restart (the gap fixed for #1067 in this round).
Proposal
One pinned identity table that all sections read:
- key: cgroup id; value: rule-set id per section, and the mode (Strict/Audit), with a version field;
- the class is latched for the task at exec from that table, as the exec reference does;
- a policy change writes a new rule set and then flips the rule-set id in one map update, in place of per-section slots and generations;
- a parent-cgroup lookup (
bpf_get_current_ancestor_cgroup_id) replaces the per-bindingBINDING_SUBTREEspecial case; - pin names carry a layout version, so a new layout never adopts pins of an old one.
Each section stays its own gadget; only the identity table is shared.
Scope
- Not part of the current stack (#1067 → #1083). It starts after the stack merges.
- It changes the common layer of every section, so it needs its own design review first.
Done when
- One identity table, read by every section, with a version and a documented layout.
- The class is latched at exec, with a kernel test where a task changes cgroup during an exec.
- A class change, a publish and a restart adoption each take one map update per container, with tests.
- Ngôn ngữ chính
- Go
- Star
- 39
- Fork
- 42
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 48
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kubescape/node-agent
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
kubescape/node-agent#1112 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kubescape/node-agent#1113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kubescape/node-agent#1108 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
kubescape/node-agent#1107 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Upgrade Inspektor Gadget to v0.57.0 via kubescape fork and preserve exec/path semanticsCó thể đã có người làm @ANAMASGARD đã nhận 23 ngày trước. Đang mởenhancement
kubescape/node-agent#1050 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kubescape/node-agent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
needs discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openfga/openfga.dev#1436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
都道府県を指定すると区名から始まる住所に市名を補わないĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
digital-go-jp/abr-geocoder#457 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
benchmark
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
mozilla-ai/cq#601 ·
Maintainer thường phản hồi trong vòng 1 ngày