Linux namespaces and seccomp-bpf sandbox
Find a file
2016-02-17 22:07:00 +02:00
etc Add Polari profile 2016-02-17 22:07:00 +02:00
platform Add Polari profile 2016-02-17 22:07:00 +02:00
src centos7 fixes; support for building rpm packages 2016-02-16 10:34:15 -05:00
test set sandbox nice value 2016-02-11 09:03:35 -05:00
.gitignore 'make rpms' now makes the rpm files 2016-02-16 04:36:02 +13:00
configure default seccomp filter update 2016-02-08 10:33:18 -05:00
configure.ac default seccomp filter update 2016-02-08 10:33:18 -05:00
COPYING Baseline firejail 0.9.28 2015-08-08 19:12:30 -04:00
install.sh merged building on systems without bash from manevich 2016-02-14 09:58:35 -05:00
Makefile.in Add Polari profile 2016-02-17 22:07:00 +02:00
mkasc.sh merged building on systems without bash from manevich 2016-02-14 09:58:35 -05:00
mkdeb.sh merged building on systems without bash from manevich 2016-02-14 09:58:35 -05:00
mketc.sh merged building on systems without bash from manevich 2016-02-14 09:58:35 -05:00
mkman.sh merged building on systems without bash from manevich 2016-02-14 09:58:35 -05:00
README Add Polari profile 2016-02-17 22:07:00 +02:00
README.md cherrytree profile 2016-02-16 20:21:30 -05:00
RELNOTES Add Polari profile 2016-02-17 22:07:00 +02:00
todo profile cleanup 2016-01-22 09:08:35 -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

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

Download and Installation: https://firejail.wordpress.com/download-2/

Features: https://firejail.wordpress.com/features-3/

Documentation: https://firejail.wordpress.com/documentation-2/

FAQ: https://firejail.wordpress.com/support/frequently-asked-questions/


Current development version: 0.9.39


Default seccomp filter update

Currently 50 syscalls are blacklisted by default, out of a total of 318 calls (AMD64, Debian Jessie).

STUN/WebRTC disabled in default netfilter configuration

The current netfilter configuration (--netfilter option) looks like this:

             *filter
              :INPUT DROP [0:0]
              :FORWARD DROP [0:0]
              :OUTPUT ACCEPT [0:0]
              -A INPUT -i lo -j ACCEPT
              -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
              # allow ping
              -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT
              -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT
              -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
              # drop STUN (WebRTC) requests
              -A OUTPUT -p udp --dport 3478 -j DROP
              -A OUTPUT -p udp --dport 3479 -j DROP
              -A OUTPUT -p tcp --dport 3478 -j DROP
              -A OUTPUT -p tcp --dport 3479 -j DROP
              COMMIT

The filter is loaded by default for Firefox if a network namespace is configured:

$ firejail --net=eth0 firefox

Set sandbox nice value

      --nice=value
              Set nice value for all processes running inside the sandbox.

              Example:
              $ firejail --nice=-5 firefox

New security profiles

lxterminal, Epiphany, cherrytree