aboutsummaryrefslogtreecommitdiffstats
path: root/tools/audump.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-08-02 00:19:36 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-08-02 00:19:36 +0000
commitd4b6ea31f692ff2a72000eb92e0507dafcff8268 (patch)
tree102ac91ddb87e7dc45d67ce2c8a2a41478eea90c /tools/audump.c
parent5d171016e7ded77bb3a5eaff82d036a250f515bb (diff)
downloadsrc-d4b6ea31f692ff2a72000eb92e0507dafcff8268.tar.gz
src-d4b6ea31f692ff2a72000eb92e0507dafcff8268.zip
Vendor import of OpenBSM 1.1p2, which incorporates the following changesvendor/openbsm/1.1-P-2
since the last imported OpenBSM release: OpenBSM 1.1p2 - Fix audit_event definitions of AUE_OPENAT_RWT and AUE_OPENAT_RWTC. - Fix build on Linux. - Fix printing of class masks in the audump tool. Obtained from: TrustedBSD Project
Notes
Notes: svn path=/vendor/openbsm/dist/; revision=196027 svn path=/vendor/openbsm/1.1-P-2/; revision=196028; tag=vendor/openbsm/1.1-P-2
Diffstat (limited to 'tools/audump.c')
-rw-r--r--tools/audump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/audump.c b/tools/audump.c
index a5f4b6d0602b..82d17ea21baa 100644
--- a/tools/audump.c
+++ b/tools/audump.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2005-2006 Robert N. M. Watson
+ * Copyright (c) 2005-2009 Robert N. M. Watson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/tools/audump.c#8 $
+ * $P4: //depot/projects/trustedbsd/openbsm/tools/audump.c#9 $
*/
#include <bsm/libbsm.h>
@@ -165,16 +165,16 @@ printf_classmask(au_class_t classmask)
first = 1;
for (i = 0; i < 32; i++) {
- if (classmask & (2 << i)) {
+ if (classmask & (1 << i)) {
if (first)
first = 0;
else
printf(",");
- c = getauclassnum(2 << i);
+ c = getauclassnum(1 << i);
if (c != NULL)
printf("%s", c->ac_name);
else
- printf("0x%x", 2 << i);
+ printf("0x%x", 1 << i);
}
}
}