From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-bc0b.mail.infomaniak.ch (smtp-bc0b.mail.infomaniak.ch [45.157.188.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CE783D6475 for ; Tue, 28 Jul 2026 11:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.157.188.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785236665; cv=none; b=jJwEbIwO3geU5l03MKKIKm0Y4DnxMBr6RW6u+KRbJa48xD2GrNcggaM84fV5r2a6nFs+lyn3446gDrewlvrmlq438GNARkhTqb6pPrBquEXDRFaDSLzxmzwfx9pmYVa6QLIcvzL3mragFMX83PhQDl9dT3nJk/kQYXYVxTQvb+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785236665; c=relaxed/simple; bh=nvZpyrphfo73Lx0mykWDWIEGL7gX0bhWA2m7kfRC3Ek=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z64WSFUfoo8ILaL6o0I/ctMa7tuyoxM8lDbnQUU5YNJOJ8EJf5N8G/7W5xENG5agcCt+9lTGryR5etN9P2rnqM4d2aV4NPN6VzTRr8T+5HpV0vnBK4qcgNsRKsxHgtPP+Ja4T8Tvi8i7l6ubqBkAsBFVWa/iv8jBTvJTHEsFj/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=aLWWTbcZ; arc=none smtp.client-ip=45.157.188.11 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.b="aLWWTbcZ" Received: from smtp-4-0001.mail.infomaniak.ch (smtp-4-0001.mail.infomaniak.ch [10.7.10.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4h8Xf43HXGzPjK; Tue, 28 Jul 2026 13:04:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1785236652; bh=khhT3E39BwcNM7t6uvGqakR/jIEOKCsoSW1GBz4M1Mo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aLWWTbcZ9vGqMOjTH/OpJyI2PcKLQmP5C5a6DoHMcF3KbNtj+ozzfVzGGwt/6sCAz n8xdL6AlHSP+bHE9MDmuTUh39MD5CWN0WAmSomwlCTRgRV5JjLs0r+Z1Ym2d4yxy+1 ++p+rcR+hGkUTHQ42pskknG1uxizasqdYrZD9YSI= Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4h8Xf331bbztWL; Tue, 28 Jul 2026 13:04:11 +0200 (CEST) Date: Tue, 28 Jul 2026 13:04:10 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Oxana Kharitonova Cc: gnoack@google.com, paul@paul-moore.com, serge@hallyn.com, wangyan01@kylinos.cn, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, landlock@lists.linux.dev, webprosto@gmail.com Subject: Re: [PATCH 4/6] selftests/landlock: Test POSIX message queue scoping Message-ID: <20260728.Apei4yai1ea9@digikod.net> References: <20260722122952.42149-1-oxana@cloudflare.com> <20260722122952.42149-5-oxana@cloudflare.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260722122952.42149-5-oxana@cloudflare.com> X-Infomaniak-Routing: alpha These tests are good, but related audit (and quiet) tests are missing. A test should check the mqueue unlink. A test should check that once the sandboxed process that created an mqueue file exits, a new sibling or child sandboxed process cannot access this (stale) mqueue, but a parent sandboxed process should still be allowed to do so as well as for an unsandboxed process. On Wed, Jul 22, 2026 at 01:29:40PM +0100, Oxana Kharitonova wrote: > Add tests for LANDLOCK_SCOPE_POSIX_MSG_QUEUE. > > Verify that opening a queue created outside the current scoped domain is > denied, and that opening a queue created within the same domain remains > allowed. > > Signed-off-by: Oxana Kharitonova > --- > .../landlock/scoped_posix_msg_queue_test.c | 223 ++++++++++++++++++ > .../testing/selftests/landlock/scoped_test.c | 2 +- > 2 files changed, 224 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c > > diff --git a/tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c b/tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c > new file mode 100644 > index 000000000000..602ba5c7a83d > --- /dev/null > +++ b/tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c > @@ -0,0 +1,223 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Landlock tests - POSIX message queue scoping > + * > + * Copyright © 2024-2026 Microsoft Corporation You need to update that.