From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [84.16.66.175]) (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 3748E1531D5; Mon, 14 Oct 2024 07:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728891606; cv=none; b=Vn8YZT8XL71VNZlByvJo8AwUa8VpBCBVrIMaud8rDmNay5KoRwIpZo9xgIFxkYCSDGZ3uxM0gP+AEIw8AoZ2SXkbj7+NO23sQlXLsp1mBJJG2D/2LQqJ/XDJmHYCb5CeVsLX781s3/tod++eskuC5N8i52rqtM6SjMabyhQUtZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728891606; c=relaxed/simple; bh=0ONNd/EutDTP9Itu+LrZh1WTLUTA4HIYQ4CmxGnKeEo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A/Ms4Ly9unq4o6VNCYjI3qNAY9KO2LOBZQN4gsYikuy0cV5Nseu54JNdI2gRMlyaLEZAY6pAaWtxKy+t3Ce7UkPPembxLZJt2Ej8Q4BnxlIYPR+nEAFDmCgCXAnMKgThC4pdohl3Eclj+CZU0NW/VKCWtNkiHdFmNzVakWyReVY= 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=MjihJLQ7; arc=none smtp.client-ip=84.16.66.175 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="MjihJLQ7" Received: from smtp-4-0001.mail.infomaniak.ch (unknown [IPv6:2001:1600:7:10:40ca:feff:fe05:1]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4XRpzJ4rw3z6Lm; Mon, 14 Oct 2024 09:39:56 +0200 (CEST) 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= Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4XRpzH4DLDzKsD; Mon, 14 Oct 2024 09:39:55 +0200 (CEST) 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> Precedence: bulk X-Mailing-List: linux-api@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: <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.