Skip to content

Instantly share code, notes, and snippets.

View eloquence's full-sized avatar

Erik Moeller eloquence

View GitHub Profile
[user@dom0 securedrop-workstation]$ make dev
./scripts/configure-environment --env dev
make validate
make[1]: Entering directory '/home/user/securedrop-workstation'
make[1]: Leaving directory '/home/user/securedrop-workstation'
make prep-dev
make[1]: Entering directory '/home/user/securedrop-workstation'
Deploying Salt config...
Uninstalling any previous RPM versions...
5 files removed
(Reading database ... 174797 files and directories currently installed.)
Preparing to unpack .../securedrop-workstation-grsec_4.14.186+buster2_amd64.deb ...
Unpacking securedrop-workstation-grsec (4.14.186+buster2) over (4.14.186+buster1) ...
Setting up securedrop-workstation-grsec (4.14.186+buster2) ...
Synchronizing state of paxctld.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable paxctld
-------- Uninstall Beginning --------
Module: u2mfn
Version: 4.0.30
$ securedrop-admin --apply
Applying configuration...
[CRITICAL] Specified ext_pillar interface qvm_prefs is unavailable
local:
----------
beacons:
clouds:
engines:
grains:
- grains.boot_mode
Warning: apt-key output should not be parsed (stdout is not a terminal)
pub rsa4096 2016-10-20 [SC] [expires: 2021-06-30]
2224 5C81 E3BA EB41 38B3 6061 310F 5612 00F4 AD77
uid [ unknown] SecureDrop Release Signing Key
uid [ unknown] SecureDrop Release Signing Key <securedrop-release-key@freedom.press>
VM: sd-app-buster-template
Warning: apt-key output should not be parsed (stdout is not a terminal)
pub rsa4096 2016-10-20 [SC] [expires: 2021-06-30]
2224 5C81 E3BA EB41 38B3 6061 310F 5612 00F4 AD77
2020-05-26 16:35:33,264 calling 'state.sls update.qubes-vm'...
2020-05-26 16:44:14,514 output: fedora-31:
2020-05-26 16:44:14,515 output: ----------
2020-05-26 16:44:14,515 output: ID: dnf list updates --refresh >/dev/null
2020-05-26 16:44:14,515 output: Function: cmd.run
2020-05-26 16:44:14,515 output: Result: True
2020-05-26 16:44:14,516 output: Comment: Command "dnf list updates --refresh >/dev/null" run
2020-05-26 16:44:14,516 output: Started: 16:36:15.702876
2020-05-26 16:44:14,516 output: Duration: 61459.992 ms
2020-05-26 16:44:14,516 output: Changes:
----------
ID: remove-rpc-policy-tags
Function: cmd.script
Name: salt://remove-tags
Result: True
Comment: Command 'salt://remove-tags' run
Started: 16:58:43.424708
Duration: 171.706 ms
Changes:
----------
This file has been truncated, but you can view the full file.
[erik@dom0 console]$ cat guest-sd-whonix.log
[.[0;32m OK .[0m] Stopped target .[0;1;39mMulti-User System.[0m.
[.[0;32m OK .[0m] Stopped target .[0;1;39mTimers.[0m.
[.[0;32m OK .[0m] Stopped .[0;1;39mDaily apt upgrade and clean activities.[0m.
[.[0;32m OK .[0m] Stopped .[0;1;39mPeriodically check for updates.[0m.
[.[0;32m OK .[0m] Stopped .[0;1;39mDaily rotation of log files.[0m.
[.[0;32m OK .[0m] Stopped .[0;1;39mDaily Cleanup of Temporary Directories.[0m.
Stopping .[0;1;39mSecure Distributed Web Date.[0m...
[.[0;32m OK .[0m] Stopped .[0;1;39mUpdate system time each 6h.[0m.
Stopping .[0;1;39mSession c2 of user user.[0m.
78,83c78
< if vm == "dom0":
< return _check_updates_dom0()
< elif vm == "fedora":
< return _check_updates_fedora()
< else:
< return _check_updates_debian(vm)
---
> return UpdateStatus.UPDATES_REQUIRED
93,99d87
#!/bin/python3
import qubesadmin
import subprocess
import sys
import time
q = qubesadmin.Qubes()
def main():
#!/bin/python3
import subprocess
import sys
import time
def main():
if len(sys.argv) == 1:
print("Syntax: force-shutdown.py vm-name")
exit(1)