mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5321] Double invocation breaks certain applications #2958
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#2958
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 @NetSysFire on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5321
Description
When
firecfghas been run, so/usr/local/bin/manis symlinked and therefore automagically firejailed,firejail man firejaildoes not work while justman firejailworks.However, this specifically only breaks man so far.
firejail drill example.comfor example works.Steps to Reproduce
/usr/bin/manpoints to/usr/bin/firejail.firejail man firejail(you may choose any other manpage of course)Error getpwuid: main.c:245 init_cfg: No such file or directoryExpected behavior
I know this is a bit of an edge case, but other applications do work with that. E.g
firejail drill example.comworks.Actual behavior
It does not work.
Behavior without a profile
n/a
Additional context
Spoke with @glitsj16 on IRC about that.
#2121 appears to be relevant, but this issue does not seem to be about apparmor becaue
sudo aa-statuslistsfirejail-defaultand there is neither man, less or more in the list of active apparmor profiles.--ignore=apparmordoes not appear to make a difference here.As you can see, those processes are all using the
firejail-defaultprofile.Curiously enough it works when you add
private-etc group,passwdtoman.local, glitsj16 told me this is what they have been using.Feel free to assign a lower priority to this weird voodoo issue as a double invocation of firejail is not really the standard and more of a user error than anything else, but glitsj16 wanted me to report this just so it can at least be a known issue.
Environment
5ab4aeb35Checklist
/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)@ghost commented on GitHub (Aug 18, 2022):
I've seen many references to this 'double invocation' topic in the past. Just wondering if we can do something more than the warning. Turning it into a fatal error would be overkill, but it would be nice to have an OSD notifier tool for making the (GUI) users more aware of things like this.
@rusty-snake commented on GitHub (Aug 18, 2022):
Most of the time we say "firejail in firejail" (just to have the term you need to query for older issues)
Yes,
private-etcis the cause. Profiles w/o it are likely not affected.@rusty-snake commented on GitHub (Aug 18, 2022):
Actually it's a duplicate of #2877 Issue 1.