From owner-svn-src-all@freebsd.org Fri Aug 3 14:36:31 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C368106BDA2; Fri, 3 Aug 2018 14:36:31 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E13E860C5; Fri, 3 Aug 2018 14:36:31 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1BBC721B00; Fri, 3 Aug 2018 14:36:31 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w73EaUs9081485; Fri, 3 Aug 2018 14:36:30 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w73EaUCi081481; Fri, 3 Aug 2018 14:36:30 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201808031436.w73EaUCi081481@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Fri, 3 Aug 2018 14:36:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r337256 - in stable/10: contrib/openbsm/bin/praudit etc/mtree usr.sbin/praudit usr.sbin/praudit/tests X-SVN-Group: stable-10 X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in stable/10: contrib/openbsm/bin/praudit etc/mtree usr.sbin/praudit usr.sbin/praudit/tests X-SVN-Commit-Revision: 337256 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2018 14:36:32 -0000 Author: asomers Date: Fri Aug 3 14:36:29 2018 New Revision: 337256 URL: https://svnweb.freebsd.org/changeset/base/337256 Log: MFC r335287, r335290 r335287: praudit(1): return 0 on success Cherry pick https://github.com/openbsm/openbsm/commit/ed83bb3 Submitted by: aniketp Reviewed by: rwatson, 0mp Obtained from: OpenBSM Sponsored by: Google, Inc. (GSoC 2018) Pull Request: https://github.com/openbsm/openbsm/pull/32 r335290: praudit(1): add tests Submitted by: aniketp X-MFC-With: 335287 Sponsored by: Google, Inc. (GSoC 2018) Differential Revision: https://reviews.freebsd.org/D15751 Added: stable/10/usr.sbin/praudit/tests/ - copied from r335290, head/usr.sbin/praudit/tests/ Modified: stable/10/contrib/openbsm/bin/praudit/praudit.1 stable/10/contrib/openbsm/bin/praudit/praudit.c stable/10/etc/mtree/BSD.tests.dist stable/10/usr.sbin/praudit/Makefile Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/openbsm/bin/praudit/praudit.1 ============================================================================== --- stable/10/contrib/openbsm/bin/praudit/praudit.1 Fri Aug 3 14:27:28 2018 (r337255) +++ stable/10/contrib/openbsm/bin/praudit/praudit.1 Fri Aug 3 14:36:29 2018 (r337256) @@ -25,7 +25,7 @@ .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd August 4, 2009 +.Dd June 11, 2018 .Dt PRAUDIT 1 .Os .Sh NAME @@ -88,6 +88,8 @@ Events are displayed as per their descriptions given i .Pa /etc/security/audit_event ; UIDs and GIDs are expanded to their names; dates and times are displayed in human-readable format. +.Sh EXIT STATUS +.Ex -std .Sh FILES .Bl -tag -width ".Pa /etc/security/audit_control" -compact .It Pa /etc/security/audit_class Modified: stable/10/contrib/openbsm/bin/praudit/praudit.c ============================================================================== --- stable/10/contrib/openbsm/bin/praudit/praudit.c Fri Aug 3 14:27:28 2018 (r337255) +++ stable/10/contrib/openbsm/bin/praudit/praudit.c Fri Aug 3 14:36:29 2018 (r337256) @@ -169,5 +169,5 @@ main(int argc, char **argv) if (oflags & AU_OFLAG_XML) au_print_xml_footer(stdout); - return (1); + return (0); } Modified: stable/10/etc/mtree/BSD.tests.dist ============================================================================== --- stable/10/etc/mtree/BSD.tests.dist Fri Aug 3 14:27:28 2018 (r337255) +++ stable/10/etc/mtree/BSD.tests.dist Fri Aug 3 14:36:29 2018 (r337256) @@ -682,6 +682,8 @@ .. nmtree .. + praudit + .. pw .. rpcbind Modified: stable/10/usr.sbin/praudit/Makefile ============================================================================== --- stable/10/usr.sbin/praudit/Makefile Fri Aug 3 14:27:28 2018 (r337255) +++ stable/10/usr.sbin/praudit/Makefile Fri Aug 3 14:36:29 2018 (r337256) @@ -13,4 +13,7 @@ WARNS?= 3 DPADD= ${LIBBSM} LDADD= -lbsm +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests + .include