This commit was generated by cvs2svn to compensate for changes in r171537,

which included commits to RCS files with non-trunk default branches.
This commit is contained in:
Robert Watson 2007-07-22 12:18:31 +00:00
commit 7ed9c73527
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171538
17 changed files with 47 additions and 55 deletions

View File

@ -1,3 +1,14 @@
OpenBSM 1.0 alpha 15
- Fix bug when processing in_addr_ex tokens.
- Restore the behavior of printing the string/text specified while
auditing arg32 tokens.
- Synchronized audit event list to Solaris, picking up the *at(2) system call
definitions, now required for FreeBSD and Linux. Added additional events
for *at(2) system calls not present in Solaris.
- Bugs in auditreduce(8) fixed allowing partial date strings to be used in
filtering events.
OpenBSM 1.0 alpha 14 OpenBSM 1.0 alpha 14
- Fix endian issues when processing IPv6 addresses for extended subject - Fix endian issues when processing IPv6 addresses for extended subject
@ -284,4 +295,4 @@ OpenBSM 1.0 alpha 1
to support reloading of kernel event table. to support reloading of kernel event table.
- Allow comments in /etc/security configuration files. - Allow comments in /etc/security configuration files.
$P4: //depot/projects/trustedbsd/openbsm/HISTORY#50 $ $P4: //depot/projects/trustedbsd/openbsm/HISTORY#55 $

View File

@ -89,6 +89,7 @@ the development of OpenBSM:
Ruslan Ermilov Ruslan Ermilov
Martin Voros Martin Voros
Diego Giagio Diego Giagio
Alex Samorukov
In addition, Coverity, Inc.'s Prevent(tm) static analysis tool and Gimpel In addition, Coverity, Inc.'s Prevent(tm) static analysis tool and Gimpel
Software's FlexeLint tool were used to identify a number of bugs in the Software's FlexeLint tool were used to identify a number of bugs in the
@ -110,4 +111,4 @@ Information on TrustedBSD may be found on the TrustedBSD home page:
http://www.TrustedBSD.org/ http://www.TrustedBSD.org/
$P4: //depot/projects/trustedbsd/openbsm/README#23 $ $P4: //depot/projects/trustedbsd/openbsm/README#24 $

View File

@ -1 +1 @@
OPENBSM_1_0_ALPHA_14 OPENBSM_1_0_ALPHA_15

View File

@ -1,8 +1,6 @@
.\" Copyright (c) 2004 Apple Computer, Inc. .\" Copyright (c) 2004 Apple Computer, Inc.
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" @APPLE_BSD_LICENSE_HEADER_START@
.\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -27,9 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.\" @APPLE_BSD_LICENSE_HEADER_END@ .\" $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.8#10 $
.\"
.\" $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.8#9 $
.\" .\"
.Dd October 2, 2006 .Dd October 2, 2006
.Dt AUDIT 8 .Dt AUDIT 8

View File

@ -2,8 +2,6 @@
* Copyright (c) 2005 Apple Computer, Inc. * Copyright (c) 2005 Apple Computer, Inc.
* All rights reserved. * All rights reserved.
* *
* @APPLE_BSD_LICENSE_HEADER_START@
*
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -28,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* @APPLE_BSD_LICENSE_HEADER_END@ * $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.c#8 $
*
* $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.c#7 $
*/ */
/* /*
* Program to trigger the audit daemon with a message that is either: * Program to trigger the audit daemon with a message that is either:

View File

@ -2,8 +2,6 @@
* Copyright (c) 2005 Apple Computer, Inc. * Copyright (c) 2005 Apple Computer, Inc.
* All rights reserved. * All rights reserved.
* *
* @APPLE_BSD_LICENSE_HEADER_START@
*
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -28,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* @APPLE_BSD_LICENSE_HEADER_END@ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/audit_warn.c#8 $
*
* $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/audit_warn.c#7 $
*/ */
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,8 +1,6 @@
.\" Copyright (c) 2004 Apple Computer, Inc. .\" Copyright (c) 2004 Apple Computer, Inc.
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" @APPLE_BSD_LICENSE_HEADER_START@
.\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -27,9 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.\" @APPLE_BSD_LICENSE_HEADER_END@ .\" $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.8#13 $
.\"
.\" $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.8#12 $
.\" .\"
.Dd October 2, 2006 .Dd October 2, 2006
.Dt AUDITD 8 .Dt AUDITD 8

View File

@ -2,8 +2,6 @@
* Copyright (c) 2004 Apple Computer, Inc. * Copyright (c) 2004 Apple Computer, Inc.
* All rights reserved. * All rights reserved.
* *
* @APPLE_BSD_LICENSE_HEADER_START@
*
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -28,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* @APPLE_BSD_LICENSE_HEADER_END@ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#26 $
*
* $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#25 $
*/ */
#include <sys/types.h> #include <sys/types.h>

View File

@ -2,8 +2,6 @@
* Copyright (c) 2005 Apple Computer, Inc. * Copyright (c) 2005 Apple Computer, Inc.
* All rights reserved. * All rights reserved.
* *
* @APPLE_BSD_LICENSE_HEADER_START@
*
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -28,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* @APPLE_BSD_LICENSE_HEADER_END@ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.h#8 $
*
* $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.h#7 $
*/ */
#ifndef _AUDITD_H_ #ifndef _AUDITD_H_

View File

@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
* $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#18 $ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#19 $
*/ */
/* /*
@ -629,6 +629,7 @@ main(int argc, char **argv)
usage("d is exclusive with a and b"); usage("d is exclusive with a and b");
} }
SETOPT(opttochk, OPT_a); SETOPT(opttochk, OPT_a);
bzero(&tm, sizeof(tm));
strptime(optarg, "%Y%m%d%H%M%S", &tm); strptime(optarg, "%Y%m%d%H%M%S", &tm);
strftime(timestr, sizeof(timestr), "%Y%m%d%H%M%S", strftime(timestr, sizeof(timestr), "%Y%m%d%H%M%S",
&tm); &tm);
@ -641,6 +642,7 @@ main(int argc, char **argv)
usage("d is exclusive with a and b"); usage("d is exclusive with a and b");
} }
SETOPT(opttochk, OPT_b); SETOPT(opttochk, OPT_b);
bzero(&tm, sizeof(tm));
strptime(optarg, "%Y%m%d%H%M%S", &tm); strptime(optarg, "%Y%m%d%H%M%S", &tm);
strftime(timestr, sizeof(timestr), "%Y%m%d%H%M%S", strftime(timestr, sizeof(timestr), "%Y%m%d%H%M%S",
&tm); &tm);
@ -661,6 +663,7 @@ main(int argc, char **argv)
OPT_a)) OPT_a))
usage("'d' is exclusive with 'a' and 'b'"); usage("'d' is exclusive with 'a' and 'b'");
SETOPT(opttochk, OPT_d); SETOPT(opttochk, OPT_d);
bzero(&tm, sizeof(tm));
strptime(optarg, "%Y%m%d", &tm); strptime(optarg, "%Y%m%d", &tm);
strftime(timestr, sizeof(timestr), "%Y%m%d", &tm); strftime(timestr, sizeof(timestr), "%Y%m%d", &tm);
/* fprintf(stderr, "Time converted = %s\n", timestr); */ /* fprintf(stderr, "Time converted = %s\n", timestr); */

View File

