mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3110] mupdf: profile does not work for mupdf-gl #1948
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#1948
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 @q3cpma on GitHub (Jan 3, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3110
Hello,
I've found that the mupdf profile was probably made for the
mupdf-x11only and didn't work withmupdf-glone, which is becoming the standard. To "fix" it, you need to removeprivate-etc alternatives,fonts, otherwise I get:which is strange.
And
memory-deny-write-executejust makes it freeze during loading.I guess the profile should handle the whole different binary thing, but I'm not sure why that private-etc would break things like this.
@q3cpma commented on GitHub (Jan 3, 2020):
Oh yeah, I'm using firejail 0.9.62 on Gentoo.
@rusty-snake commented on GitHub (Jan 3, 2020):
Thx for the rerport
We should commentd mdwe and leave a note.
This is a very short private-etc line, we should extend it to fix it. Can you run
firejail --build mupdf-gland post the private-etc line from the output (it is at the end of this huge output).@q3cpma commented on GitHub (Jan 3, 2020):
On Fri, Jan 03, 2020 at 02:03:07AM -0800, rusty-snake wrote:
It produces
private-etc passwd,drirc,. Really don't know where it comes from, that problem existed with qtwebengine at some point because/usr/lib/llvm/*wasn't properly whitelisted.@rusty-snake commented on GitHub (Jan 3, 2020):
Can you try with
private-etc alternatives,fonts,drircand if this does not work addpasswd. /etc/drirc contains infos/configs about "drivers".08d9927942/etc/templates/profile.template (L169)@q3cpma commented on GitHub (Jan 3, 2020):
On Fri, Jan 03, 2020 at 02:45:40AM -0800, rusty-snake wrote:
Doesn't work. By adding ld.so.cache to private-etc, it does. There's probably a mesa/opengl specific incl to use to get it, right?
@rusty-snake commented on GitHub (Jan 3, 2020):
Does this work?
private-etc alternatives,fonts,drirc,glvnd,bumblebee,nvidia,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload@q3cpma commented on GitHub (Jan 3, 2020):
Yes, but like I said, I only needed
ld.so.cache(should probably add ld.*). But it looks like a hack to specify it that way.@q3cpma commented on GitHub (Jan 3, 2020):
Ah, looks like there's no common file for it, indeed.
@q3cpma commented on GitHub (Jan 3, 2020):
Now, the real problem is that firejail should use
$(basename -- "$(readlink -f -- "$1")")as binary name to find the appropriate profile, then use the symlink name.@rusty-snake commented on GitHub (Jan 3, 2020):
So for you it is
private-etc alternatives,fonts,ld.so.cache, right?@q3cpma commented on GitHub (Jan 3, 2020):
On Fri, Jan 03, 2020 at 06:43:05AM -0800, rusty-snake wrote:
Yes, but I added the rest of ld.*. The .cache might disappear anytime.