libselinux: kill logging check for selinux_enabled()
PATCH 1/1 libselinux: kill logging check for selinux_enabled()
From: William Roberts <[email protected]>
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 <[email protected]>
--- libselinux/src/callbacks.c | 1 - 1 file changed, 1 deletion(-)
libselinux/src/callbacks.c +0 -1
@@ -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);
Signature · 1 line
1.9.1