ext/services: allow for os=Linux feature request from VM

It's weird to set it for Windows, but not Linux.
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-23 23:29:23 +02:00
parent e244c192ae
commit 8be70c9e4d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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):