Skip to content

Commit

Permalink
deploy: install "template-from-qubesdb" in base template and sd-whonix
Browse files Browse the repository at this point in the history
  • Loading branch information
cfm committed May 23, 2024
1 parent 538d8aa commit b046ec4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dom0/qubesdb-config.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
install-template-from-qubesdb:
file.managed:
- name: /usr/local/bin/template-from-qubesdb
- source: "salt://template-from-qubesdb.py"
- mode: 755
2 changes: 2 additions & 0 deletions dom0/sd-workstation.top
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ base:
- sd-remove-unused-templates

sd-base-bookworm-template:
- qubesdb-config
- sd-base-template-files
- sd-workstation-template-files
sd-small-bookworm-template:
Expand All @@ -39,6 +40,7 @@ base:
- sd-app-config
- sd-mime-handling
sd-whonix:
- qubesdb-config
- sd-whonix-hidserv-key
'sd-fedora-39-dvm,sys-usb':
- match: list
Expand Down
3 changes: 3 additions & 0 deletions rpm-build/SPECS/securedrop-workstation-dom0-config.spec
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ install -m 755 files/sdw-notify.py %{buildroot}/%{_bindir}/sdw-notify
install -m 755 files/sdw-login.py %{buildroot}/%{_bindir}/sdw-login
install -m 644 files/sdw-notify.service %{buildroot}/%{_userunitdir}/
install -m 644 files/sdw-notify.timer %{buildroot}/%{_userunitdir}/
install -m 755 files/template-from-qubesdb.py %{buildroot}/srv/salt/template-from-qubesdb.py

install -m 755 -d %{buildroot}/etc/qubes/policy.d/
install -m 644 files/31-securedrop-workstation.policy %{buildroot}/etc/qubes/policy.d/
Expand All @@ -129,7 +130,9 @@ install -m 755 -d %{buildroot}/opt/securedrop
/srv/salt/securedrop-*
/srv/salt/update-xfce-settings
/srv/salt/fpf*
/srv/salt/qubesdb-config.sls
/srv/salt/press.freedom.SecureDropUpdater.desktop
/srv/salt/template-from-qubesdb.py

%attr(755, root, root) %{_bindir}/sdw-login
%attr(755, root, root) %{_bindir}/sdw-notify
Expand Down

0 comments on commit b046ec4

Please sign in to comment.