[GH-ISSUE #6614] signal-desktop: program does not work on Ubuntu 22.04 #3310

Closed
opened 2026-05-05 09:54:15 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @saltiniroberto on GitHub (Jan 15, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6614

Description

The provided signal-desktop profile does not work on Ubuntu 22.04.

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash LC_ALL=C firejail --profile=/etc/firejail/signal-desktop.profile /usr/bin/signal-deskop

Expected behavior

Signal starts and operates as when not run inside the firejail sandbox

Actual behavior

Reading profile /etc/firejail/signal-desktop.profile
Reading profile /etc/firejail/electron.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-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 327398, child pid 327401
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Error fcopy: size limit of 500 MB reached
Warning: skipping crypto-policies for private /etc
Private /etc installed in 27.02 ms
Private /usr/etc installed in 0.00 ms
Warning: NVIDIA card detected, nogroups command ignored
Warning: cleaning all supplementary groups
Child process initialized in 169.96 ms
Error getpwuid: main.c:247 init_cfg: No such file or directory

Parent is shutting down, bye...

Behavior without a profile

Signal works.

Additional context

The following signal-desktop.local fixes the problem

private-bin signal-desktop
dbus-user.talk org.freedesktop.secrets

Environment

  • Name/version/arch of the Linux kernel (uname -srm): Linux 5.15.0-92-generic x86_64
  • Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Ubuntu 22.04
  • Version of Firejail (firejail --version): 0.9.72

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).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)
Originally created by @saltiniroberto on GitHub (Jan 15, 2025). Original GitHub issue: https://github.com/netblue30/firejail/issues/6614 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description The provided signal-desktop profile does not work on Ubuntu 22.04. ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Run in bash `LC_ALL=C firejail --profile=/etc/firejail/signal-desktop.profile /usr/bin/signal-deskop` ### Expected behavior Signal starts and operates as when not run inside the firejail sandbox ### Actual behavior ``` Reading profile /etc/firejail/signal-desktop.profile Reading profile /etc/firejail/electron.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-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 327398, child pid 327401 Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Error fcopy: size limit of 500 MB reached Warning: skipping crypto-policies for private /etc Private /etc installed in 27.02 ms Private /usr/etc installed in 0.00 ms Warning: NVIDIA card detected, nogroups command ignored Warning: cleaning all supplementary groups Child process initialized in 169.96 ms Error getpwuid: main.c:247 init_cfg: No such file or directory Parent is shutting down, bye... ``` ### Behavior without a profile Signal works. ### Additional context The following signal-desktop.local fixes the problem ``` private-bin signal-desktop dbus-user.talk org.freedesktop.secrets ``` ### Environment - Name/version/arch of the Linux kernel (`uname -srm`): Linux 5.15.0-92-generic x86_64 - Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Ubuntu 22.04 - Version of Firejail (`firejail --version`): 0.9.72 ### 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`) - [ ] 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). - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages)
gitea-mirror 2026-05-05 09:54:15 -06:00
  • closed this issue
  • added the
    notabug
    label
Author
Owner

@kmk3 commented on GitHub (Jan 15, 2025):

The following signal-desktop.local fixes the problem

private-bin signal-desktop
dbus-user.talk org.freedesktop.secrets

The dbus part was fixed by:

The profile does not use private-bin, so are you sure that it's needed?

Does anything change when using firejail-git?

<!-- gh-comment-id:2591833156 --> @kmk3 commented on GitHub (Jan 15, 2025): > The following signal-desktop.local fixes the problem > > ``` > private-bin signal-desktop > dbus-user.talk org.freedesktop.secrets > ``` The dbus part was fixed by: * #6498 The profile does not use `private-bin`, so are you sure that it's needed? Does anything change when using firejail-git?
Author
Owner

@saltiniroberto commented on GitHub (Jan 15, 2025):

The profile does not use private-bin, so are you sure that it's needed?

On my system yes, otherwise I get the error

Error: no suitable /usr/bin/signal-desktop executable found

I think that the issue might be due to the fact that on my system signal-desktop is handled via alternatives

/usr/bin/signal-desktop -> /etc/alternatives/signal-desktop -> /opt/Signal/signal-desktop

Does anything change when using firejail-git?

By this, do you mean using the current master branch on git?

<!-- gh-comment-id:2594164845 --> @saltiniroberto commented on GitHub (Jan 15, 2025): > The profile does not use `private-bin`, so are you sure that it's needed? On my system yes, otherwise I get the error ``` Error: no suitable /usr/bin/signal-desktop executable found ``` I think that the issue might be due to the fact that on my system `signal-desktop` is handled via `alternatives` `/usr/bin/signal-desktop -> /etc/alternatives/signal-desktop -> /opt/Signal/signal-desktop` > Does anything change when using firejail-git? By this, do you mean using the current master branch on git?
Author
Owner

@kmk3 commented on GitHub (Jan 20, 2025):

The profile does not use private-bin, so are you sure that it's needed?

On my system yes, otherwise I get the error

Error: no suitable /usr/bin/signal-desktop executable found

If there is no private-bin in any of your .local profiles, I'd guess that
maybe it was present somewhere in the include chain in 0.9.72 before the
refactoring of electron profiles.

private-bin does not seem to be effect when using the profile on
firejail-git.

Example:

$ firejail --quiet --profile=signal-desktop \
  ls /usr/bin/vim
/usr/bin/vim
$ firejail --quiet --ignore=private-bin --profile=signal-desktop \
  ls /usr/bin/vim
/usr/bin/vim

I think that the issue might be due to the fact that on my system
signal-desktop is handled via alternatives

/usr/bin/signal-desktop -> /etc/alternatives/signal-desktop -> /opt/Signal/signal-desktop

This is good to know, but I don't think it should be affected by private-bin.

Does anything change when using firejail-git?

By this, do you mean using the current master branch on git?

Yes; see for example:

Also, please test without private-bin in firejail-git as well.

<!-- gh-comment-id:2602275493 --> @kmk3 commented on GitHub (Jan 20, 2025): > > The profile does not use `private-bin`, so are you sure that it's needed? > > On my system yes, otherwise I get the error > > ``` > Error: no suitable /usr/bin/signal-desktop executable found > ``` If there is no `private-bin` in any of your .local profiles, I'd guess that maybe it was present somewhere in the include chain in 0.9.72 before the refactoring of electron profiles. `private-bin` does not seem to be effect when using the profile on firejail-git. Example: ```console $ firejail --quiet --profile=signal-desktop \ ls /usr/bin/vim /usr/bin/vim $ firejail --quiet --ignore=private-bin --profile=signal-desktop \ ls /usr/bin/vim /usr/bin/vim ``` > I think that the issue might be due to the fact that on my system > `signal-desktop` is handled via `alternatives` > > `/usr/bin/signal-desktop -> /etc/alternatives/signal-desktop -> /opt/Signal/signal-desktop` This is good to know, but I don't think it should be affected by `private-bin`. > > Does anything change when using firejail-git? > > By this, do you mean using the current master branch on git? Yes; see for example: * <https://github.com/netblue30/firejail/blob/1a576d15a9339b8f70ae3056e2413e58931072d5/.gitlab-ci.yml#L12-L28> Also, please test without `private-bin` in firejail-git as well.
Author
Owner

@saltiniroberto commented on GitHub (Jan 20, 2025):

Just tested with firejail-git and it all works, so closing this issue.

<!-- gh-comment-id:2603375995 --> @saltiniroberto commented on GitHub (Jan 20, 2025): Just tested with `firejail-git` and it all works, so closing this issue.
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#3310
No description provided.