Commit graph

37 commits

Author SHA1 Message Date
rusty-snake
fc917b11d6 various profile fixes 2019-10-06 09:50:24 +02:00
rusty-snake
2187a2f974 remove trailing slashes 2019-10-05 14:17:31 +02:00
rusty-snake
2373fcd74d many profile fixes (1)
- add novideo to a lot of profiles
   (there are still more profiles where novideo can be added)
 - remove commente mdwe from some gnome applications
 - add descriptions to some profiles
 - blacklist ${HOME}/.cargo/credentials
 - move ${HOME}/.git-credentials and ${HOME}/.git-credential-cache to
   'top secret' in disable-common.inc
 - some ordering in disable-programs.inc
 - merge tor browser blacklists to ${HOME}/.tor-browser*
 - qupzilla.profile redirect to falkon.profile
 - blacklist gnome-builder paths
 - fix transmission profiles inlude
 - much more
2019-08-26 00:22:59 +02: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
b9930e1056
Streamline machine-id comment 2019-02-20 23:16:33 +00:00
Fred-Barclay
83ddb3e5b2
Add alternatives to private-etc for profiles in etc/
See discussion in #2399
2019-02-17 12:09:02 -06: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
82a0cd2e71 Cleanup descriptions 2018-08-13 22:35:05 -04:00
Tad
40330b246d Add descriptions to profiles, pulled from Ubuntu 18.04 2018-08-13 21:48:41 -04:00
Tad
e5aba00d01 Add disable-xdg.inc to ~100 profiles 2018-07-24 12:52:13 -04:00
Tad
b885aec301 Add private-cache to many profiles
grep "cache" -L $(grep "redirect" -iL $(grep "whitelist" -RL))
2018-06-14 17:28:34 -04:00
Vincent43
3874039e57
zathura.profile: fix machine-id and dbus
See https://github.com/netblue30/firejail/issues/1895
2018-04-18 13:00:29 +01: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
smitsohu
7a37dc31ab recalibrate dbus access, deploy nodbus option
see #1822 and #1825. also systematically replaces
'blacklist /run/user/*/bus' with 'nodbus'.

with contributions from @Fred-Barclay
2018-03-28 03:23:59 +02:00
smitsohu
63e9fcc460
unblock dbus in zathura profile - #1654 2017-11-20 19:17:28 +01:00
Fred-Barclay
eb4b505ac2 Consistent home directory nomenclature 2017-11-17 12:32:32 -06:00
smitsohu
55938d07a5 disable non-abstract session bus address
systematically blacklist /run/user/*/bus in all profiles with
'net none'. targets distros like Fedora
2017-10-22 11:34:51 +02: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
9e3ba319be Unify all profiles 2017-08-07 01:22:08 -04:00
Fred-Barclay
5e211950f7 Add back net none/netfilter as needed 2017-08-02 00:13:49 -04:00
Tad
0dba38435e Harden profiles
- Added 'disable-devel.conf' to many profiles
- Added 'disable-mnt' to many profiles
- Added 'noexec' to many profiles
- Removed 'netfilter' and 'net none' from profiles with 'protocol unix'
- Cleaned up profiles using defaults
2017-08-02 00:13:42 -04:00
netblue30
dce9b9b9eb added /etc/firejail/globals.local for global customizations 2017-05-23 12:02:22 -04:00
netblue30
975c6f327f persistent support for all profile files 2017-02-09 10:53:33 -05:00
valoq
7165f68e34
private-tmp changes 2016-11-03 23:51:36 +01:00
vis
2aafd9bd3a
Merge remote-tracking branch 'upstream/master' 2016-11-03 15:06:57 +01:00
vismir2
ccfe7a291e Improvements for Zathura profile 2016-11-03 14:59:24 +01:00
Fred-Barclay
88972056f4 squash attempt 2 2016-10-24 15:33:54 -05:00
netblue30
7deec25a94 Merge pull request #828 from vismir2/master
hardened profiles and fixed blacklisting
2016-10-02 10:08:49 -04:00
vismir2
c313409c3d fixed description 2016-10-02 15:56:41 +02:00
vismir2
8edf59794f hardened profile for zathura 2016-10-02 15:45:14 +02:00
netblue30
afa0feed21 feh, ranger, zathura profiles 2016-10-02 09:14:31 -04:00
vismir2
25fbc140c0 Create zathura.profile 2016-10-02 09:06:16 +02:00