mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Main changes:
* Remove the space after `#` for commented code lines to distinguish
them from normal comments
* Use `#` instead of `-` for comments at the end of the line so that
commented code lines work after being uncommented
Commands used to search and replace:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git ls-files -z -- etc/inc etc/profile* | xargs -0 -I '{}' \
sh -c "printf '%s\n' \"\$(sed -E \
-e 's/^# ($arg0)( [#-]-? .*)?\$/#\\1\\2/' \
-e 's/^# ($arg1)( [^ ]*)?( [#-]-? .*)?\$/#\\1\\2\\3/' \
-e 's/^# (whitelist \\$)/#\\1/' \
-e 's/^(#[^ ].+) --? /\\1 # /' \
'{}')\" >'{}'"
Commands used to check for leftover entries:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git grep -E "^# ($arg0|$arg1)( +|$)" -- etc/inc etc/profile*
See also commit 30f9ad908 ("build: improve comments in firecfg.config",
2023-08-05) / PR #5942.
63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
# Firejail profile for gnome-schedule
|
|
# Description: Graphical interface to crontab and at for GNOME
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include gnome-schedule.local
|
|
# Persistent global definitions
|
|
include globals.local
|
|
|
|
noblacklist ${HOME}/.gnome/gnome-schedule
|
|
|
|
# Needs at and crontab to read/write user cron
|
|
noblacklist ${PATH}/at
|
|
noblacklist ${PATH}/crontab
|
|
|
|
# Needs access to these files/dirs
|
|
noblacklist /etc/cron.allow
|
|
noblacklist /etc/cron.deny
|
|
noblacklist /etc/shadow
|
|
noblacklist /var/spool/cron
|
|
|
|
# cron job testing needs a terminal, resulting in sandbox escape (see disable-common.inc)
|
|
# add 'noblacklist ${PATH}/your-terminal' to gnome-schedule.local if you need that functionality
|
|
|
|
# Allow python (blacklisted by disable-interpreters.inc)
|
|
include allow-python2.inc
|
|
include allow-python3.inc
|
|
|
|
include disable-common.inc
|
|
include disable-devel.inc
|
|
include disable-exec.inc
|
|
include disable-interpreters.inc
|
|
include disable-programs.inc
|
|
include disable-xdg.inc
|
|
|
|
mkfile ${HOME}/.gnome/gnome-schedule
|
|
whitelist ${HOME}/.gnome/gnome-schedule
|
|
whitelist /usr/share/gnome-schedule
|
|
whitelist /var/spool/atd
|
|
whitelist /var/spool/cron
|
|
include whitelist-common.inc
|
|
include whitelist-runuser-common.inc
|
|
include whitelist-usr-share-common.inc
|
|
include whitelist-var-common.inc
|
|
|
|
apparmor
|
|
caps.keep chown,dac_override,setgid,setuid
|
|
ipc-namespace
|
|
machine-id
|
|
#net none # breaks on Ubuntu
|
|
no3d
|
|
nodvd
|
|
nogroups
|
|
noinput
|
|
nosound
|
|
notv
|
|
nou2f
|
|
novideo
|
|
tracelog
|
|
|
|
disable-mnt
|
|
private-cache
|
|
private-dev
|
|
writable-var
|