mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1628] Should noexec ${HOME} be changed to noexec ${HOME}/* ? #1093
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#1093
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 @dkwls on GitHub (Nov 2, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1628
I have noticed that many profiles contain
noexec /tmpnoexec ${HOME}noexec /tmpappears to apply recursively butnoexec ${HOME}does not.Should
noexec ${HOME}be changed tonoexec ${HOME}/*?Also is there any difference between
noexec ${HOME}andnoexec ~?@smitsohu commented on GitHub (Nov 3, 2017):
Hey @dkwls!
Can I ask which observation led you to this conclusion?
No, they are the same.
@dkwls commented on GitHub (Nov 3, 2017):
Thanks for your reply @smitsohu.
I found that I was able to run scripts contained in ~/bin despite the profile containing
noexec ${HOME}.Eventually I was able to isolate the problem. /etc/firejail/vlc.profile contains the following:
...include /etc/firejail/disable-common.inc...noexec ${HOME}noexec /tmp/etc/firejail/disable-common.inc contains:
...read-only ${HOME}/bin...When
read-only ${HOME}/binappears beforenoexec ${HOME}as is the case in the default vlc profile (and presumably others) scripts can be executed from ~/bin. If the order is swapped firejail appears to work as expected.@dkwls commented on GitHub (Nov 3, 2017):
It looks like the root cause is a duplicate of bug #839 but the question about changing
noexec ${HOME}tonoexec ${HOME}/*remains.@netblue30 commented on GitHub (Nov 6, 2017):
Leave it as noexec ${HOME}, I'll try to bring in a fix for it, thanks for the bug.
@dkwls commented on GitHub (Nov 6, 2017):
Thank you.
@chiraag-nataraj commented on GitHub (Jul 23, 2018):
Let's move the discussion of this issue to #2029.