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

Harcoded Whonix template names used in Qubes scripts #2490

Closed
entr0py opened this Issue Dec 5, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@entr0py

entr0py commented Dec 5, 2016

Qubes OS version (e.g., R3.2):

all

Affected TemplateVMs (e.g., fedora-23, if applicable):

Whonix


Expected behavior:

Whonix templates should be identified by markers and not by their names since it is not a requirement for templates to be kept using default names (whonix-gw, whonix-ws)

@adrelanos suggests using markers:

  • /usr/share/whonix/marker
  • /usr/share/anon-gw-base-files/gateway
  • /usr/share/anon-ws-base-files/workstation

Actual behavior:

Some scripts check template name to identify Whonix templates.

Example commits:
QubesOS/qubes-app-linux-split-gpg@ead80b1
QubesOS/qubes-app-linux-split-gpg@1a22a2f

Further work is required to identify additional scripts.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 6, 2016

Member

Can you spot anything else? Because those two places are totally ok. It's about automated tests, where environment is strictly controlled and it's ok to require some particular names of templates/VMs.
Also, this is about looking at those templates from dom0, where you can't easily check those markers (without starting the template).

Quick grep yields no other in-VM places detecting Whonix by name.

Member

marmarek commented Dec 6, 2016

Can you spot anything else? Because those two places are totally ok. It's about automated tests, where environment is strictly controlled and it's ok to require some particular names of templates/VMs.
Also, this is about looking at those templates from dom0, where you can't easily check those markers (without starting the template).

Quick grep yields no other in-VM places detecting Whonix by name.

@marmarek marmarek closed this Dec 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment