netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.82k stars 567 forks source link

mupdf: Error getpwuid: main.c:243 init_cfg: No such file or directory #5198

Open kiasoc5 opened 2 years ago

kiasoc5 commented 2 years ago

Description

Firejailed mupdf fails to start

Steps to Reproduce

firejail mupdf

Expected behavior

mupdf starts normally

Actual behavior

mupdf does not start

Behavior without a profile

mupdf starts normally

Environment

Checklist

Log

Output of LC_ALL=C firejail mupdf

``` Reading profile /etc/firejail/mupdf.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 16831, child pid 16832 Warning: skipping alternatives for private /etc Private /etc installed in 10.51 ms Private /usr/etc installed in 0.00 ms Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: not remounting /home/kiasoc5/.ssh/config Warning: not remounting /run/user/1000/gvfs Warning: not remounting /run/user/1000/doc Warning: not remounting /run/user/1000/kio-fuse-mBnKEw Warning: not remounting /home/kiasoc5/.ssh/config Blacklist violations are logged to syslog Child process initialized in 246.57 ms Error getpwuid: main.c:243 init_cfg: No such file or directory Parent is shutting down, bye... ```

glitsj16 commented 2 years ago

Error getpwuid: main.c:243 init_cfg: No such file or directory

That error is usually seen when a profile misses something in private-etc. Does it work when you add ignore private-etc OR private-etc group,passwd to a mupdf.local?

For the record, I'm on Arch Linux too and I use the mupdf package from community. I cannot reproduce this here.

rusty-snake commented 2 years ago

LC_ALL=C firejail mupdf

The template says LC_ALL=C firejail /path/to/program. Please run LC_ALL=C firejail /usr/bin/mupdf or wherever mupdf is installed on your system.