From c6f5120dfb2c70d07bc653ecd5dd7b88cc945c0c Mon Sep 17 00:00:00 2001 From: kuesji koesnu Date: Tue, 8 Jun 2021 17:35:36 +0300 Subject: added better parser for size strings this commit add support to size parsing for k,m,g suffix for numbers and applies this support to rlimit-as and rlimit-fsize arguments in both for commandline and profile parsing. supported suffix: - k for kilobytes - m for megabytes - g for gigabytes ( these values uses 1024 bases instead of 1000 ) --- src/man/firejail.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/man/firejail.txt') diff --git a/src/man/firejail.txt b/src/man/firejail.txt index f4a549b05..9308eecf4 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt @@ -2129,6 +2129,7 @@ $ firejail --read-only=~/test --read-write=~/test/a .TP \fB\-\-rlimit-as=number Set the maximum size of the process's virtual memory (address space) in bytes. +you can use kilobyte(k),megabyte(m) and gigabyte(g) for size suffix. ( they works on base 1024 ) .TP \fB\-\-rlimit-cpu=number @@ -2142,6 +2143,7 @@ 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. +you can use kilobyte(k),megabyte(m) and gigabyte(g) for size suffix. ( they works on base 1024 ) .TP \fB\-\-rlimit-nofile=number Set the maximum number of files that can be opened by a process. -- cgit v1.2.3-70-g09d2