From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch [84.16.66.171]) (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 270101A01D4 for ; Mon, 20 Jan 2025 09:03:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737363803; cv=none; b=p4pxrXgDKWF6O0buAZoir/30GP4HA0VyEJ0VwWpiy7kRBxn5ohdzJSdBjLq3vRsutiMrXoiimSGVTgydLbU0kHzliFqvPlk6J1gzw20l3y/gnibXIEfgqOm5sFCYB8Vj5BIxgjvkoRKXBQ6JOYJIALgHpcSMvbqeUG1nfoO2Je8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737363803; c=relaxed/simple; bh=t6BpdZQN4NPDrV6tR7z4/pn/+8eeyx6Z+wEY/8gr4TE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GeK7KsviAFJdaa3P4/YU8p1uitffhFxIIYf9B+0oktj7n8StXb+Kv5DoV+/kNysZWKMV4zU3XOVP0CpW343bkjNZ+vXcJj4dW93uVuDdY/ky0DM5aETTyKP/BajqcRow1z7d3BpJby/beL7VP0ZmKbtrbyMEPhHiCrjJAecZXDs= 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=MG1XRZ70; arc=none smtp.client-ip=84.16.66.171 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="MG1XRZ70" Received: from smtp-4-0000.mail.infomaniak.ch (unknown [IPv6:2001:1600:7:10:40ca:feff:fe05:0]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Yc4B655LYzScS; Mon, 20 Jan 2025 10:03:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1737363790; bh=xgZMzUGMbNt7p9cspQfrenDCPCxEJ2KZ+v0JnrtbJFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MG1XRZ702D5CzGWzPHkdb8d1GL2X8BIrsJHvKTYwNOdzLhENjQLsseU1Dm0QzkKYY NvwGVrjZYrUhhMSxfgPMdlmg8eKLow+F8m66Pv8ghmHMka0IhWCc1SshW/2OoAWxM1 3uK3rbeJypJRj+NxSgiNsMUonj41b0LOYtZy+I0Y= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Yc4B50S13zrgh; Mon, 20 Jan 2025 10:03:08 +0100 (CET) Date: Mon, 20 Jan 2025 10:03:07 +0100 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Sasha Levin Cc: Kees Cook , Linus Torvalds , linux-kernel@vger.kernel.org, Al Viro , Andy Lutomirski , Christian Brauner , =?utf-8?Q?G=C3=BCnther?= Noack , Jeff Xu , Kees Cook , Mimi Zohar , =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado , Paul Moore , Roberto Sassu , Serge Hallyn , Shuah Khan , Stefan Berger , Nathan Chancellor Subject: Re: [GIT PULL] AT_EXECVE_CHECK introduction for v6.14-rc1 Message-ID: <20250120.kab5eeng5Yai@digikod.net> References: <202501151612.CE6D0686@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Infomaniak-Routing: alpha On Sun, Jan 19, 2025 at 07:08:54PM -0500, Sasha Levin wrote: > On Wed, Jan 15, 2025 at 04:18:07PM -0800, Kees Cook wrote: > > Hi Linus, > > > > Please pull the AT_EXECVE_CHECK introduction for v6.14-rc1. I split > > this series from the core execve tree since it's had a life of its own > > as it has progressed from O_MAY_EXEC. :) This provides userspace with > > a way to opt in to performing "execability" checks for things that are > > executable but don't pass through execve(2) (e.g. scripts, dlopen libs, > > etc). It's seen quite a bit of discussion and review, and has lived in > > -next for the entire dev cycle. Included is documentation, samples, and > > extensive selftests. > > > > Thanks! > > > > -Kees > > > > The following changes since commit fac04efc5c793dccbd07e2d59af9f90b7fc0dca4: > > > > Linux 6.13-rc2 (2024-12-08 14:03:39 -0800) > > > > are available in the Git repository at: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/AT_EXECVE_CHECK-v6.14-rc1 > > Hey Kees, > > LKFT has caught a build error with one of the samples: > > /builds/linux/samples/check-exec/inc.c: In function 'interpret_stream': > /builds/linux/samples/check-exec/inc.c:81:8: warning: implicit declaration of function 'execveat'; did you mean 'execve'? [-Wimplicit-function-declaration] > err = execveat(fileno(script), "", script_argv, envp, > ^~~~~~~~ > execve > > The full log is here: https://qa-reports.linaro.org/lkft/sashal-linus-next/build/v6.13-rc7-511-g109a8e0fa9d6/testrun/26809210/suite/build/test/gcc-8-allyesconfig/log Hi Sasha, Nathan caught this sample build issue last week too. The fix is here: https://lore.kernel.org/r/20250115144753.311152-1-mic@digikod.net