diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-06-13 21:16:17 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-06-13 21:25:35 -0300 |
commit | 6489138a5685df83b7b8ce490b7fcc64cde3fb38 (patch) | |
tree | bad57033e0326fb0bdbc466bcda19912bfc12946 /src/firejail/util.c | |
parent | Add missing name/hostname checks (diff) | |
download | firejail-6489138a5685df83b7b8ce490b7fcc64cde3fb38.tar.gz firejail-6489138a5685df83b7b8ce490b7fcc64cde3fb38.tar.zst firejail-6489138a5685df83b7b8ce490b7fcc64cde3fb38.zip |
docs: document NAME VALIDATION in firejail.txt
Diffstat (limited to 'src/firejail/util.c')
-rw-r--r-- | src/firejail/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/util.c b/src/firejail/util.c index 6c79c050e..555486916 100644 --- a/src/firejail/util.c +++ b/src/firejail/util.c | |||
@@ -1476,6 +1476,8 @@ int ascii_isxdigit(unsigned char c) { | |||
1476 | return ret; | 1476 | return ret; |
1477 | } | 1477 | } |
1478 | 1478 | ||
1479 | // Note: Keep this in sync with NAME VALIDATION in src/man/firejail.txt. | ||
1480 | // | ||
1479 | // Allow only ASCII letters, digits and a few special characters; names with | 1481 | // Allow only ASCII letters, digits and a few special characters; names with |
1480 | // only numbers are rejected; spaces and control characters are rejected. | 1482 | // only numbers are rejected; spaces and control characters are rejected. |
1481 | int invalid_name(const char *name) { | 1483 | int invalid_name(const char *name) { |