-
Notifications
You must be signed in to change notification settings - Fork 3.4k
api: don't attempt to set unix domain socket group to cilium
#19850
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
Conversation
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup, thanks. I think when we support non-root, this should also not be necessary so 👍
cf34ac3
to
e0dfa97
Compare
Added a second commit to drop the |
e0dfa97
to
a7e4e65
Compare
/test-runtime |
a7e4e65
to
4985707
Compare
/test-runtime |
4985707
to
dd6b11b
Compare
Since commit 67f74ff ("images/cilium: remove cilium group from Dockerfile") the cilium group is no longer created in the image running the agent, resulting in the following log message on cilium-agent start: level=info msg="Group not found" error="group: unknown group cilium" file-path=/var/run/cilium/cilium.sock group=cilium subsys=api Setting the group is no longer necessary, so drop that part of SetDefaultPermissions. Signed-off-by: Tobias Klauser <tobias@cilium.io>
dd6b11b
to
174803b
Compare
/test-runtime |
ac4c6df
to
95720a2
Compare
/test-runtime |
95720a2
to
5cd6198
Compare
/test-runtime |
Since commit 67f74ff ("images/cilium: remove cilium group from Dockerfile") the cilium group is no longer created in the docker image. Follow the same approach for the agent running in the test/dev VM. As a consequence, the per-node `cilium` command needs to be run as `root` in the runtime tests. Signed-off-by: Tobias Klauser <tobias@cilium.io>
5cd6198
to
3460d4c
Compare
/test-runtime |
/test |
Closing in favor of #19927. |
Since commit 67f74ff ("images/cilium: remove cilium group from
Dockerfile") the cilium group is no longer created in the image running
the agent, resulting in the following log message on cilium-agent start:
Setting the group is no longer necessary, so that part of
SetDefaultPermissions
.