mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
profiles: refactor log viewers (#5996)
* profiles: refactor log viewers Introduces system-log-common.profile as a common profile for existing GUI log viewer applications. * system-log-common: enable no3d
This commit is contained in:
parent
27c3e97989
commit
dd55390120
4 changed files with 72 additions and 128 deletions
|
|
@ -6,49 +6,15 @@ include gnome-logs.local
|
||||||
# Persistent global definitions
|
# Persistent global definitions
|
||||||
include globals.local
|
include globals.local
|
||||||
|
|
||||||
include disable-common.inc
|
whitelist /usr/share/gnome-logs
|
||||||
include disable-devel.inc
|
|
||||||
include disable-exec.inc
|
|
||||||
include disable-interpreters.inc
|
|
||||||
include disable-programs.inc
|
|
||||||
include disable-shell.inc
|
|
||||||
include disable-xdg.inc
|
|
||||||
|
|
||||||
whitelist /var/log/journal
|
|
||||||
include whitelist-runuser-common.inc
|
|
||||||
include whitelist-usr-share-common.inc
|
|
||||||
include whitelist-var-common.inc
|
|
||||||
|
|
||||||
apparmor
|
|
||||||
caps.drop all
|
|
||||||
ipc-namespace
|
|
||||||
net none
|
|
||||||
no3d
|
|
||||||
nodvd
|
|
||||||
noinput
|
|
||||||
nonewprivs
|
|
||||||
nosound
|
|
||||||
notv
|
|
||||||
nou2f
|
|
||||||
novideo
|
|
||||||
protocol unix
|
|
||||||
seccomp
|
|
||||||
tracelog
|
|
||||||
|
|
||||||
disable-mnt
|
|
||||||
private-bin gnome-logs
|
private-bin gnome-logs
|
||||||
private-cache
|
|
||||||
private-dev
|
|
||||||
private-etc
|
|
||||||
private-lib gdk-pixbuf-2.*,gio,gvfs/libgvfscommon.so,libgconf-2.so.*,librsvg-2.so.*
|
private-lib gdk-pixbuf-2.*,gio,gvfs/libgvfscommon.so,libgconf-2.so.*,librsvg-2.so.*
|
||||||
private-tmp
|
|
||||||
writable-var-log
|
|
||||||
|
|
||||||
dbus-user filter
|
dbus-user filter
|
||||||
dbus-user.own org.gnome.Logs
|
dbus-user.own org.gnome.Logs
|
||||||
dbus-user.talk ca.desrt.dconf
|
dbus-user.talk ca.desrt.dconf
|
||||||
dbus-system none
|
ignore dbus-user none
|
||||||
|
|
||||||
# Add 'ignore read-only ${HOME}' to your gnome-logs.local if you export logs to a file under your ${HOME}.
|
# Redirect
|
||||||
read-only ${HOME}
|
include system-log-common.profile
|
||||||
restrict-namespaces
|
|
||||||
|
|
|
||||||
|
|
@ -6,51 +6,13 @@ include gnome-system-log.local
|
||||||
# Persistent global definitions
|
# Persistent global definitions
|
||||||
include globals.local
|
include globals.local
|
||||||
|
|
||||||
include disable-common.inc
|
# 'net none' breaks dbus
|
||||||
include disable-devel.inc
|
ignore net none
|
||||||
include disable-exec.inc
|
|
||||||
include disable-interpreters.inc
|
|
||||||
include disable-programs.inc
|
|
||||||
include disable-shell.inc
|
|
||||||
include disable-xdg.inc
|
|
||||||
|
|
||||||
whitelist /var/log
|
|
||||||
include whitelist-common.inc
|
|
||||||
include whitelist-usr-share-common.inc
|
|
||||||
include whitelist-var-common.inc
|
|
||||||
|
|
||||||
apparmor
|
|
||||||
caps.drop all
|
|
||||||
ipc-namespace
|
|
||||||
#net none # breaks dbus
|
|
||||||
no3d
|
|
||||||
nodvd
|
|
||||||
# When using 'volatile' storage (https://www.freedesktop.org/software/systemd/man/journald.conf.html),
|
|
||||||
# put 'ignore nogroups' and 'ignore noroot' in your gnome-system-log.local.
|
|
||||||
nogroups
|
|
||||||
noinput
|
|
||||||
nonewprivs
|
|
||||||
noroot
|
|
||||||
nosound
|
|
||||||
notv
|
|
||||||
nou2f
|
|
||||||
novideo
|
|
||||||
protocol unix
|
|
||||||
seccomp
|
|
||||||
|
|
||||||
disable-mnt
|
|
||||||
private-bin gnome-system-log
|
private-bin gnome-system-log
|
||||||
private-cache
|
|
||||||
private-dev
|
|
||||||
private-etc
|
|
||||||
private-lib
|
private-lib
|
||||||
private-tmp
|
|
||||||
writable-var-log
|
|
||||||
|
|
||||||
#dbus-user none
|
|
||||||
#dbus-system none
|
|
||||||
|
|
||||||
memory-deny-write-execute
|
memory-deny-write-execute
|
||||||
# Add 'ignore read-only ${HOME}' to your gnome-system-log.local if you export logs to a file under your ${HOME}.
|
|
||||||
read-only ${HOME}
|
# Redirect
|
||||||
restrict-namespaces
|
include system-log-common.profile
|
||||||
|
|
|
||||||
|
|
@ -9,60 +9,16 @@ include globals.local
|
||||||
noblacklist ${HOME}/.cache/journal-viewer
|
noblacklist ${HOME}/.cache/journal-viewer
|
||||||
noblacklist ${HOME}/.local/share/com.vmingueza.journal-viewer
|
noblacklist ${HOME}/.local/share/com.vmingueza.journal-viewer
|
||||||
|
|
||||||
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-xdg.inc
|
|
||||||
|
|
||||||
mkdir ${HOME}/.cache/journal-viewer
|
mkdir ${HOME}/.cache/journal-viewer
|
||||||
mkdir ${HOME}/.local/share/com.vmingueza.journal-viewer
|
mkdir ${HOME}/.local/share/com.vmingueza.journal-viewer
|
||||||
whitelist ${HOME}/.cache/journal-viewer
|
whitelist ${HOME}/.cache/journal-viewer
|
||||||
whitelist ${HOME}/.local/share/com.vmingueza.journal-viewer
|
whitelist ${HOME}/.local/share/com.vmingueza.journal-viewer
|
||||||
whitelist /run/log/journal
|
|
||||||
whitelist /var/log/journal
|
|
||||||
include whitelist-common.inc
|
|
||||||
include whitelist-run-common.inc
|
|
||||||
include whitelist-runuser-common.inc
|
|
||||||
include whitelist-usr-share-common.inc
|
|
||||||
include whitelist-var-common.inc
|
|
||||||
|
|
||||||
apparmor
|
|
||||||
caps.drop all
|
|
||||||
ipc-namespace
|
|
||||||
net none
|
|
||||||
no3d
|
|
||||||
nodvd
|
|
||||||
nogroups
|
|
||||||
noinput
|
|
||||||
nonewprivs
|
|
||||||
noprinters
|
|
||||||
noroot
|
|
||||||
nosound
|
|
||||||
notv
|
|
||||||
nou2f
|
|
||||||
novideo
|
|
||||||
protocol unix
|
|
||||||
seccomp
|
|
||||||
seccomp.block-secondary
|
|
||||||
tracelog
|
|
||||||
|
|
||||||
disable-mnt
|
|
||||||
private-bin journal-viewer
|
private-bin journal-viewer
|
||||||
private-cache
|
|
||||||
private-dev
|
|
||||||
private-etc machine-id
|
|
||||||
private-lib webkit2gtk-*
|
private-lib webkit2gtk-*
|
||||||
private-tmp
|
|
||||||
|
|
||||||
dbus-user none
|
|
||||||
dbus-system none
|
|
||||||
|
|
||||||
restrict-namespaces
|
|
||||||
read-only ${HOME}
|
|
||||||
read-write ${HOME}/.cache/journal-viewer
|
read-write ${HOME}/.cache/journal-viewer
|
||||||
read-write ${HOME}/.local/share/com.vmingueza.journal-viewer
|
read-write ${HOME}/.local/share/com.vmingueza.journal-viewer
|
||||||
writable-var-log
|
|
||||||
|
# Redirect
|
||||||
|
include system-log-common.profile
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
# Firejail profile for system-log-common
|
||||||
|
# Description: Common profile for GUI system log viewers
|
||||||
|
# This file is overwritten after every install/update
|
||||||
|
# Persistent local customizations
|
||||||
|
include system-log-common.local
|
||||||
|
# Persistent global definitions
|
||||||
|
# added by caller profile
|
||||||
|
#include globals.local
|
||||||
|
|
||||||
|
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-xdg.inc
|
||||||
|
|
||||||
|
whitelist /run/log/journal
|
||||||
|
whitelist /var/log/journal
|
||||||
|
include whitelist-common.inc
|
||||||
|
include whitelist-run-common.inc
|
||||||
|
include whitelist-runuser-common.inc
|
||||||
|
include whitelist-usr-share-common.inc
|
||||||
|
include whitelist-var-common.inc
|
||||||
|
|
||||||
|
apparmor
|
||||||
|
caps.drop all
|
||||||
|
ipc-namespace
|
||||||
|
net none
|
||||||
|
no3d
|
||||||
|
nodvd
|
||||||
|
#nogroups
|
||||||
|
noinput
|
||||||
|
nonewprivs
|
||||||
|
noprinters
|
||||||
|
#noroot
|
||||||
|
nosound
|
||||||
|
notv
|
||||||
|
nou2f
|
||||||
|
novideo
|
||||||
|
protocol unix
|
||||||
|
seccomp
|
||||||
|
seccomp.block-secondary
|
||||||
|
tracelog
|
||||||
|
|
||||||
|
disable-mnt
|
||||||
|
private-cache
|
||||||
|
private-dev
|
||||||
|
private-etc machine-id
|
||||||
|
private-tmp
|
||||||
|
|
||||||
|
dbus-user none
|
||||||
|
dbus-system none
|
||||||
|
|
||||||
|
restrict-namespaces
|
||||||
|
# Add 'ignore read-only ${HOME}' to your system-log-common.local
|
||||||
|
# if you export logs to a file under your ${HOME}.
|
||||||
|
read-only ${HOME}
|
||||||
|
writable-var-log
|
||||||
Loading…
Add table
Add a link
Reference in a new issue