From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.125.25.15 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794910886; b=ELbZ08Rrt6KM7H7ORK1R5DV05TlPUrsV9C3WIXK0oXEeO8RtSwkG+7WISQ0c4LuJ60eT aDC4C/ckthzDdvo2QfGMrpEFMV+SxSwFo86a4sXhEKodMza/OtjnCUtu704oTxo2oIqQM BMkr3Fkj+/NOledmsHyqiWu5dJhL39Zw6D71/oWhKwVI3nXlwLhZ8U591tw/fhIC4azQp R7lJMMEORX/V60YTGhchAd62e5ZvPRnCoYEwhEIw9eXwGPlPFlaAqXCiOfuXLLoNgRWNx GPwnXSmT82RLM+lU/4zQrLoCTbx548dxurEGlVZY5YpCOHdsLv7Bg/jWGUBr43OoCpA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794910886; h=DMARC-Filter:Received:DKIM-Signature:Received:From:To:Cc:Subject: Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Infomaniak-Routing; bh=I+Dbrs3QptBZJl4e2yqTfL5XvkVcnY9GdfhfJ4l0xYg=; b=3kyn+di1PlmAZ5XCQrHLAcZG3pyuoG4mFaoUrlpUgt7btdhh7o0VSyE+TjHKi4fafWIM wObKzD+c2ynZ6+B1npKKQ/g1J9UBYbF6p1SeI+y34ujza/E6yc2AydLu3X1goFejyK758 x3Jf8rXKCEmQ/91Tw3VdP1LvlVSW79/bsYZWLxXK5HzKcxkvX+uhkvZi9JODANIfLwJOf 7PmS9n9A7MamKKmyWg3Je9ZJ2bjMWsov8qS/kECPL31JYnrkukiSFS+9P8Df5UzpibCov X+UBa2OZMwI++2HQkHb3h/KSD/K9Z8plmnUQmeF78Ya8yGt+PSWpAEhJupUQDE4gN/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass header.d=digikod.net header.i=@digikod.net header.a=rsa-sha256 header.s=20191114 header.b=1l53FVk6; arc=none smtp.remote-ip=185.125.25.15 Received: from smtp-190f.mail.infomaniak.ch (smtp-190f.mail.infomaniak.ch [185.125.25.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBB8E606A329; Tue, 17 Nov 2026 10:21:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EBB8E606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.a=rsa-sha256 header.s=20191114 header.b=1l53FVk6 Received: from smtp-4-0001 (smtp-4-0001.mail.infomaniak.ch [10.7.10.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4jTLP02pLBzZ6L; Tue, 17 Nov 2026 11:21:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1794910884; bh=I+Dbrs3QptBZJl4e2yqTfL5XvkVcnY9GdfhfJ4l0xYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1l53FVk6cRNQnBwUOQdyvZVIyOm1itgvF4DDsgaD0YVQJpEAKu4Qfs42uf3LnGYJb 6x1+mUGE/zmjTlyD6w+GFk/W3RQoXlVSvyq9t1qDrqtnztc0rPEtF5R6BRWCqJXIZP u+K1uJuE09m6mdAB8+wttmNhMHPhbJbNyO8D8yDk= Received: from unknown by smtp-4-0001 (Postfix) with ESMTPA id 4jTLNz2jpczXZP; Tue, 17 Nov 2026 11:21:23 +0100 (CET) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: =?UTF-8?q?G=C3=BCnther=20Noack?= Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Christian Brauner , Eric Paris , Masami Hiramatsu , Mathieu Desnoyers , Paul Moore , Steven Rostedt , audit@vger.kernel.org, linux-security-module@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 3/4] selftests/landlock: Test namespace denial operations Date: Tue, 17 Nov 2026 11:21:06 +0100 Message-ID: <20261117102110.2524197-4-mic@digikod.net> In-Reply-To: <20261117102110.2524197-1-mic@digikod.net> References: <20261117102110.2524197-1-mic@digikod.net> X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha The namespace trace tests cover creation and entry denials, but only creation exercises the quiet path. This leaves the new ENTER request tag untested through quiet selection and trace dispatch when audit logging is suppressed. Add the missing quiet setns(2) case. Together with the existing cases, this exercises all four combinations of CREATE and ENTER with logged and quieted denials, including each exact namespace_op value. Cc: Günther Noack Signed-off-by: Mickaël Salaün --- tools/testing/selftests/landlock/ns_test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/landlock/ns_test.c b/tools/testing/selftests/landlock/ns_test.c index d4a85cbebeae..52206ad94eca 100644 --- a/tools/testing/selftests/landlock/ns_test.c +++ b/tools/testing/selftests/landlock/ns_test.c @@ -2575,6 +2575,13 @@ TEST_F(ns_trace, deny_setns) test_ns_trace_denial(_metadata, true, false); } +TEST_F(ns_trace, deny_setns_quiet) +{ + if (!self->tracefs_ok) + SKIP(return, "tracefs not available"); + test_ns_trace_denial(_metadata, true, true); +} + /* clang-format off */ FIXTURE(ns_proc_open) { /* clang-format on */ -- 2.56.0