Skip to content

Commit

Permalink
Hide local timezone from VMs with specific tag
Browse files Browse the repository at this point in the history
Set fake timezone for VMs with "anon-timezone" tag.
Fixes QubesOS/qubes-issues#8381
  • Loading branch information
strategictraveler committed Nov 2, 2024
1 parent 6935f26 commit a8ba9ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qubes/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2395,7 +2395,10 @@ def create_qdb_entries(self):

tzname = qubes.utils.get_timezone()
if tzname:
self.untrusted_qdb.write('/qubes-timezone', tzname)
if 'anon-timezone' in list(self.tags):
self.untrusted_qdb.write('/qubes-timezone', 'Etc/UTC')
else:
self.untrusted_qdb.write('/qubes-timezone', tzname)

self.untrusted_qdb.write('/qubes-block-devices', '')
self.untrusted_qdb.write('/qubes-usb-devices', '')
Expand Down

0 comments on commit a8ba9ab

Please sign in to comment.