Skip to content

Commit

Permalink
remove all traces of the dsa-4371 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
xaki23 committed Nov 17, 2021
1 parent a02e307 commit 77dbc73
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 178 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ install:
mkdir -p $(DESTDIR)/usr/libexec/qubes-manager/
cp qubesmanager/mount_for_backup.sh $(DESTDIR)/usr/libexec/qubes-manager/
cp qubesmanager/qvm_about.sh $(DESTDIR)/usr/libexec/qubes-manager/
cp qubesmanager/dsa-4371-update $(DESTDIR)/usr/libexec/qubes-manager/

mkdir -p $(DESTDIR)/usr/share/applications
cp qubes-global-settings.desktop $(DESTDIR)/usr/share/applications/
Expand Down
1 change: 0 additions & 1 deletion debian/install
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/usr/bin/qubes-vm-clone
/usr/libexec/qubes-manager/mount_for_backup.sh
/usr/libexec/qubes-manager/qvm_about.sh
/usr/libexec/qubes-manager/dsa-4371-update

/usr/lib/*/dist-packages/qubesmanager/__pycache__
/usr/lib/*/dist-packages/qubesmanager/__init__.py
Expand Down
131 changes: 0 additions & 131 deletions qubesmanager/dsa-4371-update

This file was deleted.

10 changes: 0 additions & 10 deletions qubesmanager/i18n/qubesmanager_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1720,16 +1720,6 @@ The qube must be running to disable seamless mode; this setting is not persisten
</context>
<context>
<name>UpdateVMThread</name>
<message>
<location filename="../qube_manager.py" line="618"/>
<source>Debian DSA-4371 fix installed in {}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qube_manager.py" line="625"/>
<source>Failed to apply DSA-4371 fix: {}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qube_manager.py" line="631"/>
<source>Error on qube update!</source>
Expand Down
10 changes: 0 additions & 10 deletions qubesmanager/i18n/qubesmanager_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1762,16 +1762,6 @@ The qube must be running to disable seamless mode; this setting is not persisten
</context>
<context>
<name>UpdateVMThread</name>
<message>
<location filename="../qube_manager.py" line="618"/>
<source>Debian DSA-4371 fix installed in {}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qube_manager.py" line="625"/>
<source>Failed to apply DSA-4371 fix: {}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qube_manager.py" line="631"/>
<source>Error on qube update!</source>
Expand Down
18 changes: 0 additions & 18 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,24 +607,6 @@ def run(self):
except exc.QubesDaemonAccessError:
# permission denied, let us hope for the best
pass
# apply DSA-4371
with open('/usr/libexec/qubes-manager/dsa-4371-update', 'rb') \
as dsa4371update:
stdout, stderr = self.vm.run_service_for_stdio(
"qubes.VMShell",
user="root",
input=dsa4371update.read())
if stdout == b'changed=yes\n':
subprocess.call(
['notify-send', '-i', 'dialog-information',
self.tr('Debian DSA-4371 fix installed in {}').format(
self.vm.name)])
elif stdout == b'changed=no\n':
pass
else:
raise exc.QubesException(
self.tr("Failed to apply DSA-4371 fix: {}").format(
stderr.decode('ascii')))
self.vm.run_service("qubes.InstallUpdatesGUI",
user="root", wait=False)
except (ChildProcessError, exc.QubesException) as ex:
Expand Down
6 changes: 0 additions & 6 deletions qubesmanager/tests/test_qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,9 +1619,6 @@ def test_21_update_vm_thread_running(self, mock_call, mock_open):

thread.run()

mock_open.assert_called_with(
'/usr/libexec/qubes-manager/dsa-4371-update', 'rb')

vm.run_service_for_stdio.assert_called_once_with(
"qubes.VMShell", user='root', input=unittest.mock.ANY)

Expand All @@ -1644,9 +1641,6 @@ def test_22_update_vm_thread_not_running(self, mock_call, mock_open):
thread = qube_manager.UpdateVMThread(vm)
thread.run()

mock_open.assert_called_with(
'/usr/libexec/qubes-manager/dsa-4371-update', 'rb')

vm.start.assert_called_once_with()

vm.run_service_for_stdio.assert_called_once_with(
Expand Down
1 change: 0 additions & 1 deletion rpm_spec/qmgr.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ rm -rf $RPM_BUILD_ROOT
/usr/bin/qvm-template-gui
/usr/libexec/qubes-manager/mount_for_backup.sh
/usr/libexec/qubes-manager/qvm_about.sh
/usr/libexec/qubes-manager/dsa-4371-update

%dir %{python3_sitelib}/qubesmanager
%{python3_sitelib}/qubesmanager/__pycache__
Expand Down

0 comments on commit 77dbc73

Please sign in to comment.