mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1246] grsec: user can not create network interfaces #847
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#847
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 @voidzero on GitHub (Apr 26, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1246
I'm trying to start a httpd (caddy) on kernel 4.9.22-hardened (Gentoo) and firejail 0.9.44.10, as a regular user, via the following command:
vbr0 does exist on the host and has IP 10.20.0.33/27.
If I run firejail with sudo (just to experiment), the veth pair is created and bound correctly to the bridge. But as a user this does not happen, even when the kernel.grsecurity sysctls are all set to disable, and with kernel.pax.softmode=1 it does not work for the regular user.
The user does have /proc access (a restriction that is possible on grsecurity is to only allow users full access to /proc when they are in a certain group - this user is a member of that group.)
If I start the firejail with zsh, inside the user namespace, I see that 'ip link list' does show the ethernet device:
But on the host, nothing.
dmesg shows:
Hope we can find a way to enable this, I'd love to be able to run this httpd inside of a firejail.
@voidzero commented on GitHub (Apr 26, 2017):
I also made sure that /etc/firejail/firejail.config does not accidentally contain
restricted-networking no. In other words: "it should work" so there must be something grsec is blocking.Right now I'm considering to change to a non-grsec enabled kernel just to get this to work.
@SkewedZeppelin commented on GitHub (Apr 30, 2017):
It might be related to CONFIG_GRKERNSEC_SOCKET.
https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options#Socket_restrictions
@voidzero commented on GitHub (May 6, 2017):
Thank you for the suggestion @SpotComms. I'll check it out, but not soon - I need a server to be available, so for the next round of kernel updates I'll be sure to test.
@netblue30 commented on GitHub (May 9, 2017):
If you still have the problem after testing, I'll reopen it.