mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3600] is there virtual memory option ? #2259
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#2259
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 @seisdr on GitHub (Aug 22, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3600
like I want to use wine on specific amount of ram can I do that?
@smitsohu commented on GitHub (Aug 24, 2020):
Yes, there is an
--rlimit-asoption.You could also create a user owned cgroup and use Firejail's
--cgroupoption (but note there is no cgroup v2 support yet: #2896)@seisdr commented on GitHub (Aug 24, 2020):
it keep telling me there's existing sandbox
@smitsohu commented on GitHub (Aug 24, 2020):
It usually speaks the truth. Your shell is already sandboxed, and nesting Firejail sandboxes is not possible.
exitand try again. If necessaryexitseveral times.Two more remarks: You are executing application
400, what you probably want isfirejail --rlimit-as=400 ls.Finally, the limit is given in bytes, and 400 will be much to little. You will need megabytes of address space just to execute bash or ls.
@seisdr commented on GitHub (Aug 24, 2020):
well I need 4gb to execute winehq and my device is 2gb the environment I'm into is qemu which means it's sandboxed is there any option I can use to force firejail to work ?
@smitsohu commented on GitHub (Aug 24, 2020):
That's ok because it is virtual memory address space. If you want a limit on physical memory (or something closely related at least) I think cgroups are the only solution right now.
@seisdr commented on GitHub (Aug 24, 2020):
how do I do that I look up cgroups is package on Linux
@rusty-snake commented on GitHub (Nov 9, 2020):
https://github.com/pshved/timeout
@seisdr commented on GitHub (Nov 9, 2020):
yeah as i remember that didn't work
I'm closing this
@rusty-snake commented on GitHub (Nov 10, 2020):
There are some links in the README.md. Short summary: for services use systemd for anything else there is no good solution.