Browse Source

qubes/vm: add StandaloneVM class

Marek Marczykowski-Górecki 8 years ago
parent
commit
e319639146
3 changed files with 33 additions and 0 deletions
  1. 31 0
      qubes/vm/standalonevm.py
  2. 1 0
      rpm_spec/core-dom0.spec
  3. 1 0
      setup.py

+ 31 - 0
qubes/vm/standalonevm.py

@@ -0,0 +1,31 @@
+#!/usr/bin/python2 -O
+# vim: fileencoding=utf-8
+
+#
+# The Qubes OS Project, https://www.qubes-os.org/
+#
+# Copyright (C) 2016  Marek Marczykowski-Górecki
+#                              <marmarek@invisiblethingslab.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+import qubes.events
+import qubes.vm.qubesvm
+
+class StandaloneVM(qubes.vm.qubesvm.QubesVM):
+    '''Standalone Application VM'''
+
+    pass

+ 1 - 0
rpm_spec/core-dom0.spec

@@ -216,6 +216,7 @@ fi
 %{python_sitelib}/qubes/vm/appvm.py*
 %{python_sitelib}/qubes/vm/dispvm.py*
 %{python_sitelib}/qubes/vm/qubesvm.py*
+%{python_sitelib}/qubes/vm/standalonevm.py*
 %{python_sitelib}/qubes/vm/templatevm.py*
 
 %dir %{python_sitelib}/qubes/vm/mix

+ 1 - 0
setup.py

@@ -32,6 +32,7 @@ if __name__ == '__main__':
             'qubes.vm': [
                 'AppVM = qubes.vm.appvm:AppVM',
                 'TemplateVM = qubes.vm.templatevm:TemplateVM',
+                'StandaloneVM = qubes.vm.standalonevm:StandaloneVM',
                 'AdminVM = qubes.vm.adminvm:AdminVM',
             ],
             'qubes.ext': [