man(5)

NAME
profile - Profile file syntax for Firejail

USAGE

firejail --profile=filename.profile

DESCRIPTION
Several Firejail command line configuration options can be passed to the program using profile files. Default Firejail profile files are stored in /etc/firejail directory and ~/.config/firejail directory.

Scripting
Include and comment support:

include other.profile
    Include other.profile file.

# this is a comment

Filesystem
These profile entries define a chroot filesystem built on top of the existing host filesystem. Each line describes a file element that is removed from the filesystem (blacklist), a read-only file or directory (read-only), a tmpfs mounted on top of an existing directory (tmpfs), or mount-bind a directory or file on top of another directory or file (bind). Use private to set private mode. File globbing is supported, and PATH and HOME directories are searched. Examples:

blacklist /usr/bin
    Remove /usr/bin directory.

blacklist /etc/password
    Remove /etc/password file.

read-only /etc/password
    Read-only /etc/password file.

tmpfs /etc
    Mount an empty tmpfs filesystem on top of /etc directory.

bind /root/config/ssh,/etc/ssh
    Mount-bind /root/config/ssh on /etc/ssh.

blacklist /usr/bin/gcc*
    Remove all gcc files in /usr/bin (file globbing).

blacklist ${PATH}/ifconfig
    Remove ifconfig from the regular path directories.

blacklist ${HOME}/.ssh
    Remove .ssh directory from user home directory.

private
    Mount an empty tmpfs filesystem on top of user home directory.

private directory
    Use mount directory as user home directory.

Filters
caps and seccomp enable Linux capabilities and seccomp filters. Examples:

caps
    Enable default Linux capabilities filter.

seccomp
    Enable default seccomp filter.

seccomp syscall,syscall,syscall
    Enable seccomp filter and add the system calls in the list on top of default seccomp filter.

Resource limits
These profile entries define the limits on system resources (rlimits) for the processes inside the sandbox. The limits can be modified inside the sandbox using the regular ulimt command. Examples:

rlimit-fsize 1024
    Set the maximum file size that can be created by a process to 1024 bytes.

rlimit-nproc 1000
    Set the maximum number of processes that can be created for the real user ID of the calling process to 1000.

rlimit-nofile 500
    Set the maximum number of files that can be opened by a process to 500.

rlimit-sigpending 200
    Set the maximum number of processes that can be created for the real user ID of the calling process to 200.

FILES
/etc/firejail/filename.profile, $HOME/.config/firejail/filename.profile

LICENSE
Firejail is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Homepage: http://firejail.sourceforge.net

SEE ALSO
firejail(1), firemon(1)