mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6882] firefox: --allow-debuggers: PTRACE_TRACEME: Permission denied (AppArmor) #3403
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#3403
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 @vinc17fr on GitHub (Aug 28, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6882
Description
The
--allow-debuggersoption no longer works.Steps to Reproduce
Run the following command (taken from the firejail(1) man page):
Expected behavior
Firefox should start.
Actual behavior
I get the following errors:
Note: with
gdb, I get a similar error:Behavior without a profile
With
--noprofileinstead of the firefox profile,straceruns normally.Environment
uname -srm): Linux 6.12.41+deb13-amd64 x86_64mesa 1:24.3.3-2"): strace 6.16
firejail --version): 0.9.76Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail --allow-debuggers --profile=/etc/firejail/firefox.profile strace -f firefoxOutput of
LC_ALL=C firejail --debug --allow-debuggers --profile=/etc/firejail/firefox.profile strace -f firefox: fjdebug.txt@kmk3 commented on GitHub (Aug 28, 2025):
What changed compared to when it worked?
Such as kernel/package versions.
Is only firefox affected?
What is the output of the following?
Does it work after executing it?
@vinc17fr commented on GitHub (Aug 29, 2025):
Lots of things: this was several years ago. But perhaps this was with the
zoomprofile, for whichstraceactually works (I attempted to use gdb with thefirefoxprofile but was blocked for another reason).If you mean what is straced, no. Even that:
If you mean the profile, no again. I've tried various profiles, and I generally get the same error, or "Error: no suitable strace executable found". But this works with the
zoomprofile.Always 0.
No (as expected, since the value was already 0).
And on a Debian 12.11 machine:
@vinc17fr commented on GitHub (Aug 29, 2025):
Adding
--ignore=apparmormakesstracework. Like that:@vinc17fr commented on GitHub (Aug 29, 2025):
Note that adding
--ignore=apparmoris a bad workaround as one may not want to disable AppArmor completely just to enable ptrace.I'm wondering whether this could be the cause of the failure:
/etc/apparmor.d/firejail-defaultcontains@netblue30 commented on GitHub (Dec 23, 2025):
Actually this is a bug - under debug apparmor was supposed to be disabled!
@netblue30 commented on GitHub (Dec 23, 2025):
Added fix in
46b4c12b23, thanks for the bug!Test:
Notice apparmor complaining about firejail apparmor profile not being loaded into the kernel.