From owner-freebsd-questions@freebsd.org Mon Nov 23 00:27:51 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 041CE47A3F0 for ; Mon, 23 Nov 2020 00:27:51 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from hermes.heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2560 bits) client-digest SHA256) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CfSfY0n8Nz4fQp for ; Mon, 23 Nov 2020 00:27:48 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id 0AN0QQ1G066795 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 23 Nov 2020 11:26:26 +1100 (AEDT) (envelope-from dewayne@heuristicsystems.com.au) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1606091186; x=1606695987; bh=bG2EGoRssW0QF3xWuMhblebRXxvCplEkP1CeKd64O7U=; h=From:To:Subject:Message-ID:Date; b=NKp5W3xQMserbQatwDWQwmhC9hfoYIi9a4Gn6+EzWgDWABKpWsNubno6c1Bg2p/7j IcTTjej1XDK7iD4oppoCiVwzj61hDG6wE4x5Rfko0XLB47gyTB9z+hSg3bPnpyj5s2 aZGa69qlJFLKdrCFVeZDem1fkf5S6HLo5s2N/tp8YLxst3tilAC66 X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] From: Dewayne Geraghty To: "freebsd-questions@freebsd.org" Subject: Audit & capscicum on FreeBSD 12.2Stable Message-ID: <9824de4c-852a-28c5-eb0a-8ef4b5c6bbda@heuristicsystems.com.au> Date: Mon, 23 Nov 2020 11:17:50 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CfSfY0n8Nz4fQp X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=heuristicsystems.com.au header.s=hsa header.b=NKp5W3xQ; dmarc=none; spf=pass (mx1.freebsd.org: domain of dewayne@heuristicsystems.com.au designates 203.41.22.115 as permitted sender) smtp.mailfrom=dewayne@heuristicsystems.com.au X-Spamd-Result: default: False [-6.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; HAS_XAW(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from]; DKIM_TRACE(0.00)[heuristicsystems.com.au:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[heuristicsystems.com.au:s=hsa]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[heuristicsystems.com.au:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[heuristicsystems.com.au]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2020 00:27:51 -0000 I've recently included capscium & casper in our build, but we're finding "Function not implemented" associated with the capscium audit events. header,68,11,cap_rights_limit(2),0,Mon Nov 23 10:27:51 2020, + 426 msec subject,-1,root,wheel,root,wheel,41624,0,0,0.0.0.0 return,failure : Function not implemented,4294967295 trailer,68 header,68,11,cap_ioctls_limit(2),0,Mon Nov 23 10:27:51 2020, + 426 msec subject,-1,root,wheel,root,wheel,41624,0,0,0.0.0.0 return,failure : Function not implemented,4294967295 trailer,68 header,68,11,cap_fcntls_limit(2),0,Mon Nov 23 10:27:51 2020, + 426 msec subject,-1,root,wheel,root,wheel,41624,0,0,0.0.0.0 return,failure : Function not implemented,4294967295 trailer,68 Do these mean that: the audit subsystem doesn't know how to deal with capscium; that capsicum doesn't interact with audit very well, or is there something else going on? These events are in /etc/security/audit_event audit_event:43186:AUE_CAP_NEW:cap_new(2):fm audit_event:43187:AUE_CAP_RIGHTS_GET:cap_rights_get(2):fm audit_event:43188:AUE_CAP_ENTER:cap_enter(2):pc audit_event:43189:AUE_CAP_GETMODE:cap_getmode(2):pc audit_event:43202:AUE_CAP_RIGHTS_LIMIT:cap_rights_limit(2):fm audit_event:43203:AUE_CAP_IOCTLS_LIMIT:cap_ioctls_limit(2):fm audit_event:43204:AUE_CAP_IOCTLS_GET:cap_ioctls_get(2):fm audit_event:43205:AUE_CAP_FCNTLS_LIMIT:cap_fcntls_limit(2):fm audit_event:43206:AUE_CAP_FCNTLS_GET:cap_fcntls_get(2):fm System is (from uname -aKU extract) FreeBSD 12.2-STABLE FreeBSD 12.2-STABLE #0 r367477M: Mon Nov 9 07:33:12 AEDT 2020 amd64 1202503 1202503 Regards, Dewayne