-
Notifications
You must be signed in to change notification settings - Fork 694
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
PaX flags are unset during install time #3916
Comments
This is while testing #4080 |
Turns out the base box used for Xenial testing (and therefore presumably any VM, Trusty included) can result in different behavior here. Examples below: Using a base box dated 2018-08-24 (admittedly rather old):
All config tests were passing under Xenial:
After upgrading the box base, however, to one dated
Then the PaX tests are seen to fail:
Same as @kushaldas reported above, and in #4080, and most recently in #4099. While a role run order change would indeed resolve in the clean install story, we should consider managing PaX over time, via paxctld or otherwise, to ensure a stable system state over time. |
Description
The grsecurity pax flag checks on the grub binaries are currently failing. Those don't run in CI—yet; see #3909—so we haven't been carefully observing them.
Steps to Reproduce
make staging
.molecule verify -s libvirt-staging
(substitutevirtualbox-staging
if appropriate)molecule converge -s libvirt-staging
molecule verify -s libvirt-staging
(substitutevirtualbox-staging
if appropriate)Expected Behavior
The fresh install story configures PaX flags in a persistent manner.
Actual Behavior
The fresh install story sets PaX flags, but the are overwritten if updates to grub are available.
Comments
We can resolve this problem by moving the "common" role before the "grsecurity" role; it should be the first in the play. We'll upgrade all packages, then after updates to grub are installed, the PaX flags will be set.
In #2741 we moved the grsecurity role up to fail faster. That minor convenience isn't worth the risk of misconfiguration. Since #2703, we've been managing PaX flags on grub for existing installs—but we still have an install time window where they can be overwritten.
[0] Regarding "all tests pass", I actually saw one still fail, but it's unrelated:
The text was updated successfully, but these errors were encountered: