mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6921] /home/user is mounted with noexec when --private is used #3420
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#3420
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 @oblique on GitHub (Oct 1, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6921
Description
When
--privateis used the/home/userdirectory is mounted as NOEXEC, even ifignore noexec ${HOME}is specified.Steps to Reproduce
firejail --private bashecho -e '#!/bin/bash\necho test' > test.shchmod +x test.sh./test.shError:
bash: ./test.sh: Permission denied.Expected behavior
I would expect the
/home/userdirectory to allow execution unless ifnoexec ${HOME}is specified.Actual behavior
/home/userdoes not allow executionBehavior without a profile
--noprofiledoesn't change the behaviour.Additional context
The code responsible for this is:
54d5bb04bc/src/firejail/fs_home.c (L395-L402)There are two ways of fixing this:
ignore noexec /homeorignore noexec ${HOME}is specified, then we remove theMS_NOEXECflag.noexec ${HOME}if they don't want execution.There is a workaround for this issue: If
--allusersis specified then/home/useris mounted viafs_tmpfs, which doesn't useMS_NOEXEC.Environment
uname -srm): Linux 6.16.8-arch3-1 x86_64mesa 1:24.3.3-2"): bash 5.3.3
firejail --version): 0.9.76was compiled (
git rev-parse HEAD):Checklist
/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)@netblue30 commented on GitHub (Jan 9, 2026):
Fixed, thanks @oblique
I have removed MS_NOEXEC flag from the code above. In the profiles noexec home is usually done by including disable-exec.inc.
06fe85f4b7