From owner-trustedbsd-audit@freebsd.org Fri Dec 14 16:16:17 2018 Return-Path: Delivered-To: trustedbsd-audit@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 AA134133A805 for ; Fri, 14 Dec 2018 16:16:17 +0000 (UTC) (envelope-from jack@gandi.net) Received: from gandi.net (mail12.gandi.net [IPv6:2001:4b98:dc4:5:ae1f:6bff:fe2d:9fdc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21D4684A20; Fri, 14 Dec 2018 16:16:17 +0000 (UTC) (envelope-from jack@gandi.net) Received: from thinkpad-gandi (tgordon.gandi.net [217.70.181.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gandi.net (Postfix) with ESMTPS id 7079F1604E1; Fri, 14 Dec 2018 16:16:15 +0000 (UTC) Date: Fri, 14 Dec 2018 17:16:15 +0100 From: Jack Halford To: trustedbsd-audit@freebsd.org Cc: rwatson@freebsd.org Subject: new syscalls audit events Message-ID: <20181214161615.lvk2gsqtf7gij4fc@thinkpad-gandi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Mailman-Approved-At: Fri, 14 Dec 2018 17:42:46 +0000 X-BeenThere: trustedbsd-audit@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: TrustedBSD Audit Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 16:16:17 -0000 Hello, I'm currently writing a patch for 3 new syscalls for per-thread credentials, 2 of these are auditable (setcred and revertcred, see [1]). The wiki page about adding auditing events says to contact you in case of need of a new BSM event. I'm prettu sure I've added my events in all the right place, however I can't see any of my syscalls in the auditpipe. So far I've done the following: 1) added relevant information in - contrib/openbsm/etc/audit_event - contrib/openbsm/sys/bsm/audit_kevents.h - sys/bsm/audit_kevents.h - sys/kern/syscalls.master - sys/compat/freebsd32/syscalls.master 2) regenerate sysvector, build and install kernel and world 3) `make -C usb.sbin install` doesn't seems to install the new /etc/audit_event so I cp'd it by hand Any pointers? I'd like to get this working before the review for obvious reasons... [1]: https://github.com/jzck/freebsd/pull/1/files -- Best, Jack