From owner-p4-projects@FreeBSD.ORG Wed Sep 20 16:44:10 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 85FA716A4B3; Wed, 20 Sep 2006 16:44:10 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1079B16A417 for ; Wed, 20 Sep 2006 16:44:10 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC24843D69 for ; Wed, 20 Sep 2006 16:43:58 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8KGhwZP054354 for ; Wed, 20 Sep 2006 16:43:58 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8KGhw8c054351 for perforce@freebsd.org; Wed, 20 Sep 2006 16:43:58 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 20 Sep 2006 16:43:58 GMT Message-Id: <200609201643.k8KGhw8c054351@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 106413 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 16:44:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=106413 Change 106413 by rwatson@rwatson_zoo on 2006/09/20 16:43:50 Integrate remaining OpenBSM 1.0 alpha 11 changes to audit3 branch. Affected files ... .. //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#15 integrate .. //depot/projects/trustedbsd/audit3/contrib/openbsm/compat/strlcat.h#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/config/config.h.in#7 integrate .. //depot/projects/trustedbsd/audit3/contrib/openbsm/configure#13 integrate .. //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#14 integrate .. //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#10 integrate .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/arg32_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/arg32_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/data_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/data_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/file_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/file_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/header32_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/in_addr_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/in_addr_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/ip_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/ip_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/ipc_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/ipc_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/iport_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/iport_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/opaque_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/opaque_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/path_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/path_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/process32_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/process32_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/process32ex_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/process32ex_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/return32_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/return32_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/seq_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/seq_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/subject32_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/subject32_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/subject32ex_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/subject32ex_token-IPv4#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/subject32ex_token-IPv6#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/text_record#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/text_token#1 branch .. //depot/projects/trustedbsd/audit3/contrib/openbsm/test/reference/trailer_token#1 branch .. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_token.c#26 integrate Differences ... ==== //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#15 (text+ko) ==== @@ -29,6 +29,8 @@ current default of setting AUDIT_CNT. - Fix bugs in the parsing of large execve(2) arguments and environmental variable tokens; increase maximum parsed argument and variable count. +- configure now detects strlcat(), used by policy-related functions. +- Reference token and record sample files added to test tree. OpenBSM 1.0 alpha 10 @@ -241,4 +243,4 @@ to support reloading of kernel event table. - Allow comments in /etc/security configuration files. -$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#14 $ +$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#15 $ ==== //depot/projects/trustedbsd/audit3/contrib/openbsm/config/config.h.in#7 (text+ko) ==== @@ -86,6 +86,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strlcat' function. */ +#undef HAVE_STRLCAT + /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR ==== //depot/projects/trustedbsd/audit3/contrib/openbsm/configure#13 (xtext) ==== @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#29 . +# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#31 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for OpenBSM 1.0a11. # @@ -22834,7 +22834,8 @@ -for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strrchr strstr strtol strtoul + +for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 ==== //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#14 (text+ko) ==== @@ -3,7 +3,7 @@ AC_PREREQ(2.59) AC_INIT([OpenBSM], [1.0a11], [trustedbsd-audit@TrustesdBSD.org],[openbsm]) -AC_REVISION([$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#13 $]) +AC_REVISION([$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#14 $]) AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c]) AC_CONFIG_AUX_DIR(config) AC_CONFIG_HEADER([config/config.h]) @@ -56,7 +56,7 @@ AC_TYPE_SIGNAL AC_FUNC_STAT AC_FUNC_STRFTIME -AC_CHECK_FUNCS([bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strrchr strstr strtol strtoul]) +AC_CHECK_FUNCS([bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul]) # sys/queue.h exists on most systems, but its capabilities vary a great deal. # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in ==== //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#10 (text+ko) ==== @@ -27,7 +27,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#9 $ + * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#10 $ */ #include @@ -38,6 +38,11 @@ #include #include +#include +#ifndef HAVE_STRLCAT +#include +#endif + /* * Parse the contents of the audit_control file to return the audit control * parameters. These static fields are protected by 'mutex'. ==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_token.c#26 (text+ko) ==== @@ -30,7 +30,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_token.c#25 $ + * $P4: //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_token.c#26 $ * $FreeBSD: src/sys/security/audit/audit_bsm_token.c,v 1.7 2006/09/01 11:45:40 wsalamon Exp $ */ @@ -49,7 +49,6 @@ #include #include -#include #include #include