Skip to content

Commit

Permalink
docs: man: sort NAME VALIDATION section (firejail.1)
Browse files Browse the repository at this point in the history
This amends commit 6489138 ("docs: document NAME VALIDATION in
firejail.txt", 2023-06-13) / PR #5856.

Relates to #6451.
  • Loading branch information
glitsj16 authored and kmk3 committed Sep 10, 2024
1 parent a04bf5a commit 4268a31
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/man/firejail.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -3353,16 +3353,6 @@ $ firejail --net=eth0 --x11=xephyr --xephyr-screen=640x480 firefox
.br
#endif
.\" Note: Keep this in sync with invalid_name() in src/firejail/util.c.
.SH NAME VALIDATION
For simplicity, the same name validation is used for multiple options.
Rules:
.PP
The name must be 1-253 characters long.
The name can only contain ASCII letters, digits and the special characters
"-._" (that is, the name cannot contain spaces or control characters).
The name cannot contain only digits.
The first and last characters must be an ASCII letter or digit and the name
may contain special characters in the middle.
#ifdef HAVE_APPARMOR
.SH APPARMOR
.TP
Expand Down Expand Up @@ -3771,6 +3761,17 @@ Sandbox running time in hours:minutes:seconds format.
USER
The owner of the sandbox.

.SH NAME VALIDATION
For simplicity, the same name validation is used for multiple options.
Rules:
.PP
The name must be 1-253 characters long.
The name can only contain ASCII letters, digits and the special characters
"-._" (that is, the name cannot contain spaces or control characters).
The name cannot contain only digits.
The first and last characters must be an ASCII letter or digit and the name
may contain special characters in the middle.

.SH RESTRICTED SHELL
To configure a restricted shell, replace /bin/bash with /usr/bin/firejail in
/etc/passwd file for each user that needs to be restricted. Alternatively,
Expand Down

0 comments on commit 4268a31

Please sign in to comment.