mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2387] RTNETLINK error using "--net" option #1591
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#1591
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 @fvdb06 on GitHub (Feb 2, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2387
As soon I start firejail with the --net option I get unexpectedly exited with status 1
RTNETLINK answers: Operation not supported
muser@Cantara > firejail --net=tornet --noprofile
Parent pid 7935, child pid 7940
RTNETLINK answers: Operation not supported
Error: failed to run /usr/lib/firejail/fnet
Error ioctl: interface.c:98 net_if_up: No such device
Error: failed to run /run/firejail/lib/fnet
Error: proc 7935 cannot sync with peer: unexpected EOF
Peer 7940 unexpectedly exited with status 1
muser@Cantara > firejail --net=eth0 --noprofile
Parent pid 4489, child pid 4494
RTNETLINK answers: Operation not supported
Error: failed to run /usr/lib/firejail/fnet
Error ioctl: interface.c:98 net_if_up: No such device
Error: failed to run /run/firejail/lib/fnet
Error: proc 4489 cannot sync with peer: unexpected EOF
Peer 4494 unexpectedly exited with status 1
@smitsohu commented on GitHub (Feb 2, 2019):
Looks like a duplicate of #2046.
Which Firejail version do you run?
@fvdb06 commented on GitHub (Feb 2, 2019):
#2046 states: my error was fixed at some point.
Unfortunately this is not my case.
muser@Cantara > pacman -Q firejail
firejail 0.9.58-1
@netblue30 commented on GitHub (Feb 2, 2019):
Run a /sbin/ifconfig and put the output here. How are your interfaces configured?
@fvdb06 commented on GitHub (Feb 2, 2019):
@ghost commented on GitHub (Feb 5, 2019):
@fvdb06 This is a longshot, but have you already checked the
restricted-networksetting in your/etc/firejail/firejail.config? If you happen to see 'restricted-network yes' that would explain things, as in that case access to --interface, --net=foo and --netfilter is only granted to root user.@netblue30 commented on GitHub (Feb 5, 2019):
Thanks @glitsj16, that could be the problem!
@fvdb06 commented on GitHub (Feb 6, 2019):
For me this is not the problem: /etc/firejail/firejail.config
#Enable or disable restricted network support, default disabled. If enabled,
#networking features should also be enabled (network yes).
#Restricted networking grants access to --interface, --net=ethXXX and
#--netfilter only to root user. Regular users are only allowed --net=none.
restricted-network no
@fvdb06 commented on GitHub (Feb 8, 2019):
I recently changed the start-up of my windowmanager. I start Fluxbox with systemd instead of .xinitrc
Has it a relationship with this????
@intika commented on GitHub (Apr 9, 2019):
Had a similar issue, this can be caused by a kernel update without reboot or a lack of needed kernel modules, to fix it either use a classic (main distribution) kernel or add the missing modules to your kernel
Also this
Error ioctl: interface.c:98 net_if_up: No such deviceis typically raising because of missing moduleCONFIG_IPVLANand orCONFIG_IPV6technically--netparameter require onlyipvlanbutipvlanhave a "false" dependency onipv6there is kernel patch to fix that here or here if you still want to keep ipv6 disabled while getting firejail network feature working otherwise just addipv6along withipvlanAlternatively
ifup locommand can give more details on error/missing module that could affect"firejail --net"Here are the required kernel modules for firejail networking features: (this is an exhaustive list to get everything working you should be good with just
ipvlan)Note that this also fix
RTNETLINK answers: Operation not supported@netblue30 this info could may be added to the wiki or faq@rusty-snake commented on GitHub (Jan 25, 2020):
Duplicate of #2046