From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by smtp.lore.kernel.org (Postfix) with SMTP id 65E77CFC501 for ; Mon, 14 Oct 2024 07:40:17 +0000 (UTC) Received: (qmail 11282 invoked by uid 550); 14 Oct 2024 07:40:05 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 10234 invoked from network); 14 Oct 2024 07:40:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1728891596; bh=IK21ziFHzeZTWewfpsK1ouln6YyY8LRReKv9clTkIaM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MjihJLQ7ZELqcL/G/6u3K+i36UXfZ4tGFKcErgGdZmintyw0hzKJDN1KBSwjxEY22 tuqaaFGJ1p9oOkqQRv2T1BPWhR5ARSffT78kVukyLG0h2AW+h6+dyIbLXadW4iuYzw XQXfFasFeo2Y6UcTuWQ8sHMu0Ev3sW8kffRMZHr8= Date: Mon, 14 Oct 2024 09:39:52 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: "Serge E. Hallyn" Cc: Al Viro , Christian Brauner , Kees Cook , Linus Torvalds , Paul Moore , Theodore Ts'o , Adhemerval Zanella Netto , Alejandro Colomar , Aleksa Sarai , Andrew Morton , Andy Lutomirski , Arnd Bergmann , Casey Schaufler , Christian Heimes , Dmitry Vyukov , Elliott Hughes , Eric Biggers , Eric Chiang , Fan Wu , Florian Weimer , Geert Uytterhoeven , James Morris , Jan Kara , Jann Horn , Jeff Xu , Jonathan Corbet , Jordan R Abrahams , Lakshmi Ramasubramanian , Luca Boccassi , Luis Chamberlain , "Madhavan T . Venkataraman" , Matt Bobrowski , Matthew Garrett , Matthew Wilcox , Miklos Szeredi , Mimi Zohar , Nicolas Bouchinet , Scott Shell , Shuah Khan , Stephen Rothwell , Steve Dower , Steve Grubb , Thibaut Sautereau , Vincent Strubel , Xiaoming Ni , Yin Fengwei , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v20 1/6] exec: Add a new AT_CHECK flag to execveat(2) Message-ID: <20241014.ke5eeKoo6doh@digikod.net> References: <20241011184422.977903-1-mic@digikod.net> <20241011184422.977903-2-mic@digikod.net> <20241013030416.GA1056921@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20241013030416.GA1056921@mail.hallyn.com> X-Infomaniak-Routing: alpha On Sat, Oct 12, 2024 at 10:04:16PM -0500, Serge E. Hallyn wrote: > On Fri, Oct 11, 2024 at 08:44:17PM +0200, Mickaël Salaün wrote: > > Add a new AT_CHECK flag to execveat(2) to check if a file would be > > Apologies for both bikeshedding and missing earlier discussions. > > But AT_CHECK sounds quite generic. How about AT_EXEC_CHECK, or > AT_CHECK_EXEC_CREDS? (I would suggest just AT_CHECK_CREDS since > it's for use in execveat(2), but as it's an AT_ flag, it's > probably worth being more precise). As Amir pointed out, we need at least to use the AT_EXECVE_CHECK_ prefix, and I agree with the AT_EXECVE_CHECK name because it's about checking the whole execve request, not sepcifically a "creds" part.