Skip to content
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

[RFE] Enforce SELinux on all Mantle tests #1186

Open
6 tasks
tormath1 opened this issue Sep 22, 2023 · 2 comments
Open
6 tasks

[RFE] Enforce SELinux on all Mantle tests #1186

tormath1 opened this issue Sep 22, 2023 · 2 comments
Labels
area/selinux Issues related to SELinux area/tests kind/feature A feature request

Comments

@tormath1
Copy link
Contributor

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:

  • enable the enforce mode
  • run the test
  • grep journalctl for denials (AVC)
  • check what's missing and if it can be upstreamed
@tormath1 tormath1 added kind/feature A feature request area/tests area/selinux Issues related to SELinux labels Sep 22, 2023
@tormath1 tormath1 changed the title [RFE] Enable SELinux on all Mantle tests [RFE] Enforce SELinux on all Mantle tests Sep 22, 2023
@pothos
Copy link
Member

pothos commented Sep 22, 2023

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
Copy link
Contributor Author

@pothos correct, as already attempted here: flatcar/mantle#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/selinux Issues related to SELinux area/tests kind/feature A feature request
Projects
Development

No branches or pull requests

2 participants