mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2854] Standard notes not working #1784
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#1784
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 @Edu4rdSHL on GitHub (Jul 12, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2854
I'm trying to run
standardnotes-desktopfrom ArchLinux and I got:I tried removing
unixfrom https://github.com/netblue30/firejail/blob/master/etc/standardnotes-desktop.profile#L36 but doesn't worked:@rusty-snake commented on GitHub (Jul 12, 2019):
@Edu4rdSHL What is in your
globals.local?That will fully break standart-notes.
@veloute commented on GitHub (Jul 12, 2019):
experiencing the same problem.
after a few minutes of playing around, seccomp and apparmor seem to have something to do with it.
try commenting both options out and see if that works for you (as a temp solution).
@rusty-snake commented on GitHub (Jul 12, 2019):
Related to #2821:
riot-desktop and standartnotes-desktop use both electron, right?
electron recently had an update with fixes of his own sandbox [1, 2, 3].
Maybe all electron-apps now need the
chrootsyscall.@Edu4rdSHL try commet
apparmorandseccompas @veloute proposed and add the following:@veloute commented on GitHub (Jul 12, 2019):
we should probably add an include line for the electron profile in standardnotes-desktop's profile, right?
@rusty-snake commented on GitHub (Jul 12, 2019):
electron.profile also still have
seccomp.But Streamlineing all electron-app-profile would may good. (But there are more than only standartnotes-desktop. e.g. teams-for-linux, telegram-desktop, ...)
I think the most
*-desktopand some more.@veloute commented on GitHub (Jul 12, 2019):
can confirm those changes are working for me; now just to wait for @Edu4rdSHL and make a pr with the changes if that's the fix needed.
@Edu4rdSHL commented on GitHub (Jul 13, 2019):
I tried it and worked, but now I've a question. In
globals.localI hadapparmorto enable it globally, now I need to remove it to get standard notes working.Is not possible to have standard notes working with apparmor?
@veloute commented on GitHub (Jul 13, 2019):
create a standardnotes-desktop.local file in either /etc/firejail/ or /home/$USER/.config/firejail/ with the line'
ignore apparmor@Edu4rdSHL commented on GitHub (Jul 13, 2019):
@veloute thanks, I know that, but my question is if denitively isn't possible to have the standard notes app with apparmor.
@rusty-snake commented on GitHub (Jul 13, 2019):
@Edu4rdSHL
firejail-defaultis the apparmor profile that is used by firejail. Site-specific additions and overrides:local/firejail-localMaybe this line in firejail-default causing the issue
capability sys_chroot,.I can' tell you more since I do not use AA.
EDIT: Why can I add reactions to my own posts ❓ 🤔
@veloute commented on GitHub (Jul 13, 2019):
fixed with
dae5a61751@Vincent43 commented on GitHub (Jul 13, 2019):
@Edu4rdSHL Please post
journalctl --grep=DENIEDafter failed attempt withapparmorenabled.This line only allows
sys_chrootcapability so it can't really break anything.@Edu4rdSHL commented on GitHub (Jul 13, 2019):
Hello, @Vincent43 I got it:
@Vincent43 commented on GitHub (Jul 13, 2019):
@Edu4rdSHL Ok, try adding
/proc/@{PID}/comm w,in/etc/apparmor.d/local/firejail-localand see if that helps.You have to run
apparmor_parser -r /etc/apparmor.d/firejail-defaultafterwards.@Edu4rdSHL commented on GitHub (Jul 13, 2019):
Worked, thanks.
@Vincent43 commented on GitHub (Jul 14, 2019):
@Edu4rdSHL I will add it in default apparmor profile and re-enable apparmor in standard-notes then.
@Vincent43 commented on GitHub (Jul 14, 2019):
Fixed with
2eca1252e3. I think everything is covered now.@Edu4rdSHL commented on GitHub (Jul 14, 2019):
Thanks for the fix.