@ -1,7 +1,7 @@
#! /bin/sh #! /bin/sh
# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 . # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for OpenBSM 1.0alpha14. # Generated by GNU Autoconf 2.59 for OpenBSM 1.0alpha15.
# #
# Report bugs to <trustedbsd-audit@TrustesdBSD.org>. # Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
# #
@ -424,8 +424,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package. # Identity of this package.
PACKAGE_NAME='OpenBSM' PACKAGE_NAME='OpenBSM'
PACKAGE_TARNAME='openbsm' PACKAGE_TARNAME='openbsm'
PACKAGE_VERSION='1.0alpha14' PACKAGE_VERSION='1.0alpha15'
PACKAGE_STRING='OpenBSM 1.0alpha14' PACKAGE_STRING='OpenBSM 1.0alpha15'
PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org' PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
ac_unique_file="bin/auditreduce/auditreduce.c" ac_unique_file="bin/auditreduce/auditreduce.c"
@ -955,7 +955,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures OpenBSM 1.0alpha14 to adapt to many kinds of systems. \`configure' configures OpenBSM 1.0alpha15 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1021,7 +1021,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of OpenBSM 1.0alpha14:";; short | recursive ) echo "Configuration of OpenBSM 1.0alpha15:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1162,7 +1162,7 @@ fi
test -n "$ac_init_help" && exit 0 test -n "$ac_init_help" && exit 0
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
OpenBSM configure 1.0alpha14 OpenBSM configure 1.0alpha15
generated by GNU Autoconf 2.59 generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003 Free Software Foundation, Inc.
@ -1176,7 +1176,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by OpenBSM $as_me 1.0alpha14, which was It was created by OpenBSM $as_me 1.0alpha15, which was
generated by GNU Autoconf 2.59. Invocation command line was generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@ $ $0 $@
@ -19278,7 +19278,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE=OpenBSM PACKAGE=OpenBSM
VERSION=1.0alpha14 VERSION=1.0alpha15
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -23479,7 +23479,7 @@ _ASBOX
} >&5 } >&5
cat >&5 <<_CSEOF cat >&5 <<_CSEOF
This file was extended by OpenBSM $as_me 1.0alpha14, which was This file was extended by OpenBSM $as_me 1.0alpha15, which was
generated by GNU Autoconf 2.59. Invocation command line was generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -23542,7 +23542,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\ ac_cs_version="\\
OpenBSM config.status 1.0alpha14 OpenBSM config.status 1.0alpha15
configured by $0, generated by GNU Autoconf 2.59, configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

View File

@ -2,8 +2,8 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59) AC_PREREQ(2.59)
AC_INIT([OpenBSM], [1.0alpha14], [trustedbsd-audit@TrustesdBSD.org],[openbsm]) AC_INIT([OpenBSM], [1.0alpha15], [trustedbsd-audit@TrustesdBSD.org],[openbsm])
AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#34 $]) AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#35 $])
AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c]) AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c])
AC_CONFIG_AUX_DIR(config) AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADER([config/config.h]) AC_CONFIG_HEADER([config/config.h])

View File

@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_control.3#8 $ .\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_control.3#9 $
.\" .\"
.Dd April 19, 2005 .Dd April 19, 2005
.Dt AU_CONTROL 3 .Dt AU_CONTROL 3
@ -77,7 +77,7 @@ resets the database iterator to the beginning of the database; see the
section for more information. section for more information.
.Pp .Pp
The The
.Fn sendac .Fn endac
function function
closes the closes the
.Xr audit_control 5 .Xr audit_control 5

View File

@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_event.3#7 $ .\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_event.3#8 $
.\" .\"
.Dd April 19, 2005 .Dd April 19, 2005
.Dt AU_EVENT 3 .Dt AU_EVENT 3
@ -131,7 +131,7 @@ Functions
.Fn getauevnum , .Fn getauevnum ,
.Fn getauevnum_r , .Fn getauevnum_r ,
and and
.Fn getauevnuam .Fn getauevnonam
will return a reference to a will return a reference to a
.Vt "struct au_event_ent" .Vt "struct au_event_ent"
or or

View File

@ -27,7 +27,7 @@
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE. .\" POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/audit_submit.3#11 $ .\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/audit_submit.3#12 $
.\" .\"
.Dd May 29, 2006 .Dd May 29, 2006
.Dt audit_submit 3 .Dt audit_submit 3
@ -54,7 +54,7 @@ The header will contain the event class specified by
.Fa au_event . .Fa au_event .
The subject token will be generated based on The subject token will be generated based on
.Fa au_ctx . .Fa au_ctx .
The return token is dependant on the The return token is dependent on the
.Fa status .Fa status
and and
.Fa reterr .Fa reterr

View File

@ -32,7 +32,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
* $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#48 $ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#49 $
*/ */
#include <sys/types.h> #include <sys/types.h>
@ -1306,6 +1306,7 @@ print_arg32_tok(FILE *fp, tokenstr_t *tok, char *del, char raw,
print_delim(fp, del); print_delim(fp, del);
print_4_bytes(fp, tok->tt.arg32.val, "0x%x"); print_4_bytes(fp, tok->tt.arg32.val, "0x%x");
print_delim(fp, del); print_delim(fp, del);
print_string(fp, tok->tt.arg32.text, tok->tt.arg32.len);
} }
} }

View File

@ -30,7 +30,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
* $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#62 $ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#63 $
*/ */
#include <sys/types.h> #include <sys/types.h>
@ -411,7 +411,7 @@ au_to_in_addr_ex(struct in6_addr *internet_addr)
ADD_U_CHAR(dptr, AUT_IN_ADDR_EX); ADD_U_CHAR(dptr, AUT_IN_ADDR_EX);
ADD_U_INT32(dptr, type); ADD_U_INT32(dptr, type);
ADD_MEM(dptr, internet_addr, 5 * sizeof(uint32_t)); ADD_MEM(dptr, internet_addr, 4 * sizeof(uint32_t));
return (t); return (t);
} }