-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Ubuntu] disable apparmor #10024
[Ubuntu] disable apparmor #10024
Conversation
/azp run ubuntu2004,ubuntu2204,ubuntu2404 |
Azure Pipelines successfully started running 3 pipeline(s). |
@mikhailkoliada Note that |
2125740
to
20da757
Compare
@DaanDeMeyer oh, it is a good catch, but does aa-teardown saves its states somehow anywhere? I mean we reboot the vm even during the build process several times so if it does not save its state we'll have to patch it different way if aa-teardown does not survive reboots :( |
@mikhailkoliada I am not sure, I'm not very familiar with apparmor. As a workaround I currently run aa-teardown and then uninstall the apparmor package. That would prevent anything from ever getting enabled again. Note that |
@DaanDeMeyer hmm, from what I've read in the docs aa-teardown is indeed needed to unload apparmor profiles but it seems if only you do not need / want to reboot your system while we can just reboot. I'm gonna run more tests to see if disabling on systemd's side + reboot does the trick. |
/azp run ubuntu2004,ubuntu2204,ubuntu2404 |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run ubuntu2004,ubuntu2204,ubuntu2404 |
Azure Pipelines successfully started running 3 pipeline(s). |
This reverts commit 145c80d.
Description
Strictly speaking we do not need any means of 3rd party hardening on runners (selinux/apparmor) so lets just disable it so it does not change system's behaviour.
Related issue: #10015
Check list