fix(3293) Ambient capabilities are not applied as expected#3294
fix(3293) Ambient capabilities are not applied as expected#3294utam0k merged 5 commits intoyouki-dev:mainfrom
Conversation
Signed-off-by: tommady <tommady@users.noreply.github.com>
|
hi @saku3 |
…e move that into deeper layer Signed-off-by: tommady <tommady@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an issue where ambient capabilities were not being applied correctly to containers. The fix changes the error handling approach from silently logging warnings to properly raising ambient capabilities and propagating errors.
Key Changes:
- Added explicit handling for
CapSet::Ambientin the syscall layer to raise each capability individually - Changed ambient capability setting to propagate errors instead of silently failing with warnings
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| crates/libcontainer/src/syscall/linux.rs | Added new match arm for CapSet::Ambient to raise capabilities individually with error logging |
| crates/libcontainer/src/capabilities.rs | Removed silent error handling for ambient capabilities, now propagates errors via ? operator |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
saku3
left a comment
There was a problem hiding this comment.
Thanks!
It looks good for me.
for i in {1..100}; do youki run -b tutorial/ a; doneI ran the above command locally and confirmed that the result is consistent.
(However, I’m not sure how we should write a test for this...)
utam0k
left a comment
There was a problem hiding this comment.
May I ask you to add the e2e test(contest)?
|
As tommady commented, once this PR(#3210) is merged, there shouldn’t be any regressions related to this issue. |
Description
Type of Change
Testing
Related Issues
Fixes #3293
Additional Context
follow the Steps to Reproduce and Expectation from the issue