Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the memory size used by the jailed process #593

Closed
vporton opened this issue Jun 24, 2016 · 5 comments
Closed

Limit the memory size used by the jailed process #593

vporton opened this issue Jun 24, 2016 · 5 comments
Labels
information_old (Deprecated; use "doc-todo" or "needinfo" instead) Information was/is required

Comments

@vporton
Copy link

vporton commented Jun 24, 2016

We need to limit the memory size used by the jailed process, so that a hacked would not run out of memory and swap.

@reinerh
Copy link
Collaborator

reinerh commented Jun 24, 2016

ulimit?

@vporton
Copy link
Author

vporton commented Jun 24, 2016

On Fri, 2016-06-24 at 10:02 -0700, Reiner Herrmann wrote:

ulimit?

I am aware about ulimit, but this will be probably a little more
efficient with single firejail executable than running ulimit firejail composed from two commands.

@reinerh
Copy link
Collaborator

reinerh commented Jun 24, 2016

It's probably a bit more convenient, I agree, but duplicating functionality already provided by other means also increases the complexity of firejail.

@chiraag-nataraj
Copy link
Collaborator

Another way is to assign the process to a cgroup and set limits on the cgroup (which you might be able to do in a config file somewhere).

@netblue30
Copy link
Owner

Yes, cgroup is the way to go. Set up a control group and pass it to the sandbox using --cgroup.

@netblue30 netblue30 added the information_old (Deprecated; use "doc-todo" or "needinfo" instead) Information was/is required label Jun 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information_old (Deprecated; use "doc-todo" or "needinfo" instead) Information was/is required
Projects
None yet
Development

No branches or pull requests

4 participants