mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3480] PyCharm requires ${HOME}/.cache/ mounted exec #2188
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#2188
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 @k3an3 on GitHub (Jun 27, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3480
Write clear, concise and in textual form.
Bug and expected behavior
When PyCharm Professional starts, it runs a test script in /home/user/.cache. If the script isn't able to be executed, it will refuse to start. The default profile for PyCharm includes mounting /home as noexec, so this will prevent the IDE from starting.
PyCharm should start.
No profile or disabling firejail
firejail --noprofile PROGRAMin a shell?Appears to work as expected.
whereis PROGRAM,firejail --list,stat $programpath)?Works as expected.
Reproduce
Steps to reproduce the behavior:
firejail --profile=pycharm-professional ~/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/201.7846.77/bin/pycharm.shEnvironment
lsb_release -a)Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye
firejail --version) exclusive or used git commit (git rev-parse HEAD)firejail version 0.9.62 from Debian package
N/A
N/A
Checklist
find / -name 'firejail' 2>/dev/null/fd firejailto locate profiles ie in/usr/local/etc/firejail/PROGRAM.profile)debug output
@rusty-snake commented on GitHub (Jun 27, 2020):
Can you try to
ignore private-cache.Are any relevant things in your pycharm-community.local?
TODO: We need to add
blacklist ${HOME}/.cache/JetBrains.@k3an3 commented on GitHub (Jun 28, 2020):
Here's the things I tried in my
pycharm-community.local:@rusty-snake commented on GitHub (Jun 28, 2020):
Adding a
noblacklistto disable-programs.inc is usually wrongpycharm-community isn't a whitelisting profile, this will break things. (Try without it)
No need, disable-exec.inc isn't included
does not work
@k3an3 commented on GitHub (Jun 28, 2020):
Sorry, I meant I added this to disable-programs.inc:
I removed my changes from pycharm-community.local and now it works. The above didn't help or hurt. The problem, as you mentioned, was that I tried to add whitelisting to a blacklisting profile.
Unrelated question, apologies as I am new to this tool, what if I want to blacklist all of ${HOME} except ${HOME}/work and a few other required places? Or is that not possible with the blacklisting model?
@rusty-snake commented on GitHub (Jun 28, 2020):
If you want that a program has only access to explicit mentioned paths, you need to use whitelisting. If you miss some paths, the program fails.
two tipps:
include whitelist-common.inc, which whitelist (and make some of the read-only) commonly needed files/dirs.firejail --build /usr/bin/program.@k3an3 commented on GitHub (Jun 28, 2020):
Thanks. Looks like the issue was on my end, so I'll close this.