mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
jail zathura
For shady PDFs, firewarden is still the better solution, but jailing zathura with the generic profile isn't going to hurt anything when viewing trusted docs.
This commit is contained in:
parent
a71ce2b0cf
commit
577c9bfc67
3 changed files with 17 additions and 2 deletions
11
roles/office/files/zathura.sh
Normal file
11
roles/office/files/zathura.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
FIREJAIL=""
|
||||
|
||||
hash firejail 2> /dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
FIREJAIL=firejail
|
||||
fi
|
||||
|
||||
$FIREJAIL /usr/bin/zathura "$@"
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: base }
|
||||
- { role: x }
|
||||
- { role: firejail }
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
- zathura-pdf-mupdf
|
||||
- zathura-ps
|
||||
|
||||
- name: Jail Zathura
|
||||
copy: src=zathura.sh dest=/usr/local/bin/zathura mode=0755
|
||||
tags:
|
||||
- firejail
|
||||
|
||||
- name: Install enscript
|
||||
pacman: name=enscript state=present
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue