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/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to