diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-07-01 20:51:30 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-07-01 20:51:30 +0000 |
commit | f4cc305d06ffeb326279f291a5229e3321ae8eb6 (patch) | |
tree | b4286edc220d6f3b21c5c860dce5d011a0a71614 /sys/security/audit | |
parent | 677f11777e1604d2b48911ce4f1ec0b9b49ebd5b (diff) | |
download | FreeBSD-src-f4cc305d06ffeb326279f291a5229e3321ae8eb6.zip FreeBSD-src-f4cc305d06ffeb326279f291a5229e3321ae8eb6.tar.gz |
Remove two boot printfs generated by Audit to announce it's presence,
and replace with software-testable sysctl node (security.audit) that
can be used to detect kernel audit support.
Obtained from: TrustedBSD Project
Approved by: re (kensmith)
Diffstat (limited to 'sys/security/audit')
-rw-r--r-- | sys/security/audit/audit.c | 5 | ||||
-rw-r--r-- | sys/security/audit/audit_bsm.c | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index 9860d70..1caf18f 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -49,6 +49,7 @@ #include <sys/socketvar.h> #include <sys/protosw.h> #include <sys/domain.h> +#include <sys/sysctl.h> #include <sys/sysproto.h> #include <sys/sysent.h> #include <sys/systm.h> @@ -76,6 +77,9 @@ MALLOC_DEFINE(M_AUDITDATA, "audit_data", "Audit data storage"); MALLOC_DEFINE(M_AUDITPATH, "audit_path", "Audit path storage"); MALLOC_DEFINE(M_AUDITTEXT, "audit_text", "Audit text storage"); +SYSCTL_NODE(_security, OID_AUTO, audit, CTLFLAG_RW, 0, + "TrustedBSD audit controls"); + /* * Audit control settings that are set/read by system calls and are hence * non-static. @@ -215,7 +219,6 @@ static void audit_init(void) { - printf("Security auditing service present\n"); audit_enabled = 0; audit_suspended = 0; audit_panic_on_write_fail = 0; diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c index 522b1b8..3f95ac5 100644 --- a/sys/security/audit/audit_bsm.c +++ b/sys/security/audit/audit_bsm.c @@ -65,7 +65,6 @@ void kau_init(void) { - printf("BSM auditing present\n"); au_evclassmap_init(); } |