LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

firejail

application sandboxing with Linux namespaces

TLDR

Run a program inside a sandbox using its default security profile
$ firejail [program]
copy
Give the sandbox a name you can refer to later
$ firejail --name=[web] [firefox]
copy
Show a process tree of everything currently sandboxed
$ firejail --tree
copy
Watch sandbox resource usage, top-style
$ firejail --top
copy
Attach a shell to a running sandbox
$ firejail --join=[web]
copy
Deny the sandbox any network access
$ firejail --net=none [program]
copy
Give the program a throwaway home directory
$ firejail --private [program]
copy
Expose only specific paths from the real home directory
$ firejail --whitelist=[~/Documents] [program]
copy
Mount a path read-only inside the sandbox
$ firejail --read-only=[~/.ssh] [program]
copy
Block sound and 3D acceleration
$ firejail --nosound --no3d [program]
copy
Terminate a sandbox by name or PID
$ firejail --shutdown=[web]
copy
Register firejail profiles for desktop launchers
$ sudo firecfg
copy

SYNOPSIS

firejail [options] [program] [arguments]

DESCRIPTION

firejail securely sandboxes processes using Linux namespaces, seccomp-bpf, and capabilities. It isolates applications from the rest of the system for security.Provides per-application profiles for common programs like Firefox and VLC.

PARAMETERS

--list

List running sandboxes
--netstats
Show network activity
--shutdown pid
Stop sandbox by PID
--net interface
Use network namespace
--ip address
Assign IP address
--seccomp
Enable seccomp filtering
--private
Use private home directory
--private-tmp
Use private /tmp
--private-dev
Use private /dev

CONFIGURATION

/etc/firejail/[application].profile

Application-specific sandboxing profiles defining restrictions and permissions.
~/.config/firejail/[application].profile
User-level custom profiles that override system defaults.

INSTALL

sudo apt install firejail
copy
sudo dnf install firejail
copy
sudo pacman -S firejail
copy
sudo zypper install firejail
copy
nix profile install nixpkgs#firejail
copy

CAVEATS

Some applications may not work correctly in sandbox. Profiles in /etc/firejail/. Use firecfg to integrate with desktop.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid