mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #169] privileges scoped-spawn capability test fails when run as root; make test-unit has no fully green local environment #55
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @huajq on GitHub (Aug 13, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/169
Affected component: Build / installation
AgentENV version
f8f725e(main); Local modifications: noneHost environment
rootwith a full capability bounding set (CapBnd: 000001ffffffffff)Operation and configuration
Steps to reproduce
root→ fails.setpriv --reuid=65534 ...) → passes.agentenv --libsuite as non-root → 151 other failures, soneither root nor non-root local runs are fully green.
Expected behavior
make test-unitpasses in a clearly defined environment.Actual behavior
Reproduction frequency: Always (as root with a full bounding set)
Regression information
8f028b1); not a regression.Additional context
Cause: on
execve, the kernel regrants an euid-0 child the full boundingset (
CapPrm/CapEff) unlessSECBIT_NOROOTis set, so the "all sets zero"expectation only holds for non-root runners (CI is non-root, hence green).
Suggested follow-ups:
CapInh/CapAmbunderroot); document the expected
make test-unitenvironment.not hold (children regain the bounding set) — enforcing it needs
SECBIT_NOROOT; a behavior change worth its own discussion.Pre-submission checklist
/etc/hosts#144