mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1614] Support time based restriction limits #1078
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1078
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @legoktm on GitHub (Oct 24, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1614
For MediaWiki, we've been using firejail to sandbox image conversion binaries like imagemagick, ffmpeg, rsvg, etc. We currently have a bash script that implements time limits (among other things) on how long the execution can take in both CPU time (
ulimit -t) and wallclock time (timeout) that I was investigating whether firejail could replace. I understand that this isn't something that makes sense for sandboxing GUI apps, but for us time limits are an important DoS protection. Are CPU and wall clock time limits something that could be added to firejail in addition to the current rlimit options? Thanks for considering.@gosre commented on GitHub (Oct 24, 2017):
@legoktm I've been researching similar techniques for a project I'm using firejail with. In addition to setting a hard limit on CPU time for a final stand, it might be best to look into control groups as firejail supports them and have proved quite handy for setting a cpu limit/throttle per process (i.e. only use 10% of 1 cpu core maximum or a quota for CPU time per period).
@netblue30 commented on GitHub (Oct 25, 2017):
You are all set:
You also have support for them in the profile files. Let us know if you run into problems.
@legoktm commented on GitHub (Oct 25, 2017):
Thank you very much!