mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-03-07 10:47:18 +00:00
libselinux: kill logging check for selinux_enabled()
Drop the check for selinux_enabled() on logging. The caller can silence the logs by setting the logging callback and discarding the messages. Change-Id: Ia6769ef7ad8cc2144ad2bb73e5bf7c76ebfe487b Signed-off-by: William Roberts <william.c.roberts@intel.com>
This commit is contained in:
parent
6abc179335
commit
2b6bc3f886
@ -16,7 +16,6 @@ default_selinux_log(int type __attribute__((unused)), const char *fmt, ...)
|
||||
{
|
||||
int rc;
|
||||
va_list ap;
|
||||
if (is_selinux_enabled() == 0) return 0;
|
||||
va_start(ap, fmt);
|
||||
rc = vfprintf(stderr, fmt, ap);
|
||||
va_end(ap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user