New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TEST-06-SELINUX to mkosi integration tests #32588
Conversation
715f0ea
to
463a87b
Compare
Important An -rc1 tag has been created and a release is being prepared, so please note that PRs introducing new features and APIs will be held back until the new version has been released. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of having --setup-selinux
, can we just have a generic kernel_command_line
field in test_params
which we modify in TEST-06-SELINUX/meson.build?
5fd44a0
to
d8cb436
Compare
Could even go the whole way and do it as |
d8cb436
to
ee9a13a
Compare
Yeah that's actually better for now, let's do it like that. |
3361a32
to
e6d40b2
Compare
Other distributions may be able to install selinux but they are not expected to use it. The distribution is tested rather than whether selinux is enabled because it is expected to work on CentOS and Fedora and we want it to fail noisily.
It is necessary to install the selinux policy in the initramfs so that userland is entered with the correct label. SELinuxRelabel defaults to auto, which will skip if the relabelling command is not installed and will treat failure to relabel as non-fatal. We can't force it on because root privileges are required if the labels don't exist on the host system and we would like to be able to cross-build from other distributions. Since we are already committed to relabelling on first boot there is no value in even trying to label.
e6d40b2
to
ab9d602
Compare
This is based on #32540