Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
python-parser requires updated apparmor profile otherwise got SIGSEGV #2625
Version of syslog-ng
OpenSUSE Leap 15.0 (and possibly other apparmor based distros like Ubuntu)
Checking configuration syntax (syslog-ng -s) ends up in SIGSEGV
Steps to reproduce
See gdb backtrace. https://pastebin.com/Gpby35Nb
Add the following element to the syslog-ng apparmor profile.
Activate the changes.
No. The one in openSUSE is from AppArmor upstream:
OpenSUSE requires the contribution to be sent to their bugzilla as well to Apparmor's mailing list: https://en.opensuse.org/SDB:AppArmor
However Debian suggest directly contributing to Apparmor's Git repo, although I could not find any syslog-ng profile there: https://wiki.debian.org/AppArmor/Contribute/Upstream
The logic is the same, commit to upstream, then they will pick the changes from there. https://git.launchpad.net/apparmor/tree/profiles/apparmor.d/sbin.syslog-ng
Upstream AppArmor moved from launchpad to gitlab.com, so the best way is to send a merge request to https://gitlab.com/apparmor/apparmor/
Bugreports at various places (bugzilla.opensuse.org, bugs.debian.org, launchpad and gitlab.com) will also work, but if you already know what needs to be changed, a merge request is less paperwork ;-)
In this specific case, I made it easy for you and just opened
The upstream merge request has been merged: https://gitlab.com/apparmor/apparmor/merge_requests/361
@cboltz Thanks for submitting the fix.
When running syslog-ng with a defined python-parser, it needs access to python libraries. For details about python-parser, see https://www.syslog-ng.com/community/b/blog/posts/format-your-log-messages-in-python References: syslog-ng/syslog-ng#2625
syslog-ng: add abstractions/python for python-parser When running syslog-ng with a defined python-parser, it needs access to python libraries. For details about python-parser, see https://www.syslog-ng.com/community/b/blog/posts/format-your-log-messages-in-python References: syslog-ng/syslog-ng#2625 PR: https://gitlab.com/apparmor/apparmor/merge_requests/361 Signed-off-by: John Johansen <firstname.lastname@example.org>