-
Notifications
You must be signed in to change notification settings - Fork 6
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
Disable unix-chkpwd
AppArmor profile
#216
Conversation
The failing tests should be fixed when ansible-community/molecule-plugins#294 is merged and a new release created. |
This is necessary when running Molecule tests against Fedora 40 and 41; otherwise, the privileged container cannot successfully sudo and hence Ansible is unable to do anything. Note that this change is reverted after the Molecule tests are run. For now, disabling the unix-chkpwd AppArmor profile also requires an apt-get purge of the firefox and passt packages. It should be possible to remove this purge (and the ensuing systemctl reload apparmor.service) at a future date. See #215 for more details.
bcefbbb
to
3e3ea4c
Compare
This prediction is now true! |
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.
LGTM ✔️ Thanks for taking care of what I mentioned in person.
No problem. See commit a473457. |
d62d1d0
to
8cad420
Compare
These system packages had to be uninstalled to allow the disabling of the unix-chkpwd AppArmor profile, but can be reinstalled at this point. Co-authored-by: Nicholas McDonnell <[email protected]>
8cad420
to
a473457
Compare
🗣 Description
This pull request disables the
unix-chkpwd
AppArmor profile before running Molecule tests against Fedora Docker containers.💭 Motivation and context
This is necessary when running Molecule tests against Fedora 40 and 41; otherwise, the privileged container cannot successfully execute
sudo
and hence Ansible is unable to do anything.Note that this change is reverted after the Molecule tests are run.
For now, disabling the
unix-chkpwd
AppArmor profile also requires anapt-get purge
of thefirefox
andpasst
packages. It should be possible to remove this purge (and the ensuingsystemctl reload apparmor.service
) at a future date. See #215 for more details.🧪 Testing
All automated tests pass.
✅ Pre-approval checklist