Skip to content

What happens after the invocation of /proc/self/exe init #3855

Closed Answered by cyphar
therandombyte asked this question in Q&A
Discussion options

You must be logged in to vote

Due to the way consoles are set up for containers, just printing to stdout won't work. We have since rewritten the logging for nsexec, so if you use write_log() you will get the messages.

As for why we re-exec runc init, this is done to defend against CVE-2019-5736. There is a pull request to improve this a fair bit by moving that code out of the C portion, which will mean we only exec runc init once.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@therandombyte
Comment options

@cyphar
Comment options

Comment options

You must be logged in to vote
2 replies
@therandombyte
Comment options

@cyphar
Comment options

Answer selected by cyphar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants