mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #607] A question which I couldn't find in the FAQ #425
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#425
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 @ox42 on GitHub (Jun 30, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/607
Hi, I have a question. If this is not the right place for that, please let me know where I can ask it, and feel free to close the issue.
Basically, I'm a teacher and I need to organize a course. Students will submit programming assignments and I want to execute them locally. After compiling them, can I just prefix the programs with firejail - and what would that achieve exactly?
For example, will it stop:
- programs trying to modify/delete important system files
- programs trying to read system files which can compromise system security (though I can't think of anything atm)
- programs trying to send sensitive data through the network (net=none should do the trick?)
- programs trying to exhaust system resources (the solution is probably cgroups?)
- programs trying to fill disk space by outputting large amounts of data to files (can this be prevented)?
What parameters would you pass to "firejail" if you needed to run those programs on your computer?
Thank you very much. Sorry for the long question, but I'm really curious, given that Firejail looks great.
@netblue30 commented on GitHub (Jun 30, 2016):
I would suggest you build a virtual machine, install firejail in it and run the programs there. It is very unlikely your students will be able to break out of firejail, but just in case...
A simple "firejail program-name" should protect you in these cases.
Yes, --net=none would do it.
Yes, look into setting up a control group, and pass it to firejail using --cgroup.
There is a setquota command, I've never tried it. Here are some examples: http://www.linuxnix.com/how-to-linux-group-disk-quota-implementation/ and https://gehrcke.de/2013/05/setting-up-quotas-on-a-local-linux-file-system/
I would run "firejail --private --net=none program-name".