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 https://github.com/containers/bootc/blob/53cd1e618d67a3fddcb36d0cec199ae8a6d4c5c0/lib/src/lsm.rs#L43

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

Secondarily are you saying all bootc images will have an…

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