[GH-ISSUE #1327] firejail 0.9.46 private-etc broken? #908

Closed
opened 2026-05-05 07:07:31 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @chiraag-nataraj on GitHub (Jun 2, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1327

I seem to have trouble with the following line in my mutt profile:

private-etc Muttrc.d,Muttrc,alternatives,resolv.conf,ssl,mime.types

which leads to the following output:

Reading profile .config/firejail/mutt.profile
Parent pid 12082, child pid 12083
Warning fcopy: skipping /etc/alternatives/rmid, cannot find inode
Warning fcopy: skipping /etc/alternatives/unpack200.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/keytool.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/jjs, cannot find inode
Warning fcopy: skipping /etc/alternatives/unpack200, cannot find inode
Warning fcopy: skipping /etc/alternatives/gnuplot5.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/pack200, cannot find inode
Warning fcopy: skipping /etc/alternatives/pack200.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/jjs.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/rmiregistry.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/js.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/tnameserv.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/gnuplot5, cannot find inode
Warning fcopy: skipping /etc/alternatives/servertool, cannot find inode
Warning fcopy: skipping /etc/alternatives/java-rmi.cgi, cannot find inode
Warning fcopy: skipping /etc/alternatives/rmid.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/orbd, cannot find inode
Warning fcopy: skipping /etc/alternatives/tnameserv, cannot find inode
Warning fcopy: skipping /etc/alternatives/orbd.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/servertool.1.gz, cannot find inode
Warning fcopy: skipping /etc/alternatives/keytool, cannot find inode
Warning fcopy: skipping /etc/alternatives/rmiregistry, cannot find inode
Error fcopy: invalid file /etc/mime.types
Error: failed to run /usr/lib/x86_64-linux-gnu/firejail/fcopy
Error: proc 12082 cannot sync with peer: unexpected EOF
Peer 12083 unexpectedly exited with status 1

I did not have this issue with 0.9.44, and do not have this issue with any other private-* lines in my profile.

[edit] removing mime.types from my profile allows the program to at least load, but I still get the other warnings.

Originally created by @chiraag-nataraj on GitHub (Jun 2, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1327 I seem to have trouble with the following line in my `mutt` profile: ```` private-etc Muttrc.d,Muttrc,alternatives,resolv.conf,ssl,mime.types ```` which leads to the following output: ```` Reading profile .config/firejail/mutt.profile Parent pid 12082, child pid 12083 Warning fcopy: skipping /etc/alternatives/rmid, cannot find inode Warning fcopy: skipping /etc/alternatives/unpack200.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/keytool.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/jjs, cannot find inode Warning fcopy: skipping /etc/alternatives/unpack200, cannot find inode Warning fcopy: skipping /etc/alternatives/gnuplot5.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/pack200, cannot find inode Warning fcopy: skipping /etc/alternatives/pack200.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/jjs.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/rmiregistry.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/js.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/tnameserv.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/gnuplot5, cannot find inode Warning fcopy: skipping /etc/alternatives/servertool, cannot find inode Warning fcopy: skipping /etc/alternatives/java-rmi.cgi, cannot find inode Warning fcopy: skipping /etc/alternatives/rmid.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/orbd, cannot find inode Warning fcopy: skipping /etc/alternatives/tnameserv, cannot find inode Warning fcopy: skipping /etc/alternatives/orbd.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/servertool.1.gz, cannot find inode Warning fcopy: skipping /etc/alternatives/keytool, cannot find inode Warning fcopy: skipping /etc/alternatives/rmiregistry, cannot find inode Error fcopy: invalid file /etc/mime.types Error: failed to run /usr/lib/x86_64-linux-gnu/firejail/fcopy Error: proc 12082 cannot sync with peer: unexpected EOF Peer 12083 unexpectedly exited with status 1 ```` I did not have this issue with 0.9.44, and do not have this issue with any other `private-*` lines in my profile. [edit] removing `mime.types` from my profile allows the program to at least load, but I still get the other warnings.
gitea-mirror 2026-05-05 07:07:31 -06:00
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 2, 2017):

Ah, interesting. It seems that some of my /etc/alternatives/ links are broken, so I guess those warnings make sense. However, it still breaks when I include mime.types.

<!-- gh-comment-id:305930777 --> @chiraag-nataraj commented on GitHub (Jun 2, 2017): Ah, interesting. It seems that some of my `/etc/alternatives/` links are broken, so I guess those warnings make sense. However, it still breaks when I include `mime.types`.
Author
Owner

@Fred-Barclay commented on GitHub (Jun 3, 2017):

Can you post your profile here?

<!-- gh-comment-id:305938638 --> @Fred-Barclay commented on GitHub (Jun 3, 2017): Can you post your profile here?
Author
Owner

@netblue30 commented on GitHub (Jun 3, 2017):

I think you removed Java Open JDK using "sudo apt-get remove openjdk...". This removed the package but left broken symlinks in /etc/alternatives. If you do "ls -l /etc/alternative/rmid", this is a symlink pointing nowhere, so firejail cannot set it up in --private-etc. Use "sudo apt-get purge ..." to remove packages, this also cleans up /etc directory.

Do also a "ls -l /etc/mime.types". This looks like a different problem.

<!-- gh-comment-id:305945576 --> @netblue30 commented on GitHub (Jun 3, 2017): I think you removed Java Open JDK using "sudo apt-get remove openjdk...". This removed the package but left broken symlinks in /etc/alternatives. If you do "ls -l /etc/alternative/rmid", this is a symlink pointing nowhere, so firejail cannot set it up in --private-etc. Use "sudo apt-get purge ..." to remove packages, this also cleans up /etc directory. Do also a "ls -l /etc/mime.types". This looks like a different problem.
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 3, 2017):

I got rid of those warnings, so you can ignore those.

Regarding /etc/mime.types, I found out that it was (for some reason) owned by me. Changing the permission on it to root:root was enough to get it to launch. So I guess the error could be clearer? But I'm going to close this as the issue is resolved 😄

For people coming back here at some point: check your permissions 😛

<!-- gh-comment-id:305947636 --> @chiraag-nataraj commented on GitHub (Jun 3, 2017): I got rid of those warnings, so you can ignore those. Regarding `/etc/mime.types`, I found out that it was (for some reason) owned by me. Changing the permission on it to `root:root` was enough to get it to launch. So I guess the error could be clearer? But I'm going to close this as the issue is resolved 😄 For people coming back here at some point: _check your permissions_ 😛
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#908
No description provided.