[GH-ISSUE #3806] Refactor electron.profile and electron based programs #2406

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

Originally created by @rusty-snake on GitHub (Dec 10, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3806

  • Allow chrome-sandbox

Add caps.keep sys_admin,sys_chroot to electron.profile and remove the following.
Additional add #include chromium-common-hardened.inc with a note.

caps.drop all
nonewprivs
noroot
protocol unix,inet,inet6,netlink
seccomp
  • Move include whitelist-common.inc to electron.profile
  • Discover which command are common enough to be part of electron.profile. Consider these:
    • include disable-devel.inc
    • include disable-exec.inc
    • include disable-interpreters.inc
    • include disable-xdg.inc
    • shell none
    • private-bin electron[0-9],electron[0-9][0-9]
    • nou2f
    • novideo
    • private-tmp
    • include whitelist-var-common.inc
    • include whitelist-usr-share-common.inc
    • include whitelist-runuser-common.inc
    • disable-mnt
    • private-cache
    • private-dev
  • consistent include globals.local
  • Make all electron based programs, electron redirect profiles. Current redirect profiles are below. If you know any missing post it.
$ grep -l "include electron.profile" /etc/firejail/*.profile
/etc/firejail/beaker.profile
/etc/firejail/freetube.profile
/etc/firejail/jitsi-meet-desktop.profile
/etc/firejail/nuclear.profile
/etc/firejail/riot-web.profile
/etc/firejail/rocketchat.profile
/etc/firejail/teams-for-linux.profile
/etc/firejail/teams.profile
/etc/firejail/twitch.profile
/etc/firejail/whalebird.profile
/etc/firejail/wire-desktop.profile
/etc/firejail/youtubemusic-nativefier.profile
/etc/firejail/youtube.profile
/etc/firejail/ytmdesktop.profile

Needs update:

  • beaker.profile
  • freetube.profile
  • jitsi-meet-desktop.profile
  • nuclear.profile
  • riot-web.profile
  • rocketchat.profile
  • teams-for-linux.profile
  • teams.profile
  • twitch.profile
  • whalebird.profile
  • wire-desktop.profile
  • youtubemusic-nativefier.profile
  • youtube.profile
  • ytmdesktop.profile
Originally created by @rusty-snake on GitHub (Dec 10, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3806 - [x] Allow chrome-sandbox Add `caps.keep sys_admin,sys_chroot` to electron.profile and remove the following. Additional add `#include chromium-common-hardened.inc` with a note. ``` caps.drop all nonewprivs noroot protocol unix,inet,inet6,netlink seccomp ``` - [x] Move `include whitelist-common.inc` to electron.profile - [x] Discover which command are common enough to be part of electron.profile. Consider these: - [x] `include disable-devel.inc` - [x] `include disable-exec.inc` - [x] `include disable-interpreters.inc` - [x] `include disable-xdg.inc` - [x] `shell none` - [x] ~`private-bin electron[0-9],electron[0-9][0-9]`~ - [x] `nou2f` - [x] `novideo` - [x] `private-tmp` - [x] `include whitelist-var-common.inc` - [x] `include whitelist-usr-share-common.inc` - [x] `include whitelist-runuser-common.inc` - [x] `disable-mnt` - [x] `private-cache` - [x] `private-dev` - [x] consistent `include globals.local` - [x] Make all electron based programs, electron redirect profiles. Current redirect profiles are below. If you know any missing post it. ``` $ grep -l "include electron.profile" /etc/firejail/*.profile /etc/firejail/beaker.profile /etc/firejail/freetube.profile /etc/firejail/jitsi-meet-desktop.profile /etc/firejail/nuclear.profile /etc/firejail/riot-web.profile /etc/firejail/rocketchat.profile /etc/firejail/teams-for-linux.profile /etc/firejail/teams.profile /etc/firejail/twitch.profile /etc/firejail/whalebird.profile /etc/firejail/wire-desktop.profile /etc/firejail/youtubemusic-nativefier.profile /etc/firejail/youtube.profile /etc/firejail/ytmdesktop.profile ``` Needs update: - [x] beaker.profile - [x] freetube.profile - [x] jitsi-meet-desktop.profile - [x] nuclear.profile - [x] riot-web.profile - [x] rocketchat.profile - [x] teams-for-linux.profile - [x] teams.profile - [x] twitch.profile - [x] whalebird.profile - [x] wire-desktop.profile - [x] youtubemusic-nativefier.profile - [x] youtube.profile - [x] ytmdesktop.profile
Author
Owner

@rusty-snake commented on GitHub (Dec 10, 2020):

  • atom
  • slack
  • signal-desktop
  • skypeforlinux
  • github-desktop
  • discord-common
  • zoom
<!-- gh-comment-id:742717930 --> @rusty-snake commented on GitHub (Dec 10, 2020): - [x] atom - [x] slack - [x] signal-desktop - [x] skypeforlinux - [x] github-desktop - [x] discord-common - [x] zoom
Author
Owner

@ghost commented on GitHub (Dec 11, 2020):

Very nice idea 👍, love it.

<!-- gh-comment-id:742884486 --> @ghost commented on GitHub (Dec 11, 2020): Very nice idea :+1:, love it.
Author
Owner

@rusty-snake commented on GitHub (Jul 29, 2021):

  • bitwarden
  • code
  • mattermost-desktop
<!-- gh-comment-id:889251188 --> @rusty-snake commented on GitHub (Jul 29, 2021): - [x] bitwarden - [x] code - [x] mattermost-desktop
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#2406
No description provided.