aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-01-08 22:28:47 +0000
committerLibravatar GitHub <noreply@github.com>2022-01-08 22:28:47 +0000
commitcdd5c06b0e22cff844048c24580a4640d0a9e524 (patch)
tree3c6ea08c1efafcac843ecd963cc582719bae4a38 /src
parentMerge pull request #4831 from vinc17fr/blacklist-rxvt (diff)
parentprofile.template: add noprinters (diff)
downloadfirejail-cdd5c06b0e22cff844048c24580a4640d0a9e524.tar.gz
firejail-cdd5c06b0e22cff844048c24580a4640d0a9e524.tar.zst
firejail-cdd5c06b0e22cff844048c24580a4640d0a9e524.zip
Merge pull request #4827 from kmk3/noprinters-add-missing
noprinters: add missing items & add to profile.template
Diffstat (limited to 'src')
-rw-r--r--src/firejail/usage.c1
-rw-r--r--src/man/firejail-profile.txt3
-rw-r--r--src/man/firejail.txt4
-rw-r--r--src/zsh_completion/_firejail.in1
4 files changed, 9 insertions, 0 deletions
diff --git a/src/firejail/usage.c b/src/firejail/usage.c
index 183259f16..24c8e3194 100644
--- a/src/firejail/usage.c
+++ b/src/firejail/usage.c
@@ -161,6 +161,7 @@ static char *usage_str =
161 " --nogroups - disable supplementary groups.\n" 161 " --nogroups - disable supplementary groups.\n"
162 " --noinput - disable input devices.\n" 162 " --noinput - disable input devices.\n"
163 " --nonewprivs - sets the NO_NEW_PRIVS prctl.\n" 163 " --nonewprivs - sets the NO_NEW_PRIVS prctl.\n"
164 " --noprinters - disable printers.\n"
164 " --noprofile - do not use a security profile.\n" 165 " --noprofile - do not use a security profile.\n"
165#ifdef HAVE_USERNS 166#ifdef HAVE_USERNS
166 " --noroot - install a user namespace with only the current user.\n" 167 " --noroot - install a user namespace with only the current user.\n"
diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index e35f2837b..71dab18ba 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -489,6 +489,9 @@ Sets the NO_NEW_PRIVS prctl. This ensures that child processes
489cannot acquire new privileges using execve(2); in particular, 489cannot acquire new privileges using execve(2); in particular,
490this means that calling a suid binary (or one with file capabilities) 490this means that calling a suid binary (or one with file capabilities)
491does not result in an increase of privilege. 491does not result in an increase of privilege.
492.TP
493\fBnoprinters
494Disable printers.
492#ifdef HAVE_USERNS 495#ifdef HAVE_USERNS
493.TP 496.TP
494\fBnoroot 497\fBnoroot
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 5a005ea5c..80487a49d 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1635,6 +1635,10 @@ does not result in an increase of privilege. This option
1635is enabled by default if seccomp filter is activated. 1635is enabled by default if seccomp filter is activated.
1636 1636
1637.TP 1637.TP
1638\fB\-\-noprinters
1639Disable printers.
1640
1641.TP
1638\fB\-\-noprofile 1642\fB\-\-noprofile
1639Do not use a security profile. 1643Do not use a security profile.
1640.br 1644.br
diff --git a/src/zsh_completion/_firejail.in b/src/zsh_completion/_firejail.in
index 8c1d758cc..334812dd6 100644
--- a/src/zsh_completion/_firejail.in
+++ b/src/zsh_completion/_firejail.in
@@ -123,6 +123,7 @@ _firejail_args=(
123 '--nogroups[disable supplementary groups]' 123 '--nogroups[disable supplementary groups]'
124 '--noinput[disable input devices]' 124 '--noinput[disable input devices]'
125 '--nonewprivs[sets the NO_NEW_PRIVS prctl]' 125 '--nonewprivs[sets the NO_NEW_PRIVS prctl]'
126 '--noprinters[disable printers]'
126 '--nosound[disable sound system]' 127 '--nosound[disable sound system]'
127 '--nou2f[disable U2F devices]' 128 '--nou2f[disable U2F devices]'
128 '--novideo[disable video devices]' 129 '--novideo[disable video devices]'