mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #433] Desktop notifications for blacklist violations #314
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#314
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 @netblue30 on GitHub (Apr 13, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/433
From wordpress:
question about desktop notifications for blacklist violations.
Can this be set up something like that like this up here? I think that would be a good thing.
@curiosity-seeker commented on GitHub (Apr 13, 2016):
I think for distros using systemd it should something like
journalctl | grep -E 'blacklist.*violation'as there is no syslog.
@ghost commented on GitHub (Apr 14, 2016):
I think it generally should be more accessible to the user and not a fixed script that firejail distributes. Should be easy to change the command to run, other than copying the script and making your own version out of it. Not everyone wants to run zenity for notifications.
It could be done as some kind of "event-hook". Whenever a blacklist violation (or other events possibly?) happens, run the command specified by the user.
@netblue30 commented on GitHub (Apr 14, 2016):
The messages are sent to syslog, so they already go to systemd. I'll look into some sort of event-hook as suggested by @avoidr
@vn971 commented on GitHub (Jul 17, 2016):
By the way, do systemd-based distros actually get syslog events from
firejail?Can somebody report systemd working fine with ferjail?
I've migrated to ArchLinux a couple of months ago and I still can't make firejail and syslog work together. I had to stop using custom seccomp rules for this exact reason.:(
@netblue30 commented on GitHub (Jul 18, 2016):
It should work, I send the messages to syslog using the facilities available in glibc. I'll do a short check on Arch.
@vn971 commented on GitHub (Jul 18, 2016):
If you can, that'd be great, thank you! The attempts that failed for me were installing
syslog-ngand watching for messages withjournalctl -f -n 200.@netblue30 commented on GitHub (Jul 18, 2016):
My understanding is systemd should collect by default all the messages that used to go to syslog. I'll have take a look.
@reinerh commented on GitHub (Jul 30, 2016):
@vn971 Have you enabled ForwardToSyslog in journald?
Otherwise syslog-ng doesn't receive the logs from journald.
@vn971 commented on GitHub (Jul 30, 2016):
@reinerh yes, I have it enabled in /etc/systemd/journald.conf. If you do get notifications on ArchLinux, please mention it, it'd be very interesting to know.
@reinerh commented on GitHub (Jul 30, 2016):
I'm not using Arch, but I see blacklist violations for example with
firejail --tracelog cd ~/.ssh:@vn971 commented on GitHub (Jul 30, 2016):
@reinerh this one I did (pleasantly and successfully) in ubundu/debian, too... Never so after moving to Arch. (I like Arch very much comparing to ubuntu, so switching back is not something I want..)
@chocolateboy commented on GitHub (Feb 23, 2018):
I think D-Bus is the standard way to do this (possibly via sd-bus on systemd systems).
@rusty-snake commented on GitHub (Aug 22, 2019):
@rusty-snake commented on GitHub (Aug 23, 2019):
Dependencies:
Features:
@curiosity-seeker commented on GitHub (Aug 23, 2019):
@rusty-snake : Thanks., I was going to test the script but ran into the error:
shellcheckproduced the following error several times:See https://github.com/koalaman/shellcheck/wiki/SC1017
tr -d '\r' < oldscript > newsriptfixed the problem.I will do further testing.
@vn971 commented on GitHub (Aug 23, 2019):
But @rusty-snake didn't publish any line breaks, it must be your local editor? Anyway, I moved to using bubblewrap for security isolation, so I'll unsubscribe.
@rusty-snake commented on GitHub (Aug 23, 2019):
Maye copy&paste error 😕\rWHAT?! 😱 I use\n(in vim)For me:
BUG:
NOTIFY_SENDvs.NOTIFY-SEND@curiosity-seeker commented on GitHub (Aug 24, 2019):
Oops - yes, you're right. I'm using kate as my editor, and that had not happened before. Now it used the Windows/DOS style line terminator. Perhaps a regression in a recent update ...