mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #9] Warning: user namespaces not available in the current kernel. #9
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#9
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 @dmp1ce on GitHub (Aug 10, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/9
I am trying to sandbox firefox but I can still access files that should be blocked like my private ssh key. Is kernel 4 supported?
@netblue30 commented on GitHub (Aug 10, 2015):
I think you already have a Firefox instance running. By default Firefox keeps only one browser process running. When you start a new Firefox process, it looks for an existing one. If one is found, the new process shuts down, and the existing one opens a new tab or a new window. Use -no-remote Firefox option to force a new sandboxed process.
My guess is your first Firefox instance is not running in the sandbox.
User namespace needs to be compiled into the kernel. Do a short check: in a terminal you should be able to see the following files:
/proc/self/uid_map (user id mapping)
/proc/self/gid_map (group id mapping)
/proc/self/ns/user (used for join operations)
@dmp1ce commented on GitHub (Aug 10, 2015):
You were right about having firefox already open. Now the .ssh directory is blocked. Thanks!
About the "User namespace", Arch has this turned of in the kernel because of security concerns. https://bugs.archlinux.org/task/36969
Here is the lxc configuration on my Arch machine.
@dmp1ce commented on GitHub (Aug 10, 2015):
I am curious though. How does having user namespace turned off effect firejail?
@netblue30 commented on GitHub (Aug 10, 2015):
Thanks, good to know about Arch. The usual reason to turn it off is the number of bugs and fixes still coming into the kernel for user namespaces feature. The bugs are related to creating a root user in the user namespace. This root user is not fully separated from the real root user.
Firejail does not create a root user in the user namespace. I don't think firejail is affected by the problem, but who knows... User namespace is just a supplementary sandboxing feature, firejail will work fine without it.