From 8be70c9e4d22e901fb41d21b55a3828306de7f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 23 Oct 2018 23:29:23 +0200 Subject: [PATCH] ext/services: allow for os=Linux feature request from VM It's weird to set it for Windows, but not Linux. --- qubes/ext/windows.py | 2 +- qubes/tests/ext.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/ext/windows.py b/qubes/ext/windows.py index 75420975..0b417886 100644 --- a/qubes/ext/windows.py +++ b/qubes/ext/windows.py @@ -34,7 +34,7 @@ class WindowsFeatures(qubes.ext.Extension): guest_os = None if 'os' in untrusted_features: - if untrusted_features['os'] in ['Windows']: + if untrusted_features['os'] in ['Windows', 'Linux']: guest_os = untrusted_features['os'] qrexec = None diff --git a/qubes/tests/ext.py b/qubes/tests/ext.py index 5acd183f..6f59132f 100644 --- a/qubes/tests/ext.py +++ b/qubes/tests/ext.py @@ -213,7 +213,7 @@ class TC_10_WindowsFeatures(qubes.tests.QubesTestCase): 'version': '1', 'default-user': 'user', 'qrexec': '1', - 'os': 'Linux'}) + 'os': 'other'}) self.assertEqual(self.vm.mock_calls, []) class TC_20_Services(qubes.tests.QubesTestCase):