Linux namespaces and seccomp-bpf sandbox
Find a file
2015-11-22 15:13:26 -05:00
etc disable firejail configuration by default 2015-11-22 13:37:36 -05:00
platform added webserver.net and nolocal.net network filters 2015-11-20 16:50:29 -05:00
src feature testing 2015-11-22 15:13:26 -05:00
test feature testing 2015-11-22 15:13:26 -05:00
.gitignore Add tags file and vim temporary files to .gitignore 2015-09-01 09:09:29 +10:00
configure fixed sysconfdir 2015-11-14 13:20:47 -05:00
configure.ac fixed sysconfdir 2015-11-14 13:20:47 -05:00
COPYING Baseline firejail 0.9.28 2015-08-08 19:12:30 -04:00
install.sh Baseline firejail 0.9.28 2015-08-08 19:12:30 -04:00
Makefile.in added webserver.net and nolocal.net network filters 2015-11-20 16:50:29 -05:00
mkdeb.sh Copyright headers 2015-10-24 12:21:35 -04:00
mketc.sh added webserver.net and nolocal.net network filters 2015-11-20 16:50:29 -05:00
mkman.sh Baseline firejail 0.9.28 2015-08-08 19:12:30 -04:00
README whitelist fix 2015-11-19 19:25:36 -05:00
README.md firefox profile fixes 2015-11-16 08:34:52 -05:00
RELNOTES disable firejail configuration by default 2015-11-22 13:37:36 -05:00
todo feature test 2015-11-22 13:15:13 -05:00

Firejail

Firejail is a SUID sandbox program that reduces the risk of security breaches by restricting the running environment of untrusted applications using Linux namespaces, seccomp-bpf and Linux capabilities. It allows a process and all its descendants to have their own private view of the globally shared kernel resources, such as the network stack, process table, mount table. Firejail can work in a SELinux or AppArmor environment, and it is integrated with Linux Control Groups.

Written in C with virtually no dependencies, the software runs on any Linux computer with a 3.x kernel version or newer. It can sandbox any type of processes: servers, graphical applications, and even user login sessions. The software includes sandbox profiles for a number of more common Linux programs, such as Mozilla Firefox, Chromium, VLC, Transmission etc.

The sandbox is lightweight, the overhead is low. There are no complicated configuration files to edit, no socket connections open, no daemons running in the background. All security features are implemented directly in Linux kernel and available on any Linux computer. To start the sandbox, prefix your command with “firejail”:

$ firejail firefox            # starting Mozilla Firefox
$ firejail transmission-gtk   # starting Transmission BitTorrent 
$ firejail vlc                # starting VideoLAN Client
$ sudo firejail "/etc/init.d/nginx start && sleep inf"

Project webpage: https://l3net.wordpress.com/projects/firejail/

Download and Installation: https://l3net.wordpress.com/projects/firejail/firejail-download-and-install/

Features: https://l3net.wordpress.com/projects/firejail/firejail-features/

Usage: https://l3net.wordpress.com/projects/firejail/firejail-usage/

FAQ: https://l3net.wordpress.com/projects/firejail/firejail-faq/

Development version 0.9.35

Firefox whitelists:

The current whitelist of files and directories for Firefox is as follows:

whitelist ~/.mozilla (0.9.34)
whitelist ~/Downloads (0.9.34)
whitelist ~/Загрузки (new in 0.9.35)
whitelist ~/dwhelper (0.9.34)
whitelist ~/.cache/mozilla/firefox (new in 0.9.35)
whitelist ~/.zotero (0.9.34)
whitelist ~/.lastpass (0.9.34)
whitelist ~/.vimperatorrc (0.9.34)
whitelist ~/.vimperator (0.9.34)
whitelist ~/.pentadactylrc (0.9.34)
whitelist ~/.pentadactyl (0.9.34)
whitelist ~/.config/gnome-mplayer (new in 0.9.35)
whitelist ~/.cache/gnome-mplayer/plugin (new in 0.9.35)
include /etc/firejail/whitelist-common.inc

/etc/firejail/whitelist-common.inc

whitelist ~/.config/mimeapps.list (new in 0.9.35)
whitelist ~/.icons (new in 0.9.35)

# fonts
whitelist ~/.fonts (0.9.34)
whitelist ~/.fonts.d (0.9.34)
whitelist ~/.fontconfig (0.9.34)
whitelist ~/.fonts.conf (0.9.34)
whitelist ~/.fonts.conf.d (0.9.34)

# gtk
whitelist ~/.gtkrc (new in 0.9.35)
whitelist ~/.gtkrc-2.0 (0.9.34)
whitelist ~/.config/gtk-3.0 (new in 0.9.35)
whitelist ~/.themes (new in 0.9.35)

If you are using a plugin or extension that requires other directories, please open a new issue: https://github.com/netblue30/firejail/issues

New security profiles:

New profiles introduced in this version: unbound, dnscrypt-proxy

--noblacklist

      --noblacklist=dirname_or_filename
              Disable blacklist for this directory or file.

              Example:
              $ firejail
              $ nc dict.org 2628
              bash: /bin/nc: Permission denied
              $ exit

              $ firejail --noblacklist=/bin/nc
              $ nc dict.org 2628
              220 pan.alephnull.com dictd 1.12.1/rf on Linux 3.14-1-amd64

--whitelist

Whitelist command accepts files in user home, /dev, /media, /var, and /tmp directories.