[Rpm-maint] [rpm-software-management/rpm] Add a handler for libselinux log messages (RhBug:2123719, RhBug:2050774) (PR #2201)
Panu Matilainen
notifications at github.com
Thu Sep 22 09:09:27 UTC 2022
libselinux logs to stderr by default, which up to now has been just fine with us. However somewhere around libselinux 3.2 it begun issuing log messages for events discovered in selinux_status_updated(). We only call that to see whether the status *was* updated behind our back and are not interested in these audit-style messages for our functionality, but to suppress them while preserving actually relevant errors and warnings, we need to have a log callback of our own. Might as well forward them to rpmlog then.
SELINUX_ERROR and SELINUX_WARNING are pretty obvious, of SELINUX_AVC selinux_set_callback(3) says it should be treated as SELINUX_ERROR if not audited. The rest we suppress to debug messages, they may be handy for diagnostics some day.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/2201
-- Commit Summary --
* Add a handler for libselinux log messages (RhBug:2123719, RhBug:2050774)
-- File Changes --
M plugins/selinux.c (30)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/2201.patch
https://github.com/rpm-software-management/rpm/pull/2201.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2201
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2201 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220922/b63b3c9e/attachment.html>
More information about the Rpm-maint
mailing list