mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4875] shellcheck: cannot enable executable stack (mdwe) #2799
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#2799
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 @redxef on GitHub (Jan 21, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4875
Description
Running shellcheck results in the following error when using firejail
But succeeds when running directly
shellcheck version:
0.8.0firejail version:
0.9.66Steps to Reproduce
Steps to reproduce the behavior
Expected behavior
shellcheck should be able to run.
Actual behavior
Shellcheck aborts with the error message
/usr/bin/shellcheck: error while loading shared libraries: libHSrts-ghc9.0.2.so: cannot enable executable stack as shared object requires: Operation not permittedBehavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin a terminal?The program runs as expected.
Additional context
Environment
2022-01-21 10:42:38+01000.9.660.8.0Checklist
/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)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@rusty-snake commented on GitHub (Jan 21, 2022):
Does
firejail --ignore=memory-deny-write-execute /usr/bin/shellcheck …work?@ghost commented on GitHub (Jan 22, 2022):
On Arch Linux I cannot reproduce BUT I use shellcheck-bin from AUR, which doesn't have the haskell dependencies. That version works as expected here, including with memory-deny-write-execute (a nice option to have in a sandbox). I'm assuming the referenced
libHSrts-ghc9.0.2.soin your error is a haskell kib, correct?There's not a trace of haskell in our repo currently. Maybe someone who has experience with it could create a allow-haskell.inc and its counterparts.
@redxef commented on GitHub (Jan 27, 2022):
firejail --ignore=memory-deny-write-execute /usr/bin/shellchecksolves the problem.@rusty-snake commented on GitHub (Jan 27, 2022):
Is there any seccomp related error?
5356609ae9/etc/templates/syscalls.txt (L92-L99)Or anything else in you syslog?
If not, you have to comment the profile and uncomment it line for line.
@redxef commented on GitHub (Jan 27, 2022):
Seccomp reported
mprotect, since the last option in the shellcheck config wasmemory-deny-write-executeI disabled this option which solved it. Switchingseccomptoseccomp !mprotectdidn't help though.@MiltiadisKoutsokeras commented on GitHub (Feb 4, 2022):
Confirmed in Arch Linux, Firejail 0.9.66 and shellcheck 0.8.0. Workaround
firejail --ignore=memory-deny-write-execute /usr/bin/shellcheckworks.