From a3e54e8b70fc41ebe5c44e28da4c8244822df316 Mon Sep 17 00:00:00 2001 From: Albert Kim Date: Thu, 1 Sep 2022 15:32:24 -0700 Subject: [PATCH] Add profile for chafa --- etc/profile-a-l/chafa.profile | 55 +++++++++++++++++++++++++++++++++++ src/firecfg/firecfg.config | 1 + 2 files changed, 56 insertions(+) create mode 100644 etc/profile-a-l/chafa.profile diff --git a/etc/profile-a-l/chafa.profile b/etc/profile-a-l/chafa.profile new file mode 100644 index 00000000000..b042ac189d0 --- /dev/null +++ b/etc/profile-a-l/chafa.profile @@ -0,0 +1,55 @@ +# Firejail profile for chafa +# Description: A terminal-based image viewer and image-to-text converter. +# This file is overwritten after every install/update +# Persistent local customizations +include chafa.local +# Persistent global definitions +include globals.local + +blacklist ${RUNUSER} +blacklist /usr/libexec + +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-proc.inc +include disable-programs.inc +include disable-shell.inc +include disable-write-mnt.inc + +include whitelist-run-common.inc +include whitelist-runuser-common.inc +# Add the following to your chafa.local if you do not need to view images in +# /usr/share. +#include whitelist-usr-share-common.inc +include whitelist-var-common.inc + +apparmor +caps.drop all +machine-id +net none +no3d +nodvd +nogroups +noinput +nonewprivs +noroot +nosound +notv +nou2f +novideo +seccomp socket +seccomp.block-secondary +tracelog +x11 none + +private-bin chafa +private-cache +private-dev +private-tmp + +dbus-user none +dbus-system none + +read-only ${HOME} diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 1de107a039a..72a33ed5a8b 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config @@ -127,6 +127,7 @@ cantata catfish cawbird celluloid +chafa checkbashisms cheese cherrytree