qvm_firewall.py support

This commit is contained in:
Giulio 2021-06-25 01:33:23 +02:00
parent c0948ec920
commit 9be929091c
4 changed files with 6 additions and 0 deletions

View File

@ -3,7 +3,9 @@
mkdir -p /home/user/backup/qubes mkdir -p /home/user/backup/qubes
mkdir -p /home/user/backup/qubes/vm/mix/ mkdir -p /home/user/backup/qubes/vm/mix/
mkdir -p /home/user/backup/qubesadmin/ mkdir -p /home/user/backup/qubesadmin/
mkdir -p /home/user/backup/qubesadmin/tools/
cp /usr/lib/python3.5/site-packages/qubes/firewall.py /home/user/backup/qubes/ cp /usr/lib/python3.5/site-packages/qubes/firewall.py /home/user/backup/qubes/
cp /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py /home/user/backup/qubes/vm/mix/ cp /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py /home/user/backup/qubes/vm/mix/
cp /usr/lib/python3.5/site-packages/qubesadmin/firewall.py /home/user/backup/qubesadmin/ cp /usr/lib/python3.5/site-packages/qubesadmin/firewall.py /home/user/backup/qubesadmin/
cp /usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_firewall.py /home/user/backup/qubesadmin/tools/

View File

@ -2,6 +2,8 @@
mkdir -p /tmp/core-admin/qubes/ mkdir -p /tmp/core-admin/qubes/
mkdir -p /tmp/core-admin/qubes/vm/mix/ mkdir -p /tmp/core-admin/qubes/vm/mix/
mkdir -p /tmp/core-admin-client/qubesadmin/ mkdir -p /tmp/core-admin-client/qubesadmin/
mkdir -p /tmp/core-admin-client/qubesadmin/tools/
scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin/qubes/firewall.py /tmp/core-admin/qubes/firewall.py scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin/qubes/firewall.py /tmp/core-admin/qubes/firewall.py
scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin/qubes/vm/mix/net.py /tmp/core-admin/qubes/vm/mix/net.py scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin/qubes/vm/mix/net.py /tmp/core-admin/qubes/vm/mix/net.py
scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin-client/qubesadmin/firewall.py /tmp/core-admin-client/qubesadmin/firewall.py scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin-client/qubesadmin/firewall.py /tmp/core-admin-client/qubesadmin/firewall.py
scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin-client/qubesadmin/tools/qvm_firewall.py /tmp/core-admin-client/qubesadmin/tools/qvm_firewall.py

View File

@ -3,4 +3,5 @@
cp /home/user/backup/qubes/firewall.py /usr/lib/python3.5/site-packages/qubes/firewall.py cp /home/user/backup/qubes/firewall.py /usr/lib/python3.5/site-packages/qubes/firewall.py
cp /home/user/backup/qubes/vm/mix/net.py /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py cp /home/user/backup/qubes/vm/mix/net.py /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py
cp /home/user/backup/qubesadmin/firewall.py /usr/lib/python3.5/site-packages/qubesadmin/firewall.py cp /home/user/backup/qubesadmin/firewall.py /usr/lib/python3.5/site-packages/qubesadmin/firewall.py
cp /home/user/backup/qubesadmin/tools/qvm_firewall.py /usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_firewall.py
systemctl restart qubesd systemctl restart qubesd

View File

@ -4,4 +4,5 @@ qvm-run --pass-io sys-net 'bash /home/user/pull.sh'
qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/firewall.py' > /usr/lib/python3.5/site-packages/qubes/firewall.py qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/firewall.py' > /usr/lib/python3.5/site-packages/qubes/firewall.py
qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/vm/mix/net.py' > /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/vm/mix/net.py' > /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py
qvm-run --pass-io sys-net 'cat /tmp/core-admin-client/qubesadmin/firewall.py' > /usr/lib/python3.5/site-packages/qubesadmin/firewall.py qvm-run --pass-io sys-net 'cat /tmp/core-admin-client/qubesadmin/firewall.py' > /usr/lib/python3.5/site-packages/qubesadmin/firewall.py
qvm-run --pass-io sys-net 'cat /tmp/core-admin-client/qubesadmin/tools/qvm_firewall.py' > /usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_firewall.py
systemctl restart qubesd systemctl restart qubesd