-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firejail hangs with net parameter #3958
Comments
I'm having the same issue. I tried with --noprofile and with various network interfaces. It would occasionally start, but didn't work with any actual interface or bridge interface. |
We got another report about problems with AppArmor, which automagically resolve upon kernel upgrade to 5.10.16. If you get a chance, could you confirm the issues persist with a newer kernel? |
I just tried 5.10.16 and had mixed results with it. First few attempts didn't work (i.e. stuck) but then it started working. The problem is that I can't use 5.10.16 due to bug #3948. I can't enter any sandbox with 5.10.16. |
Do you see something in the system log? (only for the record: I cannot reproduce either issue on 5.10.13 kernels of Debian or Fedora, so this looks like something Arch specific) |
the other changes seem unrelated |
I just updated from Pop OS 20.10 to 21.04. 21.04 appears to have this issue while it was working in 20.10.
|
@matthew-nichols Latest Firejail release is 0.9.66. You can install that via https://launchpad.net/~deki/+archive/ubuntu/firejail. Would be appreciated if you could confirm your issue with that version. |
Slightly different result (operation not permitted as normal user, hang as root)
|
I observe the same symptoms (firejail hangs on startup at "Trying ..." for a long time and it eventually starting). So far I worked around that by patching out the call to |
I'm not sure why it's receiving so many packets, but one reason might be that a recvfrom of fixed length ETH_FRAME_LEN is not correct, assuming the ethernet frames are streamed in on the packet socket and the rest of the frame is not discarded. |
Hi,
Bug and expected behavior
some recent arch update must have (partially) broken firejails --net parameter. It used to work fine but now the program just hangs when executed with --net on a bridge device.
For some reason, one of my systemd startup service has no issues starting with --net.
What I have tried so far: downgrade kernel, downgrade networkmanager, downgrade firejail with no success.
I have also encountered #3948 which could be "solved" by downgrading the kernel from 5.10.13 to 5.10.12
I used networkmanager to create the bridge.
No profile and disabling firejail
firejail --noprofile /path/to/program
in a terminal?nothing changed
which <program>
orfirejail --list
while the sandbox is running)?nothing changed
Reproduce
Steps to reproduce the behavior:
firejail --noprofile --net=br1 --defaultgw=192.168.0.1 --dns=192.168.0.1 --ip=192.168.0.254 --debug sh
Environment
lsb_release -a
,screenfetch
orcat /etc/os-release
)firejail --version
) exclusive or used git commit (git rev-parse HEAD
)debug output
The text was updated successfully, but these errors were encountered: