-
Notifications
You must be signed in to change notification settings - Fork 685
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
Focal staging paxctl command to convert grub binaries are failing #5495
Comments
diff --git a/install_files/ansible-base/roles/grsecurity/tasks/paxctl.yml b/install_files/ansible-base/roles/grsecurity/tasks/paxctl.yml
index 38072505e..8a2f204c1 100644
--- a/install_files/ansible-base/roles/grsecurity/tasks/paxctl.yml
+++ b/install_files/ansible-base/roles/grsecurity/tasks/paxctl.yml
@@ -21,7 +21,7 @@
- /usr/bin/grub-script-check
- name: Adjust paxctl headers on grub binaries.
- command: paxctl -zCE {{ item.item }}
+ command: paxctl -zcE {{ item.item }}
with_items: "{{ paxctl_grub_header_check.results }}"
when: "item.stdout != '- PaX flags: --------E--- [{{ item.item }}]' or
item.rc != 0" Wondering if this is the right way, I added to just to see if works on my staging focal. |
Related discussion in #5468 (comment) @rmol Modifying the create-header flags for paxctl only for Xenial will work as far as the provisioning flow, but that's not the only place we set the flags, unfortunately: securedrop/install_files/securedrop-grsec/etc/kernel/postinst.d/paxctl-grub Lines 15 to 17 in f41c2f7
Which means that the naive approach in freedomofpress/securedrop-apt-test#62 is unlikely to work. =/ Let's discuss use of paxctld, same as we do in the Workstation. |
If I use the patch I posed in #5495 (comment) then the above mentioned |
@kushaldas Seems to me we only want to modify the behavior on Focal, not on Xenial. So customizing the behavior a bit should give us a working staging first-time install, although the need to modify the metapackage is a more significant issue for Focal support (looking like #4134 might be the path forward, after 1.6). |
I think we can close this issue now, can do this after standup today. |
Description
When we are doing new Focal staging environment, the
paxctl
task to convertgrub
binaries is failing.This is task in question https://github.com/freedomofpress/securedrop/blob/develop/install_files/ansible-base/roles/grsecurity/tasks/paxctl.yml#L23-L27
Steps to Reproduce
molecule converge -s libvirt-staging-focal
Expected Behavior
This should happen without any error.
Actual Behavior
Example error
The text was updated successfully, but these errors were encountered: