Skip to content

Why do you use a --label=type:unconfined_t with --privileged? #74

Closed Answered by cgwalters
rhatdan asked this question in Q&A
Discussion options

You must be logged in to vote

--privileged would force spc_t which is unconfined and should be able to do the boot install.

spc_t doesn't have mac_admin which allows writing unknown selinux labels. We have install_t today. If you recall this distinction has been a huge ongoing source of trouble.

And more.

Today I landed code such that bootc goes to quite some effort to re-exec itself as install_t. See

// OK now, we always copy our binary to a tempfile, set its security context

(We also need to mount selinuxfs in the container, and re-exec ourself for that)

Secondarily are you sa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cgwalters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants