MCPcopy Create free account
hub / github.com/apache/httpd / log_selinux_context

Function log_selinux_context

modules/arch/unix/mod_systemd.c:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52#ifdef HAVE_SELINUX
53static void log_selinux_context(void)
54{
55 char *con;
56
57 if (is_selinux_enabled() && getcon(&con) == 0) {
58 ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
59 APLOGNO(10497) "SELinux is enabled; "
60 "httpd running as context %s", con);
61 freecon(con);
62 }
63}
64#endif
65
66/* Report the service is ready in post_config, which could be during

Callers 1

systemd_post_configFunction · 0.85

Calls 1

ap_log_errorFunction · 0.50

Tested by

no test coverage detected