aboutsummaryrefslogtreecommitdiff
path: root/libbsm/bsm_wrappers.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbsm/bsm_wrappers.c')
-rw-r--r--libbsm/bsm_wrappers.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/libbsm/bsm_wrappers.c b/libbsm/bsm_wrappers.c
index 01daaf1421e8..ca367c957837 100644
--- a/libbsm/bsm_wrappers.c
+++ b/libbsm/bsm_wrappers.c
@@ -1,7 +1,13 @@
/*-
* Copyright (c) 2004-2009 Apple Inc.
+ * Copyright (c) 2016 Robert N. M. Watson
* All rights reserved.
*
+ * Portions of this software were developed by BAE Systems, the University of
+ * Cambridge Computer Laboratory, and Memorial University under DARPA/AFRL
+ * contract FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent
+ * Computing (TC) research program.
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -689,6 +695,30 @@ audit_set_class(au_evclass_map_t *evc_map, size_t sz)
}
int
+audit_get_event(au_evname_map_t *evn_map, size_t sz)
+{
+
+ if (sizeof(*evn_map) != sz) {
+ errno = EINVAL;
+ return (-1);
+ }
+
+ return (auditon(A_GETEVENT, evn_map, sz));
+}
+
+int
+audit_set_event(au_evname_map_t *evn_map, size_t sz)
+{
+
+ if (sizeof(*evn_map) != sz) {
+ errno = EINVAL;
+ return (-1);
+ }
+
+ return (auditon(A_SETEVENT, evn_map, sz));
+}
+
+int
audit_get_kmask(au_mask_t *kmask, size_t sz)
{
if (sizeof(*kmask) != sz) {