From ad797d73807e86b7a9cd1f5c2f5f43485960701a Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Tue, 9 Sep 2025 17:47:30 +0000 Subject: [PATCH] docs: rlimit: improve text and use base-2 units (#6894) The base-2 units are more accurate, as `--rlimit-as=1K` is equivalent to `--rlimit-as=1024`, not `--rlimit-as=1000`, for example. This is a follow-up to #6891. Relates to #4315. --- src/man/firejail.1.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/man/firejail.1.in b/src/man/firejail.1.in index ae18278fb..4e27c5c54 100644 --- a/src/man/firejail.1.in +++ b/src/man/firejail.1.in @@ -2577,7 +2577,8 @@ $ firejail \-\-restrict-namespaces=user,net .TP \fB\-\-rlimit-as=number Set the maximum size of the process's virtual memory (address space) in bytes. -Use K(ilobyte), M(egabyte) or G(igabyte) for size suffix (base 1024). +You can use K(ibibyte), M(ebibyte) or G(ibibyte) as a suffix, such as "100M" +(which is equivalent to 104857600 bytes). .TP \fB\-\-rlimit-cpu=number @@ -2591,7 +2592,8 @@ track of CPU seconds for each process independently. .TP \fB\-\-rlimit-fsize=number Set the maximum file size that can be created by a process. -Use K(ilobyte), M(egabyte) or G(igabyte) for size suffix (base 1024). +You can use K(ibibyte), M(ebibyte) or G(ibibyte) as a suffix, such as "100M" +(which is equivalent to 104857600 bytes). .TP \fB\-\-rlimit-nofile=number Set the maximum number of files that can be opened by a process.