Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2175128rdb; Sun, 4 Feb 2024 19:35:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMPwJ7lrdBW6SBQlp5fNfVVnc4a1TjqSMumG+M3T3WgUVm+k4NXKqWsmnCdc5UTj0fdF3D X-Received: by 2002:a05:6214:2b05:b0:68c:92e7:93f7 with SMTP id jx5-20020a0562142b0500b0068c92e793f7mr6405749qvb.44.1707104121557; Sun, 04 Feb 2024 19:35:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707104121; cv=pass; d=google.com; s=arc-20160816; b=sJ/WnKdqwxYZOj/7nD/YB6/qQ7qozrwLtf+6XJKyJU6yxBc7tecMfy7F0h47S/xy+X 5+KOTikDcsBOXntE9vvRKCF8mP7LH3o6dSNF0rXinZhseSUM0qxQp8F/kRclgqZJbmWl znf22+v5ymFfR9e2Wt1dt5ZkN4t1grWUFJXK2H1uKsaB/wlvm5liYD6xIyqbrc31J+LT nEh3IIEyhxWjf3ObS6AZp259pPujUsMdAP0S3qftvW5efBLKtmu5c6Al9DJVWTN2dIBx wl2set3WaB7y3PWp+JxDrzVbKk4q4mmcYCmsye27VHDFi6FVERrtsBQMqIyoSdbIVHx2 mlDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=m8cRxU6sX5GHxiewAyartQmzDx7gRmdnbD252vv72ok=; fh=IlNUrk2G/bqnbpDwcPwsRP1Rq3Uh95KNYddRT+7/sl0=; b=N0m0pXsfBEGGlAdqCYi30EMV20s9hia3Gqdh08Cf+uYjLcZ/PmHOo0hwoNrFfGetvl gKLKgWxHAoR3OE08Qo1oC229x5yk15oir4fEgT9UG1Ca+aMvNUQIIB6inslYcVBtjXqe BG2wf4TVDwj7wkGW/X3IEQO/griVSTL7zo4VXDq01+XVLoM+MIdoe+41bGAdiRXrNXxW J8IU6K3yPCS2Eixl46x4NLS1Oa088mG3wD1eqjz2byEu/WPVQsqyR/vYbDzhg4rCS3MM rU5MvfTtLC19b5kjpOEGMaunQCyl1WFtBsKn00e88Q6Ua9L4Jadujz3cq8gQx7S5H3Uf WahQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hallyn.com); spf=pass (google.com: domain of linux-kernel+bounces-52015-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52015-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXeVocWjS82NmZ5epei/r62jNxoFuFqNej2YqTw88LwGKK6/VvuYe4TFsM3F7nO+UUq5aBB5VkA3cq9fW/Z+Kq6wtC2DZd4peB3NCkwtQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z10-20020a05620a08ca00b007833d053697si7559673qkz.658.2024.02.04.19.35.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 19:35:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52015-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hallyn.com); spf=pass (google.com: domain of linux-kernel+bounces-52015-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52015-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5156C1C221B3 for ; Mon, 5 Feb 2024 03:35:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8697C947F; Mon, 5 Feb 2024 03:35:10 +0000 (UTC) Received: from mail.hallyn.com (mail.hallyn.com [178.63.66.53]) (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 A5C0B8F47; Mon, 5 Feb 2024 03:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.63.66.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707104110; cv=none; b=UBiHaIQMC59e5N1t4uNWLPe+iog9RQzeCieVqSmelfsT0ZZqJ9fzvUiie9LMZYVGpeX08OnGIvKDSZ/sB6cz8mPP/uuKV/qfyfNKECPRWY7MJ3TgzBR3W6/hY7+KO9Pc1QWoOXoItGyI2w364x0j9liTfloDNfw6UNn+2Pmg4jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707104110; c=relaxed/simple; bh=HxA3GtKQYAgVitXTbgC0lk+XNefu3YtMS+OJuROCUmI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ERshqjX4qgYe8e8Hube4RZV4vUs9avjVBgeCpIUsBpogdUumOpeTU5dWSl49AtcbjY/wYBmKS+IiXYGk166W8X/jYv3SH7zcydCe3650xQHCEnXU+lM7hGVec3RYjJjLMH9W/B/c9SuWOgCRdzAz827H8lL4NP+79b0t6WxfY4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hallyn.com; spf=pass smtp.mailfrom=hallyn.com; arc=none smtp.client-ip=178.63.66.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hallyn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hallyn.com Received: from serge-l-PF3DENS3 (99-112-204-245.lightspeed.hstntx.sbcglobal.net [99.112.204.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: serge) by mail.hallyn.com (Postfix) with ESMTPSA id C217B6A3; Sun, 4 Feb 2024 21:28:03 -0600 (CST) Date: Sun, 4 Feb 2024 21:28:01 -0600 From: Serge Hallyn To: Tetsuo Handa Cc: Linus Torvalds , Eric Biederman , Kees Cook , Alexander Viro , Christian Brauner , Jan Kara , Paul Moore , James Morris , linux-security-module , linux-fsdevel , LKML Subject: Re: [PATCH v2 0/3] fs/exec: remove current->in_execve flag Message-ID: References: <8fafb8e1-b6be-4d08-945f-b464e3a396c8@I-love.SAKURA.ne.jp> 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=us-ascii Content-Disposition: inline In-Reply-To: <8fafb8e1-b6be-4d08-945f-b464e3a396c8@I-love.SAKURA.ne.jp> On Sat, Feb 03, 2024 at 07:52:24PM +0900, Tetsuo Handa wrote: > This is a follow up series for removing current->in_execve flag. > > https://lkml.kernel.org/r/b5a12ecd-468d-4b50-9f8c-17ae2a2560b4@I-love.SAKURA.ne.jp > > [PATCH v2 1/3] LSM: add security_execve_abort() hook > [PATCH v2 2/3] tomoyo: replace current->in_execve flag with security_execve_abort() hook > [PATCH v2 3/3] fs/exec: remove current->in_execve flag > > fs/exec.c | 4 +--- > include/linux/lsm_hook_defs.h | 1 + > include/linux/sched.h | 3 --- > include/linux/security.h | 5 +++++ > security/security.c | 11 +++++++++++ > security/tomoyo/tomoyo.c | 22 ++++++---------------- > 6 files changed, 24 insertions(+), 22 deletions(-) > > Changes in v2: > > Replace security_bprm_aborting_creds(const struct linux_binprm *bprm) with > security_execve_abort(void), suggested by Eric W. Biederman. It seems good to me, apart from the mistaken bprm arg mention in tomoyo_execve_abort() comment in patch 2 which kernel-test-robot found. Acked-by: Serge E. Hallyn thanks, -serge