-
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 --join=foobar fails with Error: cannot read /proc file #3948
Comments
I can confirm the problem, it's still an issue with kernel 5.11 |
Found a workaround. Add "lsm=lockdown,yama,apparmor" to /etc/default/grub (GRUB_CMDLINE_LINUX) This will disable bpf (was enabled by default in 5.10.13 on Arch). |
@fjthrowaway I tried your workaround and is working for me as well, thanks a lot! |
UPDATE: seems like the workaround is no longer needed on the latest Arch Linux kernel (5.12.15-arch1-1). The
@simonfxr @fjthrowaway Can you confirm these observations? I realize this isn't a proper fix, but at least disabling @smitsohu Anything that can be done to drop that new error message? |
Good question. When we print Can you reproduce the message with Maybe the all lower case error message already points in some direction... |
Stupid me, that's Question is why |
Running that doesn't show the error message. So it looks like |
I'm still seeing this problem on Arch Linux with kernel 5.16.9-arch1-1 and firejail version 0.9.68, with the same reproduction steps as OP. Same symptoms, only printing this:
It seems to be related to apparmor. If I remove the To double-check,
These are my active LSM when joining doesn't work:
Without |
According to the Arch wiki |
Thanks @glitsj16, that helped me fix it! I replaced
My mistake was not using At the risk of going off topic in my defence, the Anyways, it seems this issue is resolved now, or does anyone else have this issue with |
That's indeed a fair observation. I retested this with a few different kernels on Arch Linux and without explicitly adding the lsm= kernel param AppArmor is not active (even though the module is loaded). As of writing the current default does not include apparmor - regardless of having $ uname -r
5.16.10-arch1-1
$ cat /sys/kernel/security/lsm
capability,landlock,lockdown,yama,bpf You can always write a simple shell script that checks /sys/kernel/security/lsm on login and notify-send's a warning if apparmor is missing/not in the appropriate order. Very hackish, but sometimes such is life... At least you'll be aware of the situation and can act appropriately.
IMO we can close this for now. There's a known workaround and people can always reopen when the problem turns up again. |
Bug and expected behavior
After updating firejail to 0.9.64.2 trying to join a firejail (either by name or by pid) always fails with:
Reproduce
Steps to reproduce the behavior:
firejail --noprofile --name=foobar /bin/bash
firejail --join=foobar /bin/bash
, it fails withEnvironment
Additional context
Other context about the problem like related errors to understand the problem.
Checklist
https://github.com/netblue30/firejail/issues/1139
)--profile=PROFILENAME
is used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM
to get english error-messages.browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.The text was updated successfully, but these errors were encountered: