From patchwork Thu Jan 25 15:32:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= X-Patchwork-Id: 13531183 Received: from smtp-bc0d.mail.infomaniak.ch (smtp-bc0d.mail.infomaniak.ch [45.157.188.13]) (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 BB560224E8 for ; Thu, 25 Jan 2024 15:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.157.188.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706197305; cv=none; b=uVT1Dd0FA7F8Ev5UJC/fMv1rqhpqzj8TTxI5xX/KsXbQEN7RNeXQyvLRjlHRUBbMVY5ZOD6XoNz+CwTMixxAfC9+b/eK229xxwjtHqS19tdpFvUxCDLhhO0a0cMzOpZf7UqqAqLOYuBcyNwmPBxJOdRazI646VC4w4UeaCnQ2BI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706197305; c=relaxed/simple; bh=WX55qrtb6obU9n+zBqneZj374blgH3zEv2tkR/PMhZ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SAm7whdxwXseNdVr460EY/6kSb1GK9DyfVpsOZD9SIjrREvv7TDvfPRAjXxsPuEhZUWuy3t1RaoBIxkbuu8tncfXT82zGZxvcB1HQl7WbLp2drJkzcKXw9Gc5Zoul6x9TVbq6dDWcKLfmzxggesplW2o3qmgdyhTAqGhCYPRbno= 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=SEr/5czF; arc=none smtp.client-ip=45.157.188.13 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="SEr/5czF" 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 4TLPw35JYjzJW0; Thu, 25 Jan 2024 16:32:35 +0100 (CET) Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4TLPw32FWLz5tg; Thu, 25 Jan 2024 16:32:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1706196755; bh=WX55qrtb6obU9n+zBqneZj374blgH3zEv2tkR/PMhZ8=; h=From:To:Cc:Subject:Date:From; b=SEr/5czFbwkCSz+r2kwk8w205kQEuZHtzOvJDnEV2INYzqGSlYTWtudxLcAprxx2S WOI5mA8IKqj0F6U/7ju8ooRJ4mSlNQfMPe8h4FMvP6tG/J8AxPzQhjAcumQ1w6EDcJ dcomWpUJwnHexWcm6WcK7IV1hr38/DqTcQtSuyeQ= From: =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= To: Konstantin Meskhidze Cc: =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= , =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= , linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v1 0/2] Fix Landlock's net_test for non-root users Date: Thu, 25 Jan 2024 16:32:28 +0100 Message-ID: <20240125153230.3817165-1-mic@digikod.net> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Infomaniak-Routing: alpha Hi, This two patches fix an issue when the user running net_test is not root. The second patch simplify test error logs. Regards, Mickaël Salaün (2): selftests/landlock: Fix capability for net_test selftests/landlock: Clean up error logs related to capabilities tools/testing/selftests/landlock/common.h | 88 ++++++++++++--------- tools/testing/selftests/landlock/net_test.c | 5 +- 2 files changed, 55 insertions(+), 38 deletions(-)