flatcar / Flatcar

Flatcar project repository for issue tracking, project documentation, etc.
https://www.flatcar.org/
Apache License 2.0
774 stars 32 forks source link

[RFE] Enforce SELinux on all Mantle tests #1186

Open tormath1 opened 1 year ago

tormath1 commented 1 year ago

Current situation

Now the SELinux container policy is about to land on Alpha, let's investigate on the tests with permissive SELinux and see what's missing to switch to enforce mode.

Ideal future situation

All the tests are running with SELinux enforced.

Implementation options

Here's the current list:

Additional information

To proceed:

pothos commented 1 year ago

All the tests are running with SELinux enforced.

I would say: "enforced from Ignition". Currently it's switched on after the instance booted and this is not what users would do, they would rather enable it from Ignition and of course also have this setting persist over reboots. We don't test this currently and while we can catch a few issues, this test setup makes little sense for the real world.

tormath1 commented 1 year ago

@pothos correct, as already attempted here: https://github.com/flatcar/mantle/pull/252 but I think we can already solve the remaining tests mentioned above and then see what's missing (relabeling) before enabling tests from Ignition/kargs