[GH-ISSUE #4012] join-or-start doesn't work with okular #2500

Closed
opened 2026-05-05 09:11:10 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Liorst4 on GitHub (Feb 26, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4012

When I open a second instance of okular with firejail I get Error: cannot read /proc file

Might be related to https://github.com/netblue30/firejail/issues/3612 ?

Workaround:
Remove the join-or-start line in okular's profie.

Environment

  • Arch Linux
  • Kernel: 5.10.17-hardened1-1-hardened
  • Firejail version
firejail version 0.9.64.4

Compile time support:
	- AppArmor support is enabled
	- AppImage support is enabled
	- chroot support is enabled
	- D-BUS proxy support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- firetunnel support is enabled
	- networking support is enabled
	- overlayfs support is disabled
	- private-home support is enabled
	- private-cache and tmpfs as user enabled
	- SELinux support is disabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled
debug output
Command name #okular#
Found okular.profile profile in /etc/firejail directory
Reading profile /etc/firejail/okular.profile
Found disable-common.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-common.inc
Found disable-common.local profile in /etc/firejail directory
Reading profile /etc/firejail/disable-common.local
Found disable-devel.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-devel.inc
Found disable-exec.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-exec.inc
Found disable-interpreters.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-interpreters.inc
Found disable-passwdmgr.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-passwdmgr.inc
Found disable-programs.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-programs.inc
Found disable-shell.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-shell.inc
Found disable-xdg.inc profile in /etc/firejail directory
Reading profile /etc/firejail/disable-xdg.inc
Found whitelist-usr-share-common.inc profile in /etc/firejail directory
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Found whitelist-usr-share-common.local profile in /etc/firejail directory
Reading profile /etc/firejail/whitelist-usr-share-common.local
Found whitelist-var-common.inc profile in /etc/firejail directory
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: Warning: NVIDIA card detected, nogroups command disabled
Switching to pid 34025, the first child process inside the sandbox
User namespace detected: /proc/34025/uid_map, $MY_UID, $MY_UID
Error: cannot read /proc file
Originally created by @Liorst4 on GitHub (Feb 26, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4012 When I open a second instance of okular with firejail I get `Error: cannot read /proc file` Might be related to https://github.com/netblue30/firejail/issues/3612 ? Workaround: Remove the `join-or-start` line in okular's profie. **Environment** - Arch Linux - Kernel: 5.10.17-hardened1-1-hardened - Firejail version ``` firejail version 0.9.64.4 Compile time support: - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - D-BUS proxy support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - firetunnel support is enabled - networking support is enabled - overlayfs support is disabled - private-home support is enabled - private-cache and tmpfs as user enabled - SELinux support is disabled - user namespace support is enabled - X11 sandboxing support is enabled ``` <details><summary> debug output </summary> ``` Command name #okular# Found okular.profile profile in /etc/firejail directory Reading profile /etc/firejail/okular.profile Found disable-common.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-common.inc Found disable-common.local profile in /etc/firejail directory Reading profile /etc/firejail/disable-common.local Found disable-devel.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-devel.inc Found disable-exec.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-exec.inc Found disable-interpreters.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-interpreters.inc Found disable-passwdmgr.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-passwdmgr.inc Found disable-programs.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-programs.inc Found disable-shell.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-shell.inc Found disable-xdg.inc profile in /etc/firejail directory Reading profile /etc/firejail/disable-xdg.inc Found whitelist-usr-share-common.inc profile in /etc/firejail directory Reading profile /etc/firejail/whitelist-usr-share-common.inc Found whitelist-usr-share-common.local profile in /etc/firejail directory Reading profile /etc/firejail/whitelist-usr-share-common.local Found whitelist-var-common.inc profile in /etc/firejail directory Reading profile /etc/firejail/whitelist-var-common.inc Warning: Warning: NVIDIA card detected, nogroups command disabled Switching to pid 34025, the first child process inside the sandbox User namespace detected: /proc/34025/uid_map, $MY_UID, $MY_UID Error: cannot read /proc file ``` </details>
Author
Owner

@rusty-snake commented on GitHub (Feb 26, 2021):

Duplicate of #3948

<!-- gh-comment-id:786613283 --> @rusty-snake commented on GitHub (Feb 26, 2021): Duplicate of #3948
Author
Owner

@Liorst4 commented on GitHub (Feb 26, 2021):

Missed that is was a duplicate.
My bad

<!-- gh-comment-id:786614473 --> @Liorst4 commented on GitHub (Feb 26, 2021): Missed that is was a duplicate. My bad
Author
Owner

@rusty-snake commented on GitHub (Feb 26, 2021):

I did a short try what you can find if you search for the command (join-or-start) and the error message (cannot read /proc file). GitHub does not find #3948.

https://github.com/netblue30/firejail/issues?q=join-or-start+cannot+read+%2Fproc+file

Screenshot_2021-02-26 netblue30 firejail-fs8

However, DDG does. (With "site:github.com AND inurl:netblue30/firejail/issues" for the SE nerds 🤓 out there).

https://duckduckgo.com/?q=site%3Agithub.com+AND+inurl%3Anetblue30%2Ffirejail%2Fissues+join-or-start+cannot+read+%2Fproc+file+&ia=web

Screenshot_2021-02-26 site github com AND inurl netblue30 firejail issues join-or-start cannot read proc file at DuckDuckGo-fs8

<!-- gh-comment-id:786623910 --> @rusty-snake commented on GitHub (Feb 26, 2021): I did a short try what you can find if you search for the command (join-or-start) and the error message (cannot read /proc file). GitHub does not find #3948. https://github.com/netblue30/firejail/issues?q=join-or-start+cannot+read+%2Fproc+file ![Screenshot_2021-02-26 netblue30 firejail-fs8](https://user-images.githubusercontent.com/41237666/109300477-79aad680-782e-11eb-8631-b5e8e9edb841.png) However, DDG does. (With "site:github.com AND inurl:netblue30/firejail/issues" for the SE nerds :nerd_face: out there). https://duckduckgo.com/?q=site%3Agithub.com+AND+inurl%3Anetblue30%2Ffirejail%2Fissues+join-or-start+cannot+read+%2Fproc+file+&ia=web ![Screenshot_2021-02-26 site github com AND inurl netblue30 firejail issues join-or-start cannot read proc file at DuckDuckGo-fs8](https://user-images.githubusercontent.com/41237666/109300551-892a1f80-782e-11eb-82b2-d293d8908eb2.png)
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#2500
No description provided.