diff options
author | Fred Barclay <Fred-Barclay@users.noreply.github.com> | 2018-04-02 10:56:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 10:56:55 -0500 |
commit | 2d8ff695ad5f240f99f1b789fb8994350e6eedf6 (patch) | |
tree | a396ba901298ca1b62d3640fc72475b5a718d8d1 /etc/youtube-dl.profile | |
parent | musixmatch: fix profile (diff) | |
download | firejail-2d8ff695ad5f240f99f1b789fb8994350e6eedf6.tar.gz firejail-2d8ff695ad5f240f99f1b789fb8994350e6eedf6.tar.zst firejail-2d8ff695ad5f240f99f1b789fb8994350e6eedf6.zip |
WIP: Blacklist common programming interpreters. (#1837)
* Use path variable instead of full path when blacklisting devel tools.
* Part 1: blacklist python, perl, ruby, etc in disable-interpreters.inc
* Part 2: allow access to java as needed
* Typo: missing blacklist
* Part 3: allow perl access as needed
* typo
* Add xreader thumbnailer and previewer profiles
* Add xplayer audio-preview and thumbnailer profiles
* Add atril thumbnailer and previewer profiles
* More fixups after adding disable-interpreters.inc
* Blacklist javac
* More javac noblacklisting
* Remove javac from dex2jar, libreoffice, multimc5, and pdfsam profiles
* --nodbus, first draft for #1825
* dbus.c
* rework akonadi integration
the usr.sbin.mysqld-akonadi apparmor profile, enforced by default in ubuntu and
debian testing (and probably opensuse), doesn't play well with a number of firejail options.
the reason for this is that once the no_new_privs bit is set, apparmor profile
transitions are forbidden.
enforcing our own apparmor policy instead is also no solution, because
these programs don't even start without d-bus.
relaxing the kmail profile was necessary so that kmail can fire up akonadi itself,
just in case akonadi has not been started earlier already by another program.
this is always an issue when kmail is the only installed akonadi client, but
there may be more circumstances. for reasons outlined above this doesn't help
debian and ubuntu (opensuse?) users though :-/
a brief summary of the seccomp exceptions: chroot is needed for qt webengine,
io_prioset for the akonadi indexing agent, io_getevents, io_submit, io_setup
are needed for mysqld. when akonadi has an sqlite3 backend, less exceptions
to the seccomp filter are necessary, but mysqld is the default.
in the future all kontact suite profiles (itm only kmail, knotes) should
probably be redirections to akonadi_control, but the issues with apparmor
make this somewhat impractical for now (options like 'protocol' couldn't go to
akonadi_control.local any more, if current kmail redirected to there).
* Add nodbus to some profiles - part 1
* Spotify works with nodbus on Arch
* Enable nodbus for keepassx and keepassxc profiles.
I've tested on keepassxc but should work for keepassx as well. Settings are not immutable.
* recalibrate dbus access, deploy nodbus option
see #1822 and #1825. also systematically replaces
'blacklist /run/user/*/bus' with 'nodbus'.
with contributions from @Fred-Barclay
* various blacklist additions
* Add a profile for ncdu, enable private-etc in Steam again, and fixup gnome-recipes
* comment nodbus where it interferes with dconf
pending further discussion
* Add a disabled and extensive private-bin for Steam
* Further improve private-bin in steam
* comment apparmor, net where they interfere with dconf - #1843
* gnome-calculator fixup
* spectre support for clang compiler
* spectre clang support
* enable/disable dbus handling in /etc/firejail/firejail.config
* nodbus man pages, etc.
* redirect knotes to kmail, some tweaks
* testing
* gimp fixup
* Even more fixups after adding disable-interpreters.inc
* AWS and GCP store credentials in local directories as part of project setup.
Configuration for cloud providers is sensitive information; it should be
in the default block list. I didn't see profiles for gcloud or awscli,
so haven't added any exclusions.
boto and kubectl are not provider-specific, but also store credentials for
whichever platforms they happen to be being used with.
* testing
* consolidate makefiles
* gitignore
* Use path variable instead of full path when blacklisting devel tools.
* Part 1: blacklist python, perl, ruby, etc in disable-interpreters.inc
* Part 2: allow access to java as needed
* Typo: missing blacklist
* Part 3: allow perl access as needed
* typo
* More fixups after adding disable-interpreters.inc
* Blacklist javac
* More javac noblacklisting
* Remove javac from dex2jar, libreoffice, multimc5, and pdfsam profiles
* Cleanup rebase leftovers
* imagej doesn't need javac access
* Add cc to blacklisted compilers
* Use wildcards when blacklisting some gcc paths
* Blacklist lua in disable-interpreters
* Correct blacklist for node.js
* Fred Barclay note: some of these commits (all of the ones that don't affect files inside etc/) aren't mine but were added during a rebase + squash
Diffstat (limited to 'etc/youtube-dl.profile')
-rw-r--r-- | etc/youtube-dl.profile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/youtube-dl.profile b/etc/youtube-dl.profile index d41591fd6..965517293 100644 --- a/etc/youtube-dl.profile +++ b/etc/youtube-dl.profile | |||
@@ -8,8 +8,15 @@ include /etc/firejail/globals.local | |||
8 | 8 | ||
9 | noblacklist ${HOME}/.netrc | 9 | noblacklist ${HOME}/.netrc |
10 | 10 | ||
11 | # Allow python (blacklisted by disable-interpreters.inc) | ||
12 | noblacklist ${PATH}/python2* | ||
13 | noblacklist ${PATH}/python3* | ||
14 | noblacklist /usr/lib/python2* | ||
15 | noblacklist /usr/lib/python3* | ||
16 | |||
11 | include /etc/firejail/disable-common.inc | 17 | include /etc/firejail/disable-common.inc |
12 | include /etc/firejail/disable-devel.inc | 18 | include /etc/firejail/disable-devel.inc |
19 | include /etc/firejail/disable-interpreters.inc | ||
13 | include /etc/firejail/disable-passwdmgr.inc | 20 | include /etc/firejail/disable-passwdmgr.inc |
14 | include /etc/firejail/disable-programs.inc | 21 | include /etc/firejail/disable-programs.inc |
15 | 22 | ||