-
Notifications
You must be signed in to change notification settings - Fork 46
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
Enable apparmor for whonix gateway and workstation vms #124
Conversation
Based on the instructions in https://www.whonix.org/wiki/Qubes/AppArmor, AppArmor is enabled on the whonix template prior to creating the sd-whonix and sd-journalist AppVMs
How's this for a test plan, @emkll?
|
@conorsch Good point, will add tests |
Ran into some trouble with the test plan; after running
The same error message appears on both Will poke more and see if any fixes in-line can be appended here to resolve; the need for such fixes is tracked in #122. |
Provisioning logic would fail with an error pertaining to `template-whonix-ws`. Updating to whonix 14 workstation for Journalist VM and whonix 14 gateway for sd-whonix sidesteps this issue.
26ce86c
to
b17faf0
Compare
Moving to whonix-14 fixes the issue @conorsch observed, but introduces a regression where |
After a reboot, I'm seeing notification spam in dom0 related to the apparmor changes to whonix: In light of #122, I'll note that I applied the apparmor changes described here to the old whonix vm, running Jessie. Adjusting the template to use @emkll can you recommend remediation steps to get whonix working on my system again? Might be best to put that discussion in #122. These tickets are going to be closely related either way. |
Thanks for the report @conorsch , sorry for breaking your computer. Prior to submitting, I had tested the pr for both Whonix versions 13 and 14, and I have not seen the errors you are experiencing. I still am struggling with idempotency and machine state, as I am currently using Qubes for daily usage as well. If Qubes permits template installs (and use of community repos) within salt, we should consider doing so in the medium term. I think the best way forward would be to have a single whonix-gw template (14, as 13 is EOL), and two whonix-ws based AppVMs based on this template (
[*] The reason we should maintain/preserve |
Pleased to report that @emkll's remediation steps have indeed resolved the whonix-related problems I encountered while reviewing this PR. I'll note that I also had to run:
Thereafter,
We should fix that issue here, then we're good for merge. |
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.
Almost there; let's update the salt config to write the HidServAuth line to sd-whonix
.
See the upgrade docs for Whonix 13 -> 14 in Qubes. User additions should now be written to `/usr/local/etc/torrc.d/50_user.conf`. Tested this locally and confirmed access to the Journalist Interface via `sd-journalist` VM.
Latest changes resolve the whonix config issues. Now able to run |
Just open python interpreter, and then try to |
It seems we only have |
so, looks good from my perspective! |
Merging this, issues with python 2 vs python 3 can be tackled in a followup |
…apparmor Enable apparmor for whonix gateway and workstation vms
Fixes #108 and #122
Based on the instructions in https://www.whonix.org/wiki/Qubes/AppArmor, AppArmor is enabled on the whonix template prior to creating the sd-whonix and sd-journalist AppVMs