mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2413] Warnings in firejail #1609
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#1609
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 @ghost on GitHub (Feb 17, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2413
Hi I have 3 warnings when running firejail and was wondering if someone here got the info about them and how to resolv them.
I have arch linux with linux-hardened kernel
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: cannot create a new user namespace, going forward without it...
I read that user namespaces are disabled/restricted on arch linux but I also read that firejail should be able to use it anyway?
Thank you for taking your time! =)
@Vincent43 commented on GitHub (Feb 17, 2019):
Those are ok. In Arch they're symlinks to
/usr/binand can't be blacklisted.I can't reproduce this one.
@SkewedZeppelin commented on GitHub (Feb 17, 2019):
relevant?
541891558d@ghost commented on GitHub (Feb 17, 2019):
All Arch Linux kernels have support for CONFIG_USER_NS. However, due to more general security concerns, the default Arch kernel does ship with User Namespaces enabled only for the
rootuser. Additional setup is required to use unprivileged containers asnormaluser.@Vincent43 commented on GitHub (Feb 17, 2019):
firejail runs as
rootso that restriction shouldn't apply to it (and it doesn't on my system). @anteg did you added some additional security options in system likeuser.max_user_namespaces = 0sysctl?@ghost commented on GitHub (Feb 17, 2019):
@Vincent43 No, its set to = 0. Could it be some issues with the permissions? Since it is root that is the user that soulndnt be the case?
@ghost commented on GitHub (Feb 18, 2019):
@anteg Wait, are you confirming
user.max_user_namespaces= 0 while running linux-hardened? Just so we're all on the same page as to your exact issue, would you paste the output of the following commands here please?$ sysctl user.max_user_namespaces
$ grep userns /etc/firejail/firejail.config
Also, are you seeing the same firejail behavior when running the
linuxand/orlinux-ltskernels on Arch Linux?@ghost commented on GitHub (Feb 18, 2019):
@glitsj16
After running the the commands I can confirm the outputs being
user.max_user_namespaces = 0
userns yes
I will try with other kernels today and see but I posted this in the meanwhile.
Thanks for taking your time to help
@ghost commented on GitHub (Feb 18, 2019):
@glitsj16
I just tried to change the user.max_user_namespaces = 1 and then the warning in firejail disappeared. Is this something I want have set to 0 or other value?
This is the info text from the sysctl
Disable User Namespaces as it opens up a large attack surface to unprivileged users
I am a bit confused if I really want namespaces or not.
@ghost commented on GitHub (Feb 18, 2019):
@anteg Good question. Before Arch Linux added in support for CONFIG_USER_NS I was just as confused and posed a question here and added a link to it on the Arch Wiki page on firejail. Maybe those were what you refered to in your original question.
Historically there have always been arguments made pro and contra user namespaces in Linux. Either way, firejail is only issueing a warning here. It's up to you to decide whether or not you need userns support in firejail. Personally I have been running Arch Linux for a long time now with support for it enabled. Haven't seen an issue yet. Your mileage may vary.
@ghost commented on GitHub (Feb 18, 2019):
@glitsj16 Big thanks for your input!! So I have a bit of deciding if I am to use namespaces or not then =)
Thanks for your time!! Appreciate it
@Vincent43 commented on GitHub (Feb 18, 2019):
@anteg
The default value on my system is
30808.If you have a file on your system with that comment then it means you created it by yourself because this isn't part of default config in Arch. As it was mentioned above Arch already restricts
USER_NSto root user and further restriction isn't needed. Getting rid of that sysctl config should be safe for you.