mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1346] private-bin and shells #923
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#923
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 @reinerh on GitHub (Jun 23, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1346
Hi,
while investigating a failing tar.exp test, I found out that there is an issue with private-bin and shells.
On Debian/Ubuntu tar.exp fails, because bzip2 can't be executed. This probably fails because it can't execute the default shell. In the tar profile it allows "sh", but not for example "bash", "dash" etc, so they are not available in the private bin.
And indeed, after I added dash (my /bin/sh points to dash) to the private-bin line, the test was passing.
Adding all shells to all private-bin lines that require a shell is probably no good solution.
I'm wondering now if the symlink should be resolved and the destination binary be also copied to the private bin?
@netblue30 commented on GitHub (Jun 24, 2017):
I added sh,bash,dash in several profiles:
81b61d55a3I think that's the easiest fix for now. Some time ago somebody put in a patch for private-bin to follow the links. I had to disable it after some time, apparently on some distributions firefox is a symbolic link in /usr/bin directory pointing to the place where firefox was installed, and it was breaking firefox.
I disabled the patch, currently it is a config option in /etc/firejail/firejail config:
@reinerh commented on GitHub (Jun 24, 2017):
Okay, thanks. I wasn't aware of the config option.
Let's keep your fix then for now.