Commit graph

26 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
b9c8a94590 adding disable-exec.inc to the remaining profiles 2019-04-12 11:53:09 -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
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
Jean Lucas
dd3c0ee765 Amend gnome-music profile
- At least gnome-music 3.28.2 requires 'env'
- Add 'gio-launch-desktop' and 'yelp' so launching the "Help" menu
doesn't crash the application
- Enabling the disabled private-etc tested to be working
2018-09-14 22:21:04 -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
3c2a7e4c91 Sound fixes
- Adds machine-id to all profiles with 'private-etc *pulse*'
- This fixes sound under many profiles

- This is related to #2037, except this adds etc machine-id not spoofed machine-id
- Spoofed machine-id seems to break pulseaudio on some systems
- We already do this in profiles like firefox-common (see the note in it)

- pulseaudio's enable-shm set to yes or no doesn't fix this issue on systems where it occurs
- We can revert this in the future if we find a fix

- Command used:
grep -e music -e videos -e audio -e pulse -e asound -il $(grep "machine-id" -iL $(grep "private-etc" . -Rl))
2018-07-31 00:54:55 -04:00
Tad
e5aba00d01 Add disable-xdg.inc to ~100 profiles 2018-07-24 12:52:13 -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
eb4b505ac2 Consistent home directory nomenclature 2017-11-17 12:32:32 -06:00
Fred-Barclay
0835038533 Experimental private-bin filters with python* after e6c1c54e3f 2017-10-13 19:17:50 -05:00
startx2017
30306cb16a python cleanup in profile files 2017-10-13 09:54:24 -04:00
netblue30
c0bb67f66a whitelist /var 2017-10-04 08:30:02 -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
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
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
fa10ab0e09
many new profiles 2016-11-19 21:57:42 +01:00