mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6646] firecfg: program symlinks are removed when not in firecfg.config #3323
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#3323
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 @Dieterbe on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6646
Hello,
I noticed i used to have symlinks, that recently (after summer 2024) have started disappearing:
(output comes from the https://github.com/CyberShadow/aconfmgr tool).
indeed...
I've had this pacman hook on arch linux for about as long as i've used firejail:
i've modified the hook to just run
/usr/bin/firecfgto make sure there were no errors (there weren't), although there was a warning:this reveals (to me) it uses the firecfg.config to control which hooks are managed, so ...
i've pulled the current codebase to see why these programs are no longer included. unfortunately, nothing is revealed:
any idea what's going on? thanks
@rusty-snake commented on GitHub (Feb 11, 2025):
/etc/firejail/firecfg.config? It should not modify this file if it was modified by an admin IMHO.@Dieterbe commented on GitHub (Feb 11, 2025):
i was using the wrong
tig -Gsyntax. should be-G<term>without the space.but this shows only sha256sum being added to the file, and no hits for pwvucontrol in git.
i have the latest version (0.9.72) installed, but seems this release dates from jan 2023. the sha256sum being added to the file in git was in feb 2023. there are 0 hits for pwvucontrol across all files across the entire history within the git repo. perhaps this one (and maybe others) were added manually. though i've been using the hook for a long time, but i'm not quite sure.
i have verified that my /etc/firejail/firecfg.config is identical to src/firecfg/firecfg.config in git at the 0.9.72 tag.
@kmk3 commented on GitHub (Feb 12, 2025):
Indeed, it seems that pwvucontrol was never in firecfg.config.
So presumably you (or some other program) either added it to firecfg.config or
created the symlink manually.
sudo firecfgby default removes all symlinks in /usr/local/bin that point tofirejail (just like with
sudo firecfg --clean) before creating new symlinls.So if pwvucontrol is not in firecfg.config and you (or the hook) execute
firecfg, then it should remove any pwvucontrol symlinks.It seems to be working as intended, so closing.
If you can reproduce firecfg not creating symlinks for programs in
firecfg.config, feel free to comment.
@Dieterbe commented on GitHub (Feb 12, 2025):
thanks @kmk3 , yeah the strange thing is that those symlinks were there to begin width. they must have appeared by running some command, perhaps while setting up firejail there were instructions somewhere that led to them being created. cause i'm pretty sure i didn't do this myself.
the other question is: should these programs not be included in firecfg.config ?
@kmk3 commented on GitHub (Feb 13, 2025):
Some of them (like pwvucontrol) don't even have a profile, in which case there
is no point.
Overall, programs are added (and removed) on a case by case basis.
As a user, if you want a specific program to have a symlink, make sure that it
is listed in your /etc/firejail/firecfg.config.
Or as of #5876, list all programs that you want symlinked in
/etc/firejail/firecfg.d/.