aboutsummaryrefslogtreecommitdiffstats
path: root/src/man
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2017-10-24 12:41:42 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2017-10-24 12:41:42 -0400
commite8685de73159e005a84d3e756767c6d2db943e2e (patch)
tree524a0375e4998dfa9a958cf99ae56fb7b4a877bd /src/man
parentsystemd-resoved fix this time for both Ubuntu and Arch (diff)
downloadfirejail-e8685de73159e005a84d3e756767c6d2db943e2e.tar.gz
firejail-e8685de73159e005a84d3e756767c6d2db943e2e.tar.zst
firejail-e8685de73159e005a84d3e756767c6d2db943e2e.zip
implemented --rlimit-cpu - set max CPU time for processes running in the sandbox; for issue #1614, more to come...
Diffstat (limited to 'src/man')
-rw-r--r--src/man/firejail-profile.txt3
-rw-r--r--src/man/firejail.txt9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index 185420ba4..808fc7440 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -385,6 +385,9 @@ Examples:
385\fBrlimit-as 123456789012 385\fBrlimit-as 123456789012
386Set he maximum size of the process's virtual memory to 123456789012 bytes. 386Set he maximum size of the process's virtual memory to 123456789012 bytes.
387.TP 387.TP
388\fBrlimit-cpu 123
389Set he maximum CPU time in seconds.
390.TP
388\fBrlimit-fsize 1024 391\fBrlimit-fsize 1024
389Set the maximum file size that can be created by a process to 1024 bytes. 392Set the maximum file size that can be created by a process to 1024 bytes.
390.TP 393.TP
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 2303a8bbd..d2e04675d 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1547,6 +1547,15 @@ $ firejail --read-only=~/test --read-write=~/test/a
1547Set the maximum size of the process's virtual memory (address space) in bytes. 1547Set the maximum size of the process's virtual memory (address space) in bytes.
1548 1548
1549.TP 1549.TP
1550\fB\-\-rlimit-cpu=number
1551Set the maximum limit, in seconds, for the amount of CPU time each
1552sandboxed process can consume. When the limit is reached, the processes are killed.
1553
1554The CPU limit is a limit on CPU seconds rather than elapsed time. CPU seconds is basically how many seconds
1555the CPU has been in use and does not necessarily directly relate to the elapsed time. Linux kernel keeps
1556track of CPU seconds for each process independently.
1557
1558.TP
1550\fB\-\-rlimit-fsize=number 1559\fB\-\-rlimit-fsize=number
1551Set the maximum file size that can be created by a process. 1560Set the maximum file size that can be created by a process.
1552.TP 1561.TP