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:
parent
e244c192ae
commit
8be70c9e4d
@ -34,7 +34,7 @@ class WindowsFeatures(qubes.ext.Extension):
|
|||||||
|
|
||||||
guest_os = None
|
guest_os = None
|
||||||
if 'os' in untrusted_features:
|
if 'os' in untrusted_features:
|
||||||
if untrusted_features['os'] in ['Windows']:
|
if untrusted_features['os'] in ['Windows', 'Linux']:
|
||||||
guest_os = untrusted_features['os']
|
guest_os = untrusted_features['os']
|
||||||
|
|
||||||
qrexec = None
|
qrexec = None
|
||||||
|
@ -213,7 +213,7 @@ class TC_10_WindowsFeatures(qubes.tests.QubesTestCase):
|
|||||||
'version': '1',
|
'version': '1',
|
||||||
'default-user': 'user',
|
'default-user': 'user',
|
||||||
'qrexec': '1',
|
'qrexec': '1',
|
||||||
'os': 'Linux'})
|
'os': 'other'})
|
||||||
self.assertEqual(self.vm.mock_calls, [])
|
self.assertEqual(self.vm.mock_calls, [])
|
||||||
|
|
||||||
class TC_20_Services(qubes.tests.QubesTestCase):
|
class TC_20_Services(qubes.tests.QubesTestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user