Commit graph

42 commits

Author SHA1 Message Date
rusty-snake
17f8035132
Create allow-INTERPETER.inc (#2736)
* Create allow-INTERPETER.inc

 * allow-lua.inc
 * allow-perl.inc
 * allow-python2.inc
 * allow-python3.inc

* Create allow-java.inc

* Update profiles to use new allow-INTERPRETER.inc includes

* Update profiles to use new allow-INTERPRETER.inc includes 2/x

* Fix order of allow-INTERPRETER.inc includes

* Update profiles to use new allow-INTERPRETER.inc includes 3/x

* Fixup comment about allow-java.inc

https://github.com/netblue30/firejail/pull/2736#discussion_r289597997

* Add Arch Linux specific paths to allow-perl.inc
2019-06-01 20:19:01 +00:00
netblue30
d2e7377e89 adding disable-exec.inc to more profiles 2019-04-07 21:19:49 -04:00
glitsj16
051be0926c
Streamline 'Allow python' options (#2588)
* Fix 'allow python' in xpra

* Fix 'allow python' in xplayer

* Fix 'allow python' in xed

* Fix 'allow python' in uzbl-browser

* Fix 'allow python' in transmission-remote-cli

* Fix 'allow python' in torbrowser-launcher

* fix 'allow python' in subdownloader

* Fix 'allow python' in steam

* Fix 'allow python' in soundconverter

* Fix 'allow python' in sdat2img

* Fix 'allow python' in scribus

* Fix 'allow python' in ranger

* Fix 'allow python' in qutebrowser

* Fix 'allow python' in qbittorrent

* Fix 'allow python' in pybitmessage

* Fix 'allow python' in playonlinux

* Fix 'allow python' in pitivi

* Fix 'allow python' in pithos

* Fix 'allow python' in picard

* Fix 'allow python' in openshot

* Fix 'allow python' in onionshare-gui

* Fix 'allow python' in obs

* Fix 'allow python' in nitroshare

* Fix 'allow python' in nemo

* Fix 'allow python' in nautilus

* Fix 'allow python' in natron

* Fix 'allow python' in ms-office

* Fix 'allow python' in mpDris2

* Fix 'allow python' in mendeleydesktop

* Fix 'allow python' in macrofusion

* Fix 'allow python' in lollypop

* Fix 'allow python' in liferea

* Fix 'allow python' in krita

* Fix 'allow python' in kodi

* Fix 'allow python' in inkscape

* Fix 'allow python' in hexchat

* Fix 'allow python' in gnome-schedule

* Fix 'allow python' in gnome-music

* Fix 'allow python' in gconf

* Fix 'allow python' in gajim

* Fix 'allow python' in font-manager

* Fix 'allow python' in fontforge

* Fix 'allow python' in flowblade

* Fix 'allow python' in filezilla

* Fix 'allow python' in exfalso

* Fix 'allow python' in electrum

* Fix 'allow python' in display

* Fix 'allow python' in d-feet

* Fix 'allow python' in deluge

* Fix 'allow python' in cherrytree

* Fix 'allow python' in catfish

* Fix 'allow python' in caja

* Fix 'allow python' in blender

* Fix 'allow python' in bleachbit

* Fix 'allow python' in authenticator

* Fix 'allow python' in arm
2019-03-13 20:46:02 +00:00
glitsj16
b8539612a7
Revert machine-id comment mess (#2439)
* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Update atril.profile

Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment

* Revert machine-id comment
2019-02-21 19:11:21 +00:00
glitsj16
2f1a700aaf
Streamline machine-id comment 2019-02-20 23:53:53 +00:00
netblue30
92bff8a23c
Merge pull request #2201 from SkewedZeppelin/u2f-ap
Add nou2f to all profiles
2018-10-17 08:00:00 -05:00
Glenn Washburn
7c533c9aa5 Remove "/etc/firejail/" from all include paths, now that profile_read will search for the file. 2018-10-17 00:43:54 -05:00
Tad
284e0750e5 Add nou2f to all profiles
- Closes #2194
2018-10-15 13:14:15 -04:00
Tad
40330b246d Add descriptions to profiles, pulled from Ubuntu 18.04 2018-08-13 21:48:41 -04:00
Fred Barclay
2d8ff695ad
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
2018-04-02 10:56:55 -05:00
Fred-Barclay
f76dc38a1b
noblacklist /usr/share/perl in hexchat - potential fix for #1754 2018-01-28 23:38:11 -06:00
Fred-Barclay
eb4b505ac2 Consistent home directory nomenclature 2017-11-17 12:32:32 -06:00
netblue30
b0a97b9df5 removed private-lib and memory-deny-write-execute from hexchat profile 2017-10-14 09:10:13 -04:00
netblue30
f451a2c426 private-lib developments 2017-10-09 12:10:49 -04:00
Fred-Barclay
c6259375df
Tighten multiple profiles.
This adds whitelist-var-common, machine-id, memory-deny-write-execute,
and noexec home and tmp when possible.
2017-10-04 16:24:36 -05:00
Tad
104dde49c0 Fix nodvd placement 2017-08-13 15:53:04 -04:00
netblue30
647b6a220e added nodvd to most profiles 2017-08-13 07:36:06 -04:00
Tad
71f838b5ba Fix notv placement 2017-08-11 21:03:13 -04:00
netblue30
b97ca53e7b added notv to most profiles 2017-08-11 10:21:18 -04:00
Tad
00ea93e518 Fix comments in 88 profiles
There may actually be some other comments that were removed, but the bulk have been restored
2017-08-07 01:26:34 -04:00
Tad
9e3ba319be Unify all profiles 2017-08-07 01:22:08 -04:00
Tad
5354f20012 Harden 50 profiles
Hardened many profiles using disable-mnt and novideo
Fixed gnome-font-viewer
2017-07-04 11:35:29 -04:00
netblue30
2fcac103e5 commented out ipc-namespace in most profiles - it breaks newer versions of GDK with the following error: Gdk-ERROR **: The program 'thunderbird' received an X Window System error 2017-05-25 07:27:26 -04:00
netblue30
dce9b9b9eb added /etc/firejail/globals.local for global customizations 2017-05-23 12:02:22 -04:00
Tad
4f238b75de Harden more profiles 2017-04-17 17:11:24 -04:00
Tad
b7d51c2df6 Harden 19 more profiles 2017-04-15 16:07:25 -04:00
netblue30
975c6f327f persistent support for all profile files 2017-02-09 10:53:33 -05:00
Fred-Barclay
f67614cef6
may break on some systems 2016-09-01 03:42:13 +10:00
Fred-Barclay
0773b2791a
tightened profiles 2016-08-17 09:18:20 +10:00
Reiner Herrmann
0657c20377 Allow recursive mkdir (Closes #305) 2016-07-30 17:58:45 +02:00
netblue30
f5b452bc42 private-bin conversion 2016-06-10 11:22:24 -04:00
netblue30
3597df9bc0 merged Various #542 pull request from Fred-Barclay 2016-05-31 21:40:55 -04:00
The Fox in the Shell
845bd06665 profiles: Add nonewprivs where sensible 2016-05-25 15:01:13 +02:00
Ruan
53a4601321 Include common whitelist for hexchat.profile 2016-04-23 14:44:55 +02:00
Ruan
23f24befa8 Allow python3 for hexchat.profile
HexChat uses python3 under Arch Linux, so this is required for it to launch.
2016-04-23 10:46:49 +02:00
Fred-Barclay
7dc1965e85
fixed python libs 2016-04-22 01:03:36 +10:00
netblue30
570f845a01 consolidated disable-terminals into disable-common 2016-03-27 09:13:22 -04:00
netblue30
1c56e0bdfa consolidating disable-mgmt and disable-sercret into disable-common 2016-03-26 21:16:48 -04:00
netblue30
f841cc971e profile work 2016-03-26 20:39:16 -04:00
netblue30
c93cca65a6 profile update 2016-03-12 08:17:40 -05:00
netblue30
d88a941d52 split out terminal blacklisting in disable-terminals.inc 2016-02-12 17:29:07 -05:00
netblue30
2b8b8e5496 profile cleanup, addinghexchat profile 2015-11-28 07:37:32 -05:00