Harden sd-viewer configuration and provision mailcap default rules; bump version #661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
default_dispvm
setting)qubes.GetImageRGBA
policy for all workstation VMs (it otherwise can be used to launch disposable VMs)sdw-admin --apply
run, which is enforced in postinst by dropping a migration flag (interpreted via https://github.com/freedomofpress/securedrop-workstation/blob/main/dom0/securedrop-check-migration). This assumes the package is updated via the graphical updater. (Commit by @conorsch.)Side effects of RPC policy change
There should not be any negative impact from restricting the
GetImageRGBA
policy across SecureDrop Workstation VMs.qvm-convert-img
will no longer work in, e.g.,sd-devices
, butqvm-convert-pdf
already does not work due to our existingqubes.PdfConvert
policy. If we want to support PDF/image conversion in disposable VMs in future, that will require its own configuration.Test plan
Note: Mailcap configuration testing is handled in freedomofpress/securedrop-builder#221, which is dependent on this PR, and therefore not covered below.
securedrop-workstation
checkout indom0
, runmake clone
to build and fetch a fresh RPM.dom0
checkout, enter the directoryrpm-build/RPMS/noarch
. There should be a 0.5.3 RPM. Install it viasudo dnf install securedrop-workstation-dom0-config-0.5.3-1.fc25.noarch.rpm
./opt/securedrop/launcher/sdw-launcher.py --skip-delta 0
indom0
.qrexec-client-vm ‘@dispvm’ qubes.GetImageRGBA < /dev/urandom
Request refused
and that no disposable VM is opened.dom0
, runqvm-prefs sd-viewer default_dispvm
.sd-viewer
)securedrop-workstation
directory, ensure thatconfig.json
is present, then runmake test
test_sd_viewer_config
are passing.sd-log
qrexec-client-vm ‘@dispvm’ qubes.GetImageRGBA < /dev/urandom
does not open a disposable VM.