diff options
author | 2021-06-08 17:35:36 +0300 | |
---|---|---|
committer | 2021-06-08 20:23:02 +0300 | |
commit | c6f5120dfb2c70d07bc653ecd5dd7b88cc945c0c (patch) | |
tree | 0360a9638f3bdb4d713d7fa2b842547110b79aa6 /src/man/firejail.txt | |
parent | reorganizing youtube-viewers (#4128) (diff) | |
download | firejail-c6f5120dfb2c70d07bc653ecd5dd7b88cc945c0c.tar.gz firejail-c6f5120dfb2c70d07bc653ecd5dd7b88cc945c0c.tar.zst firejail-c6f5120dfb2c70d07bc653ecd5dd7b88cc945c0c.zip |
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 )
Diffstat (limited to 'src/man/firejail.txt')
-rw-r--r-- | src/man/firejail.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
2129 | .TP | 2129 | .TP |
2130 | \fB\-\-rlimit-as=number | 2130 | \fB\-\-rlimit-as=number |
2131 | Set the maximum size of the process's virtual memory (address space) in bytes. | 2131 | Set the maximum size of the process's virtual memory (address space) in bytes. |
2132 | you can use kilobyte(k),megabyte(m) and gigabyte(g) for size suffix. ( they works on base 1024 ) | ||
2132 | 2133 | ||
2133 | .TP | 2134 | .TP |
2134 | \fB\-\-rlimit-cpu=number | 2135 | \fB\-\-rlimit-cpu=number |
@@ -2142,6 +2143,7 @@ track of CPU seconds for each process independently. | |||
2142 | .TP | 2143 | .TP |
2143 | \fB\-\-rlimit-fsize=number | 2144 | \fB\-\-rlimit-fsize=number |
2144 | Set the maximum file size that can be created by a process. | 2145 | Set the maximum file size that can be created by a process. |
2146 | you can use kilobyte(k),megabyte(m) and gigabyte(g) for size suffix. ( they works on base 1024 ) | ||
2145 | .TP | 2147 | .TP |
2146 | \fB\-\-rlimit-nofile=number | 2148 | \fB\-\-rlimit-nofile=number |
2147 | Set the maximum number of files that can be opened by a process. | 2149 | Set the maximum number of files that can be opened by a process. |