Skip to content

Conversation

@AkihiroSuda
Copy link
Member

/etc/cni has to be readable for non-root users (0755), because /etc/cni/tuning/allowlist.conf is used for rootless mode too. This file was introduced in CNI plugins 1.2.0 (containernetworking/plugins#693), and its path is hard-coded.

@AkihiroSuda AkihiroSuda added area/cri Container Runtime Interface (CRI) cherry-pick/1.6.x labels Jan 28, 2023
@AkihiroSuda
Copy link
Member Author

AkihiroSuda commented Jan 28, 2023

(The dir is created on starting the daemon, so it was breaking rootless nerdctl, although nerdctl does not use the CRI API)

/etc/cni has to be readable for non-root users (0755), because /etc/cni/tuning/allowlist.conf is used for rootless mode too.
This file was introduced in CNI plugins 1.2.0 (containernetworking/plugins PR 693), and its path is hard-coded.

Signed-off-by: Akihiro Suda <[email protected]>
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmcgowan dmcgowan merged commit ee0e22f into containerd:main Jan 30, 2023
@AkihiroSuda AkihiroSuda added cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch and removed cherry-pick/1.6.x labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch impact/changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants