[GH-ISSUE #5198] mupdf: Error getpwuid: main.c:243 init_cfg: No such file or directory #2911

Open
opened 2026-05-05 09:34:35 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @kiasoc5 on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5198

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

  • Arch Linux
  • Firejail version = 0.9.70

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).

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...

Originally created by @kiasoc5 on GitHub (Jun 13, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5198 ### 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 - Arch Linux - Firejail version = 0.9.70 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [X] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [X] I can reproduce the issue without custom modifications (e.g. globals.local). - [X] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [X] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). ### Log <details> <summary>Output of <code>LC_ALL=C firejail mupdf</code></summary> <p> ``` 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... ``` </p>
gitea-mirror added the
needinfo
label 2026-05-05 09:34:35 -06:00
Author
Owner

@ghost commented on GitHub (Jun 13, 2022):

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.

<!-- gh-comment-id:1153654992 --> @ghost commented on GitHub (Jun 13, 2022): > 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](https://archlinux.org/packages/community/x86_64/mupdf/) package from community. I cannot reproduce this here.
Author
Owner

@rusty-snake commented on GitHub (Jun 13, 2022):

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.

<!-- gh-comment-id:1154059271 --> @rusty-snake commented on GitHub (Jun 13, 2022): > LC_ALL=C firejail mupdf The template says <code>LC_ALL=C firejail <strong>/path/to/program</strong></code>. Please run `LC_ALL=C firejail /usr/bin/mupdf` or wherever mupdf is installed on your system.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2911
No description provided.