Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only drop capabilities that are not added #3972

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

nemacysts
Copy link
Member

It appears that containerd (or k8s 1.24?) have changed the behavior around adding/dropping linux capabilities and added caps no longer take precedence over dropped ones

It appears that containerd (or k8s 1.24?) have  changed the behavior
around adding/dropping linux capabilities and added caps no longer take
precedence over dropped ones
@nemacysts nemacysts requested a review from a team as a code owner September 25, 2024 16:25
wilmer05
wilmer05 previously approved these changes Sep 25, 2024
ajayOO8
ajayOO8 previously approved these changes Sep 25, 2024
@nemacysts nemacysts dismissed stale reviews from ajayOO8 and wilmer05 via 849179d September 25, 2024 16:30
ajayOO8
ajayOO8 previously approved these changes Sep 25, 2024
wilmer05
wilmer05 previously approved these changes Sep 25, 2024
@nemacysts nemacysts merged commit f7efd92 into master Sep 25, 2024
9 checks passed
@nemacysts nemacysts deleted the luisp/containerd-cap-add-drop branch November 15, 2024 18:46
nemacysts added a commit to Yelp/task_processing that referenced this pull request Dec 19, 2024
Just like Yelp/paasta#3972 and Yelp/paasta#3973, we need to ensure that
there are no duplicates between cap_add and cap_drop - otherwise,
the cap_drop entry will "win" and the duplicate capability will not be
added.
nemacysts added a commit to Yelp/task_processing that referenced this pull request Jan 9, 2025
Just like Yelp/paasta#3972 and Yelp/paasta#3973, we need to ensure that
there are no duplicates between cap_add and cap_drop - otherwise,
the cap_drop entry will "win" and the duplicate capability will not be
added.
nemacysts added a commit to Yelp/Tron that referenced this pull request Jan 9, 2025
Just like Yelp/paasta#3972 and Yelp/paasta#3973, we need to ensure that
there are no duplicates between cap_add and cap_drop - otherwise,
the cap_drop entry will "win" and the duplicate capability will not be
added.
nemacysts added a commit to Yelp/Tron that referenced this pull request Jan 9, 2025
Just like Yelp/paasta#3972 and Yelp/paasta#3973, we need to ensure that
there are no duplicates between cap_add and cap_drop - otherwise,
the cap_drop entry will "win" and the duplicate capability will not be
added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants