Skip to content

Cannot modify host files via bootstrap-container (Permission denied) #1957

Answered by etungsten
effy-coding asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dangen-effy, those permission errors are due to SElinux. Bootstrap container processes do not have the necessary SElinux label to make changes to configuration files in /etc. /etc is a tmpfs mount intended for certain host processes to write generated configuration files and nothing else. Currently bootstrap container processes are labelled with control_t. You can read more about the labels given to containers here.

Since the end goal is to configure containerd, this should be done through Bottlerocket’s API system. /etc/containerd/config.toml is rendered by Bottlerocket every time there’s a change to any containerd-related Bottlerocket setting. Bottlerocket would overwrite anything t…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@chiragjn
Comment options

@arnaldo2792
Comment options

@arnaldo2792
Comment options

@chiragjn
Comment options

@arnaldo2792
Comment options

Answer selected by effy-coding
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status/needs-triage Pending triage or re-evaluation area/core Issues core to the OS (variant independent)
5 participants