mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6105] pulsar: help wanted to create a new profile #3181
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3181
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Lonniebiz on GitHub (Nov 26, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6105
I requested a profile for Pulsar here.
I tried to create a local profile based on the one for atom:
But I got stuck on this error:
Error: /tmp/.org.chromium.Chromium.jcnd3m: failed to map segment from shared objectI tried adding these directive into the local profile, but they don't seem to get me past the error:
After that, I tried using firetools to create a totally different profile for Pulsar:
I changed
seccomptoseccomp !chrootdue to this error:"Check failed: sys_chroot("/proc/self/fdinfo/") == 0"
After that, it at least launched. However, I bet someone more experience than I could make a less permissive profile that also launches. I'm still learning.
@ross-zilligen commented on GitHub (Jan 8, 2026):
I've been trying to get a working profile for Pulsar under Fedora 42 (not in any repos on my distro so I had just installing from a github release). I found this page after I had already been tinkering with a modified version of the atom profile (similar to yourself). I also added a few lines from the VS code profile since both editors are Electron-based.
Like you, I was getting a lot of
Error: /tmp/.org.chromium.Chromium.XXXXXX: failed to map segment from shared objectnoise when I was running things. But wanted to chime in with a few bits that I learned along the way in case it is helpful to the overall effort to get a profile that both works and has decent enough security to make it into the default profiles.first there were a few non-firejail errors related to
/tmp/.org.chromium.Chromium.XXXXXXdue to /tmp havingnoexec. See:both of these had suggestions such as remounting tmp w
execwhich someone rightly pointed outThere was also a suggestion of overriding TMPDIR to point to somewhere other that /tmp, which I thought was more interesting.
I had attempted that in one version of the profile I was working on by adding:
but I could never get it to launch using either the
/opt/Pulsar/pulsarbinary or the/usr/bin/pulsarbash script.firejail --profile=pulsar-edit /usr/bin/pulsar --no-sandboxwould just hang after awhile when using this and not give any useful errors. The${HOME}/.tmp/pulsarfolder did get created but there wasn't anything inside. But the binary under /opt would give me this apparently related to node-sentinel-file-watcher (aka 'nsfw'):so I never really got it working while isolating /tmp to my satisfaction. BUT if you comment out the stuff I was attempting with
TMPDIRand thenoexec /tmpthen it at least runs (not even any errors from the 'nsfw' module) ... can't say how protected you are like that so it might be pretty useless for folks wandering in from the web. OTOH, there are already profiles under /etc/firejail that don't appear to block /tmp so maybe its fine? I'm not a security expert so I'll wait for someone more experienced on that front to chime in.In either case, hopefully there are a few more clues here that will get us a but closer to a final Pulsar profile :-D
btw here's the /etc/firejail/pulsar-edit.profile I was using at the end: