1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00

Added firejail profiles for cmus with cmusfm

This commit is contained in:
Ryan 2017-01-03 20:46:47 +01:00
parent 835b99722e
commit 7ebabb7145
4 changed files with 57 additions and 1 deletions

20
bin/bin/backup.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
REPOSITORY=~/stackdav/thinkpadbackup
# Backup all of /home and /var/www except a few
# excluded directories
borg create -v --stats \
$REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \
/home/alrayyes \
--exclude '/home/alrayyes/.cache' \
--exclude '/home/alrayyes/stackdav' \
--exclude '/home/alrayyes/music' \
--exclude '/home/alrayyes/Dropbox' \
--exclude '/home/alrayyes/gPodder/Downloads'
# Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly
# archives of THIS machine. The '{hostname}-' prefix is very important to
# limit prune's operation to this machine's archives and not apply to
# other machine's archives also.
borg prune -v --list $REPOSITORY --prefix '{hostname}-' \
--keep-daily=7 --keep-weekly=4 --keep-monthly=6

View File

@ -0,0 +1,18 @@
# cmus profile
noblacklist ${HOME}/.config/cmus
include /etc/firejail/disable-common.inc
include /etc/firejail/disable-programs.inc
include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc
caps.drop all
netfilter
nonewprivs
noroot
protocol unix,inet,inet6
seccomp
private-bin cmus,cmusfm
private-etc group
shell none

View File

@ -0,0 +1,18 @@
# cmusfm profile
noblacklist ${HOME}/.config/cmus
include /etc/firejail/disable-common.inc
include /etc/firejail/disable-programs.inc
include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc
caps.drop all
netfilter
nonewprivs
noroot
protocol unix,inet,inet6
seccomp
private-bin cmusfm
private-etc group
shell none

@ -1 +1 @@
Subproject commit 97c03841691021f916c46b2fd2d089d7970400aa
Subproject commit ff5629e60b815b3c21ef216d5ba5943932589758