[GH-ISSUE #2001] Ark does not open zip files #1347

Closed
opened 2026-05-05 07:54:26 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @curiosity-seeker on GitHub (Jun 14, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2001

I've noticed that Ark does not open zip files on Fedora 28 KDE. Using firejail-git.

Commenting the private-bin line fixes the problem. So it seems that something is missing in that line. I haven't been able so far to find it.

Originally created by @curiosity-seeker on GitHub (Jun 14, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2001 I've noticed that Ark does not open zip files on Fedora 28 KDE. Using firejail-git. Commenting the `private-bin` line fixes the problem. So it seems that something is missing in that line. I haven't been able so far to find it.
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 14, 2018):

Does it work under the release version (0.9.54)? Because just looking at the profiles, there doesn't seem to be anything significantly different in terms of the profile between the current dev version and the current release version.

<!-- gh-comment-id:397315659 --> @chiraag-nataraj commented on GitHub (Jun 14, 2018): Does it work under the release version (0.9.54)? Because just looking at the profiles, there doesn't seem to be anything significantly different in terms of the profile between the current dev version and the current release version.
Author
Owner

@curiosity-seeker commented on GitHub (Jun 14, 2018):

Just tested 0.9.54 on Siduction. zip files aren't opened, either.

<!-- gh-comment-id:397350690 --> @curiosity-seeker commented on GitHub (Jun 14, 2018): Just tested 0.9.54 on Siduction. zip files aren't opened, either.
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 14, 2018):

Hmm, okay. You can try commenting out private-bin and running strace, which might help you catch which binaries are not being included.

<!-- gh-comment-id:397365172 --> @chiraag-nataraj commented on GitHub (Jun 14, 2018): Hmm, okay. You can try commenting out `private-bin` and running `strace`, which might help you catch which binaries are not being included.
Author
Owner

@curiosity-seeker commented on GitHub (Jun 14, 2018):

I tried it with

strace -e trace=file /usr/bin/ark

but didn't find an executable in the output that wasn't already included (except ldd but that didn't make a difference).
In journalctl I'm getting the error:

ark[29214]: Empty filename passed to function

<!-- gh-comment-id:397375108 --> @curiosity-seeker commented on GitHub (Jun 14, 2018): I tried it with `strace -e trace=file /usr/bin/ark` but didn't find an executable in the output that wasn't already included (except ldd but that didn't make a difference). In journalctl I'm getting the error: `ark[29214]: Empty filename passed to function`
Author
Owner

@chiraag-nataraj commented on GitHub (Jun 14, 2018):

Huh, that's interesting. I wonder why commenting private-bin fixes that...normally, seeing that would make me think some files aren't accessible in the sandbox, so it would be more of a private or whitelist issue...

<!-- gh-comment-id:397379322 --> @chiraag-nataraj commented on GitHub (Jun 14, 2018): Huh, that's interesting. I wonder why commenting `private-bin` fixes that...normally, seeing that would make me think some files aren't accessible in the sandbox, so it would be more of a `private` or `whitelist` issue...
Author
Owner

@SkewedZeppelin commented on GitHub (Jun 14, 2018):

I think I fixed it
can you try with the following?

private-bin 7z,ark,bash,dash,lrzip,lsar,lz4,lzop,p7zip,rar,sh,tclsh,unar,unrar,unzip,zip,zipinfo
<!-- gh-comment-id:397389763 --> @SkewedZeppelin commented on GitHub (Jun 14, 2018): I think I fixed it can you try with the following? ``` private-bin 7z,ark,bash,dash,lrzip,lsar,lz4,lzop,p7zip,rar,sh,tclsh,unar,unrar,unzip,zip,zipinfo ```
Author
Owner

@curiosity-seeker commented on GitHub (Jun 15, 2018):

Thanks - this works! Great. bash,dash is not needed here, though.

A general question for future cases: is there a systematic way to find those needed binaries other than the above mentioned strace -e trace=file ... ?

<!-- gh-comment-id:397568456 --> @curiosity-seeker commented on GitHub (Jun 15, 2018): Thanks - this works! Great. `bash,dash` is not needed here, though. A general question for future cases: is there a systematic way to find those needed binaries other than the above mentioned `strace -e trace=file ...` ?
Author
Owner

@SkewedZeppelin commented on GitHub (Jun 15, 2018):

Awesome, I'll commit that. And I think bash is actually needed from what I saw.

And I just used strace, it was just a bit buried to find that it was needed.

Here were the actual commands I used

strace -fv -o test.log ark test.zip
grep "ENOENT" -v test.log | grep "/bin" > bins.txt

then I deduplicated bins.txt and sifted through it.
And sure enough tclsh and bash were being passed to execve.

<!-- gh-comment-id:397608454 --> @SkewedZeppelin commented on GitHub (Jun 15, 2018): Awesome, I'll commit that. And I think bash is actually needed from what I saw. And I just used strace, it was just a bit buried to find that it was needed. Here were the actual commands I used ``` strace -fv -o test.log ark test.zip grep "ENOENT" -v test.log | grep "/bin" > bins.txt ``` then I deduplicated bins.txt and sifted through it. And sure enough tclsh and bash were being passed to execve.
Author
Owner

@curiosity-seeker commented on GitHub (Jun 15, 2018):

Thanks - very helpful, indeed!

<!-- gh-comment-id:397648369 --> @curiosity-seeker commented on GitHub (Jun 15, 2018): Thanks - very helpful, indeed!
Author
Owner

@curiosity-seeker commented on GitHub (Jun 15, 2018):

I wonder if perf is even more helpful here. I think I'll have to do some digging.

<!-- gh-comment-id:397653837 --> @curiosity-seeker commented on GitHub (Jun 15, 2018): I wonder if [perf](http://brendangregg.com/perf.html) is even more helpful here. I think I'll have to do some digging.
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#1347
No description provided.