mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1785] Better output options for the tracelog (e.g. console, logfile, journald) #1208
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#1208
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 @chocolateboy on GitHub (Feb 23, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1785
There are one or two issues which mention trying to get--tracelogto log blacklist violations on systemd systems, but as far as I can tell no-one has managed to get this to work. At any rate, the assumption that syslog "just works" as a frontend (or backend) to journald does not appear to be true on Arch systems (at least).Is there a particular reason why syslog is being used for logging when most Linux systems are now using systemd/journald? AFAICT, the only major distros not using systemd (by default) are Gentoo and Slackware.
When trying to create/debug a profile, I'd prefer to be able to log these violations to the console, or, failing that, to a logfile. Only once the profile has stabilized would I want the logs to go somewhere more persistent.
Assuming you want to keep the
--tracelogflag for backwards compatibility, how about a new option to select the transport/appender/sink to log blacklist violations to e.g.:@SkewedZeppelin commented on GitHub (Feb 23, 2018):
Output options aside, are you saying that violations on Arch aren't logged to journald?
Because I can run the following command on Arch and Fedora and have it appear in
journalctl -f@chocolateboy commented on GitHub (Feb 23, 2018):
Yes, they're not logged on my system.
That isn't logged on my system. Are you using syslog-ng? Or rsyslog?
@SkewedZeppelin commented on GitHub (Feb 23, 2018):
@chocolateboy neither, I never did any extra configuration of logging on my Arch install, nor do I have those packages installed. And like I said it also works out of box on Fedora (which also doesn't have those packages). Its been that way for a while afaik.
@Vincent43 commented on GitHub (Feb 23, 2018):
journaldshould automatically retrieve messages going to syslog. Do you use any other syslog application?@chocolateboy commented on GitHub (Feb 23, 2018):
@SkewedZeppelin, @Vincent43 You're right. Thanks for the clue! I've managed to trigger a violation and can confirm it's logged to the journal. I've crossed out that paragraph.
The rest of the request still stands :-)
@chiraag-nataraj commented on GitHub (Mar 29, 2018):
There's no harm in using syslog, though, since that retains compatibility with non-systemd systems and works just fine with systemd/journald.
@chocolateboy commented on GitHub (Mar 29, 2018):
@chiraag-nataraj Thanks. 👍 I'm closing this.
As suggested, I'd still like the option to log to the console or — failing that — to a logfile, but if anyone else wants that, it's probably best raised in a new issue that isn't muddied by the syslog-compatibility discussion since that seems to be working as intended.