Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide mime and paxctld configuration for template consolidation #190

Merged
merged 2 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions securedrop-workstation-config/debian/changelog-buster
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
securedrop-workstation-config (0.1.4+buster) unstable; urgency=medium

* Provides mime type files all VMs for template consolidation

-- SecureDrop Team <securedrop@freedom.press> Wed, 26 Aug 2020 15:24:29 -0400

securedrop-workstation-config (0.1.3+buster) unstable; urgency=medium

* Adds securedrop-keyring to list of dependencies
Expand Down
46 changes: 46 additions & 0 deletions securedrop-workstation-config/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/sh
# postinst script for securedrop-workstation-config
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
configure)
# move pax flags and restart paxctld service
# except for whonix-based VMs
if [ ! -e "/etc/whonix_version" ]; then
cp /opt/sdw/paxctld.conf /etc/paxctld.conf
systemctl restart paxctld
fi
cp /opt/sdw/open-in-dvm.desktop /usr/share/applications/
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mimeapps.list.sd-viewer opt/sdw/
mimeapps.list.sd-app opt/sdw/
mimeapps.list.sd-devices-dvm opt/sdw/
open-in-dvm.desktop opt/sdw/
paxctld.conf opt/sdw/
297 changes: 297 additions & 0 deletions securedrop-workstation-config/mimeapps.list.sd-app
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
[Default Applications]
application/x-dia-diagram=open-in-dvm.desktop;
text/x-vcard=open-in-dvm.desktop;
text/directory=open-in-dvm.desktop;
text/calendar=open-in-dvm.desktop;
application/x-cd-image=open-in-dvm.desktop;
application/x-desktop=open-in-dvm.desktop;
application/x-raw-disk-image=open-in-dvm.desktop;
application/x-raw-disk-image-xz-compressed=open-in-dvm.desktop;
image/x-compressed-xcf=open-in-dvm.desktop;
image/x-xcf=open-in-dvm.desktop;
image/x-psd=open-in-dvm.desktop;
image/x-fits=open-in-dvm.desktop;
image/bmp=open-in-dvm.desktop;
image/gif=open-in-dvm.desktop;
image/x-icb=open-in-dvm.desktop;
image/x-ico=open-in-dvm.desktop;
image/x-pcx=open-in-dvm.desktop;
image/x-portable-anymap=open-in-dvm.desktop;
image/x-portable-bitmap=open-in-dvm.desktop;
image/x-portable-graymap=open-in-dvm.desktop;
image/x-portable-pixmap=open-in-dvm.desktop;
image/x-xbitmap=open-in-dvm.desktop;
image/x-xpixmap=open-in-dvm.desktop;
image/svg+xml=open-in-dvm.desktop;
application/vnd.ms-word=open-in-dvm.desktop;
application/vnd.wordperfect=open-in-dvm.desktop;
application/vnd.sun.xml.writer=open-in-dvm.desktop;
application/vnd.sun.xml.writer.global=open-in-dvm.desktop;
application/vnd.sun.xml.writer.template=open-in-dvm.desktop;
application/vnd.stardivision.writer=open-in-dvm.desktop;
application/vnd.oasis.opendocument.text=open-in-dvm.desktop;
application/vnd.oasis.opendocument.text-template=open-in-dvm.desktop;
application/vnd.oasis.opendocument.text-web=open-in-dvm.desktop;
application/vnd.oasis.opendocument.text-master=open-in-dvm.desktop;
application/vnd.openxmlformats-officedocument.wordprocessingml.document=open-in-dvm.desktop;
application/vnd.openxmlformats-officedocument.wordprocessingml.template=open-in-dvm.desktop;
application/vnd.ms-excel=open-in-dvm.desktop;
application/vnd.stardivision.calc=open-in-dvm.desktop;
application/vnd.sun.xml.calc=open-in-dvm.desktop;
application/vnd.sun.xml.calc.template=open-in-dvm.desktop;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=open-in-dvm.desktop;
application/vnd.openxmlformats-officedocument.spreadsheetml.template=open-in-dvm.desktop;
application/vnd.oasis.opendocument.spreadsheet=open-in-dvm.desktop;
application/vnd.oasis.opendocument.spreadsheet-template=open-in-dvm.desktop;
application/vnd.ms-powerpoint=open-in-dvm.desktop;
application/vnd.stardivision.impress=open-in-dvm.desktop;
application/vnd.sun.xml.impress=open-in-dvm.desktop;
application/vnd.sun.xml.impress.template=open-in-dvm.desktop;
application/vnd.oasis.opendocument.presentation=open-in-dvm.desktop;
application/vnd.oasis.opendocument.presentation-template=open-in-dvm.desktop;
application/vnd.openxmlformats-officedocument.presentationml.presentation=open-in-dvm.desktop;
application/vnd.openxmlformats-officedocument.presentationml.template=open-in-dvm.desktop;
application/vnd.stardivision.draw=open-in-dvm.desktop;
application/vnd.sun.xml.draw=open-in-dvm.desktop;
application/vnd.sun.xml.draw.template=open-in-dvm.desktop;
application/vnd.oasis.opendocument.graphics=open-in-dvm.desktop;
application/vnd.oasis.opendocument.graphics-template=open-in-dvm.desktop;
application/vnd.oasis.opendocument.formula=open-in-dvm.desktop;
application/vnd.sun.xml.math=open-in-dvm.desktop;
application/vnd.stardivision.math=open-in-dvm.desktop;
application/vnd.oasis.opendocument.database=open-in-dvm.desktop;
application/vnd.sun.xml.base=open-in-dvm.desktop;
application/pdf=open-in-dvm.desktop;
application/postscript=open-in-dvm.desktop;
application/x-qw=open-in-dvm.desktop;
application/x-gnucash=open-in-dvm.desktop;
application/vnd.lotus-1-2-3=open-in-dvm.desktop;
application/x-oleo=open-in-dvm.desktop;
application/x-gnumeric=open-in-dvm.desktop;
application/x-xbase=open-in-dvm.desktop;
application/x-abiword=open-in-dvm.desktop;
application/x-dvi=open-in-dvm.desktop;
application/x-catalog=open-in-dvm.desktop;
application/x-rpm=open-in-dvm.desktop;
text/csv=open-in-dvm.desktop;
text/plain=open-in-dvm.desktop;
text/html=open-in-dvm.desktop;
application/xhtml+xml=open-in-dvm.desktop;
inode/directory=open-in-dvm.desktop;
x-content/blank-cd=open-in-dvm.desktop;
x-content/blank-dvd=open-in-dvm.desktop;
x-content/blank-bd=open-in-dvm.desktop;
x-content/blank-hddvd=open-in-dvm.desktop;
x-content/video-dvd=open-in-dvm.desktop;
x-content/video-vcd=open-in-dvm.desktop;
x-content/video-svcd=open-in-dvm.desktop;
#x-content/video-bluray=open-in-dvm.desktop;
#x-content/video-hddvd=open-in-dvm.desktop;
x-content/audio-cdda=open-in-dvm.desktop;
x-content/audio-dvd=open-in-dvm.desktop;
x-content/audio-player=open-in-dvm.desktop;
x-content/image-dcf=open-in-dvm.desktop;
x-content/image-picturecd=open-in-dvm.desktop;
# URI scheme handlers
x-scheme-handler/mailto=open-in-dvm.desktop;
x-scheme-handler/http=open-in-dvm.desktop;
x-scheme-handler/https=open-in-dvm.desktop;
application/mxf=open-in-dvm.desktop;
application/ogg=open-in-dvm.desktop;
application/ram=open-in-dvm.desktop;
application/sdp=open-in-dvm.desktop;
application/smil=open-in-dvm.desktop;
application/smil+xml=open-in-dvm.desktop;
application/vnd.apple.mpegurl=open-in-dvm.desktop;
application/vnd.ms-wpl=open-in-dvm.desktop;
application/vnd.rn-realmedia=open-in-dvm.desktop;
application/x-extension-m4a=open-in-dvm.desktop;
application/x-extension-mp4=open-in-dvm.desktop;
application/x-flac=open-in-dvm.desktop;
application/x-flash-video=open-in-dvm.desktop;
application/x-matroska=open-in-dvm.desktop;
application/x-netshow-channel=open-in-dvm.desktop;
application/x-ogg=open-in-dvm.desktop;
application/x-quicktime-media-link=open-in-dvm.desktop;
application/x-quicktimeplayer=open-in-dvm.desktop;
application/x-shorten=open-in-dvm.desktop;
application/x-smil=open-in-dvm.desktop;
application/xspf+xml=open-in-dvm.desktop;
audio/3gpp=open-in-dvm.desktop;
audio/ac3=open-in-dvm.desktop;
audio/AMR=open-in-dvm.desktop;
audio/AMR-WB=open-in-dvm.desktop;
audio/basic=open-in-dvm.desktop;
audio/midi=open-in-dvm.desktop;
audio/mp2=open-in-dvm.desktop;
audio/mp4=open-in-dvm.desktop;
audio/mpeg=open-in-dvm.desktop;
audio/mpegurl=open-in-dvm.desktop;
audio/ogg=open-in-dvm.desktop;
audio/prs.sid=open-in-dvm.desktop;
audio/vnd.rn-realaudio=open-in-dvm.desktop;
audio/x-aiff=open-in-dvm.desktop;
audio/x-ape=open-in-dvm.desktop;
audio/x-flac=open-in-dvm.desktop;
audio/x-gsm=open-in-dvm.desktop;
audio/x-it=open-in-dvm.desktop;
audio/x-m4a=open-in-dvm.desktop;
audio/x-matroska=open-in-dvm.desktop;
audio/x-mod=open-in-dvm.desktop;
audio/x-mp3=open-in-dvm.desktop;
audio/x-mpeg=open-in-dvm.desktop;
audio/x-mpegurl=open-in-dvm.desktop;
audio/x-ms-asf=open-in-dvm.desktop;
audio/x-ms-asx=open-in-dvm.desktop;
audio/x-ms-wax=open-in-dvm.desktop;
audio/x-ms-wma=open-in-dvm.desktop;
audio/x-musepack=open-in-dvm.desktop;
audio/x-pn-aiff=open-in-dvm.desktop;
audio/x-pn-au=open-in-dvm.desktop;
audio/x-pn-realaudio=open-in-dvm.desktop;
audio/x-pn-realaudio-plugin=open-in-dvm.desktop;
audio/x-pn-wav=open-in-dvm.desktop;
audio/x-pn-windows-acm=open-in-dvm.desktop;
audio/x-realaudio=open-in-dvm.desktop;
audio/x-real-audio=open-in-dvm.desktop;
audio/x-s3m=open-in-dvm.desktop;
audio/x-sbc=open-in-dvm.desktop;
audio/x-scpls=open-in-dvm.desktop;
audio/x-speex=open-in-dvm.desktop;
audio/x-stm=open-in-dvm.desktop;
audio/x-tta=open-in-dvm.desktop;
audio/x-wav=open-in-dvm.desktop;
audio/x-wavpack=open-in-dvm.desktop;
audio/x-vorbis=open-in-dvm.desktop;
audio/x-vorbis+ogg=open-in-dvm.desktop;
audio/x-xm=open-in-dvm.desktop;
image/vnd.rn-realpix=open-in-dvm.desktop;
image/x-pict=open-in-dvm.desktop;
misc/ultravox=open-in-dvm.desktop;
text/google-video-pointer=open-in-dvm.desktop;
text/x-google-video-pointer=open-in-dvm.desktop;
video/3gp=open-in-dvm.desktop;
video/3gpp=open-in-dvm.desktop;
video/dv=open-in-dvm.desktop;
video/divx=open-in-dvm.desktop;
video/fli=open-in-dvm.desktop;
video/flv=open-in-dvm.desktop;
video/mp2t=open-in-dvm.desktop;
video/mp4=open-in-dvm.desktop;
video/mp4v-es=open-in-dvm.desktop;
video/mpeg=open-in-dvm.desktop;
video/msvideo=open-in-dvm.desktop;
video/ogg=open-in-dvm.desktop;
video/quicktime=open-in-dvm.desktop;
video/vivo=open-in-dvm.desktop;
video/vnd.divx=open-in-dvm.desktop;
video/vnd.mpegurl=open-in-dvm.desktop;
video/vnd.rn-realvideo=open-in-dvm.desktop;
video/vnd.vivo=open-in-dvm.desktop;
video/webm=open-in-dvm.desktop;
video/x-anim=open-in-dvm.desktop;
video/x-avi=open-in-dvm.desktop;
video/x-flc=open-in-dvm.desktop;
video/x-fli=open-in-dvm.desktop;
video/x-flic=open-in-dvm.desktop;
video/x-flv=open-in-dvm.desktop;
video/x-m4v=open-in-dvm.desktop;
video/x-matroska=open-in-dvm.desktop;
video/x-mpeg=open-in-dvm.desktop;
video/x-mpeg2=open-in-dvm.desktop;
video/x-ms-asf=open-in-dvm.desktop;
video/x-ms-asx=open-in-dvm.desktop;
video/x-msvideo=open-in-dvm.desktop;
video/x-ms-wm=open-in-dvm.desktop;
video/x-ms-wmv=open-in-dvm.desktop;
video/x-ms-wmx=open-in-dvm.desktop;
video/x-ms-wvx=open-in-dvm.desktop;
video/x-nsv=open-in-dvm.desktop;
video/x-ogm+ogg=open-in-dvm.desktop;
video/x-theora+ogg=open-in-dvm.desktop;
video/x-totem-stream=open-in-dvm.desktop;
x-content/video-dvd=open-in-dvm.desktop;
x-content/video-vcd=open-in-dvm.desktop;
x-content/video-svcd=open-in-dvm.desktop;
x-scheme-handler/pnm=open-in-dvm.desktop;
x-scheme-handler/mms=open-in-dvm.desktop;
x-scheme-handler/net=open-in-dvm.desktop;
x-scheme-handler/rtp=open-in-dvm.desktop;
x-scheme-handler/rtmp=open-in-dvm.desktop;
x-scheme-handler/rtsp=open-in-dvm.desktop;
x-scheme-handler/mmsh=open-in-dvm.desktop;
x-scheme-handler/uvox=open-in-dvm.desktop;
x-scheme-handler/icy=open-in-dvm.desktop;
x-scheme-handler/icyx=open-in-dvm.desktop;
application/x-7z-compressed=open-in-dvm.desktop;
application/x-7z-compressed-tar=open-in-dvm.desktop;
application/x-ace=open-in-dvm.desktop;
application/x-alz=open-in-dvm.desktop;
application/x-ar=open-in-dvm.desktop;
application/x-arj=open-in-dvm.desktop;
application/x-bzip=open-in-dvm.desktop;
application/x-bzip-compressed-tar=open-in-dvm.desktop;
application/x-bzip1=open-in-dvm.desktop;
application/x-bzip1-compressed-tar=open-in-dvm.desktop;
application/x-cabinet=open-in-dvm.desktop;
application/x-cbr=open-in-dvm.desktop;
application/x-cbz=open-in-dvm.desktop;
application/x-compress=open-in-dvm.desktop;
application/x-compressed-tar=open-in-dvm.desktop;
application/x-cpio=open-in-dvm.desktop;
application/x-deb=open-in-dvm.desktop;
application/x-ear=open-in-dvm.desktop;
application/x-ms-dos-executable=open-in-dvm.desktop;
application/x-gtar=open-in-dvm.desktop;
application/x-gzip=open-in-dvm.desktop;
application/x-gzpostscript=open-in-dvm.desktop;
application/x-java-archive=open-in-dvm.desktop;
application/x-lha=open-in-dvm.desktop;
application/x-lhz=open-in-dvm.desktop;
application/x-lrzip=open-in-dvm.desktop;
application/x-lrzip-compressed-tar=open-in-dvm.desktop;
application/x-lzip=open-in-dvm.desktop;
application/x-lzip-compressed-tar=open-in-dvm.desktop;
application/x-lzma=open-in-dvm.desktop;
application/x-lzma-compressed-tar=open-in-dvm.desktop;
application/x-lzop=open-in-dvm.desktop;
application/x-lzop-compressed-tar=open-in-dvm.desktop;
application/x-ms-wim=open-in-dvm.desktop;
application/x-rar=open-in-dvm.desktop;
application/x-rar-compressed=open-in-dvm.desktop;
application/x-rzip=open-in-dvm.desktop;
application/x-tar=open-in-dvm.desktop;
application/x-tarz=open-in-dvm.desktop;
application/x-stuffit=open-in-dvm.desktop;
application/x-war=open-in-dvm.desktop;
application/x-xz=open-in-dvm.desktop;
application/x-xz-compressed-tar=open-in-dvm.desktop;
application/x-zip=open-in-dvm.desktop;
application/x-zip-compressed=open-in-dvm.desktop;
application/x-zoo=open-in-dvm.desktop;
application/zip=open-in-dvm.desktop;
application/x-archive=open-in-dvm.desktop;
application/vnd.ms-cab-compressed=open-in-dvm.desktop;
application/x-source-rpm=open-in-dvm.desktop;
image/bmp=open-in-dvm.desktop;
image/gif=open-in-dvm.desktop;
image/jpeg=open-in-dvm.desktop;
image/jpg=open-in-dvm.desktop;
image/pjpeg=open-in-dvm.desktop;
image/png=open-in-dvm.desktop;
image/tiff=open-in-dvm.desktop;
image/x-bmp=open-in-dvm.desktop;
image/x-gray=open-in-dvm.desktop;
image/x-icb=open-in-dvm.desktop;
image/x-ico=open-in-dvm.desktop;
image/x-png=open-in-dvm.desktop;
image/x-portable-anymap=open-in-dvm.desktop;
image/x-portable-bitmap=open-in-dvm.desktop;
image/x-portable-graymap=open-in-dvm.desktop;
image/x-portable-pixmap=open-in-dvm.desktop;
image/x-xbitmap=open-in-dvm.desktop;
image/x-xpixmap=open-in-dvm.desktop;
image/x-pcx=open-in-dvm.desktop;
image/svg+xml=open-in-dvm.desktop;
image/svg+xml-compressed=open-in-dvm.desktop;
image/vnd.wap.wbmp=open-in-dvm.desktop;
Loading