[GH-ISSUE #2209] Firejail breaks gajim #1482

Closed
opened 2026-05-05 08:08:54 -06:00 by gitea-mirror · 13 comments
Owner

Originally created by @qazip on GitHub (Oct 20, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2209

Using latest version of firejail. Here's the output of 'gajim':

➜  ~ gajim                                                                                                                    
Reading profile /etc/firejail/gajim.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 28273, child pid 28274
Warning: skipping alsa for private /etc
Warning: skipping crypto-policies for private /etc
Warning: skipping pki for private /etc
Private /etc installed in 35.31 ms
10 programs installed in 11.73 ms
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: cleaning all supplementary groups
Child process initialized in 125.34 ms
execvp: No such file or directory

Parent is shutting down, bye...
Originally created by @qazip on GitHub (Oct 20, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2209 Using latest version of firejail. Here's the output of 'gajim': ``` ➜ ~ gajim Reading profile /etc/firejail/gajim.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 28273, child pid 28274 Warning: skipping alsa for private /etc Warning: skipping crypto-policies for private /etc Warning: skipping pki for private /etc Private /etc installed in 35.31 ms 10 programs installed in 11.73 ms Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: cleaning all supplementary groups Child process initialized in 125.34 ms execvp: No such file or directory Parent is shutting down, bye... ```
Author
Owner

@Fred-Barclay commented on GitHub (Oct 20, 2018):

I can't replicate on Arch. What distro and version of gajim are you using?
Cheers!

<!-- gh-comment-id:431609191 --> @Fred-Barclay commented on GitHub (Oct 20, 2018): I can't replicate on Arch. What distro and version of gajim are you using? Cheers!
Author
Owner

@qazip commented on GitHub (Oct 20, 2018):

➜  ~ pacman -Q gajim firejail
gajim 1.0.3-3
firejail 0.9.56-1

I am using antergos. I used firecfg.

<!-- gh-comment-id:431611067 --> @qazip commented on GitHub (Oct 20, 2018): ``` ➜ ~ pacman -Q gajim firejail gajim 1.0.3-3 firejail 0.9.56-1 ``` I am using antergos. I used firecfg.
Author
Owner

@qazip commented on GitHub (Oct 21, 2018):

@Fred-Barclay, why would you not be able to replicate? Can you provide your gajim profile and both versions of your firejail and gajim?

<!-- gh-comment-id:431653108 --> @qazip commented on GitHub (Oct 21, 2018): @Fred-Barclay, why would you not be able to replicate? Can you provide your gajim profile and both versions of your firejail and gajim?
Author
Owner

@Fred-Barclay commented on GitHub (Oct 21, 2018):

I don't know. 😕 I've build firejail from yesterday's commit (7c481eb43c) so my profile is 92bff8a23c/etc/gajim.profile

<!-- gh-comment-id:431693380 --> @Fred-Barclay commented on GitHub (Oct 21, 2018): I don't know. :confused: I've build firejail from yesterday's commit (7c481eb43c3a737eeb5a0e4fc089efa281549e4c) so my profile is https://github.com/netblue30/firejail/blob/92bff8a23c8d7eb89c9bc1c1f9c8a74f74524fc2/etc/gajim.profile
Author
Owner

@SkewedZeppelin commented on GitHub (Oct 21, 2018):

I too cannot reproduce under firejail from master with gajim 1.0.3

You might have a broken install of python or something under Antergos, have you fully updated recently?
sudo pacman -Syyuu

<!-- gh-comment-id:431694521 --> @SkewedZeppelin commented on GitHub (Oct 21, 2018): I too cannot reproduce under firejail from master with gajim 1.0.3 You might have a broken install of python or something under Antergos, have you fully updated recently? `sudo pacman -Syyuu`
Author
Owner

@qazip commented on GitHub (Oct 22, 2018):

That is weird. I have everything properly updated. I tried running with that profile and it still doesn't run. Though it runs with --noprofile. What exactly does --noprofile do? Later I will try commenting line by line, to see where it breaks..

<!-- gh-comment-id:431776482 --> @qazip commented on GitHub (Oct 22, 2018): That is weird. I have everything properly updated. I tried running with that profile and it still doesn't run. Though it runs with --noprofile. What exactly does --noprofile do? Later I will try commenting line by line, to see where it breaks..
Author
Owner

@qazip commented on GitHub (Oct 22, 2018):

So, I found out that commenting #private-bin python,python3,sh,gpg,gpg2,gajim makes it work. Any idea why?

<!-- gh-comment-id:431798788 --> @qazip commented on GitHub (Oct 22, 2018): So, I found out that commenting `#private-bin python,python3,sh,gpg,gpg2,gajim` makes it work. Any idea why?
Author
Owner

@smitsohu commented on GitHub (Oct 30, 2018):

If you run firejail --build gajim and then close the program again, there should be a line with private-bin.

Does it contain something that is not yet in the profile?

EDIT: Nevermind, I just realized it is not working with Gajim.

<!-- gh-comment-id:434260250 --> @smitsohu commented on GitHub (Oct 30, 2018): If you run `firejail --build gajim` and then close the program again, there should be a line with private-bin. Does it contain something that is not yet in the profile? EDIT: Nevermind, I just realized it is not working with Gajim.
Author
Owner

@cron0mat commented on GitHub (Oct 31, 2018):

I can confirm the same error on Ubuntu 18.10 with

Gajim 1.1.0 beta1-1 and
firejail 0.9.56-1 ubuntu18.10.0

Commenting private-bin as above mentioned makes gajim work again.

<!-- gh-comment-id:434746549 --> @cron0mat commented on GitHub (Oct 31, 2018): I can confirm the same error on **Ubuntu 18.10** with Gajim 1.1.0 beta1-1 and firejail 0.9.56-1 ubuntu18.10.0 Commenting private-bin as above mentioned makes gajim work again.
Author
Owner

@Gronkdalonka commented on GitHub (Nov 12, 2018):

Same for me on Debian stretch with
Gajim 1.1.0-beta2-1
Firejail 0.9.56-2

Seems only to be a problem though if apparmor is enabled.
private-bin workaround is working here as well.

<!-- gh-comment-id:437825702 --> @Gronkdalonka commented on GitHub (Nov 12, 2018): Same for me on Debian stretch with Gajim 1.1.0-beta2-1 Firejail 0.9.56-2 Seems only to be a problem though if apparmor is enabled. private-bin workaround is working here as well.
Author
Owner

@rusty-snake commented on GitHub (Dec 27, 2018):

I had the same problem. (F29, Gajim 1.0.3)

See #2313. Does ceb47b1 work for everyone?

<!-- gh-comment-id:450155499 --> @rusty-snake commented on GitHub (Dec 27, 2018): I had the same problem. (F29, Gajim 1.0.3) See #2313. Does ceb47b1 work for everyone?
Author
Owner

@rusty-snake commented on GitHub (Dec 28, 2018):

If this works for all, we can close here.

<!-- gh-comment-id:450432774 --> @rusty-snake commented on GitHub (Dec 28, 2018): If this works for all, we can close here.
Author
Owner

@rusty-snake commented on GitHub (Apr 10, 2019):

Closing here, feel free to reopen.

<!-- gh-comment-id:481759655 --> @rusty-snake commented on GitHub (Apr 10, 2019): Closing here, feel free to reopen.
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#1482
No description provided.