Message ID | 8fafb8e1-b6be-4d08-945f-b464e3a396c8@I-love.SAKURA.ne.jp |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-51032-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp956060dyc; Sat, 3 Feb 2024 02:53:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpz7Xyn635+PQ7CmUWaTpEIoOzYPpQwguG2lPuSraaBYsboU8GY3X9wj6zYIOw+5QFVj82 X-Received: by 2002:ae9:f70e:0:b0:785:43d7:af81 with SMTP id s14-20020ae9f70e000000b0078543d7af81mr4866909qkg.25.1706957633943; Sat, 03 Feb 2024 02:53:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706957633; cv=pass; d=google.com; s=arc-20160816; b=RWeih4WCqit/nRHdawj+AVrqtQeKA/ZqmXjJEI/zsp2BS8QnUtRCVcXI945+FE/xAi VKez5XLN3p3WHuCRJ4qTS1hRUCRNLEPmmuWndMbRyvpXAOVjcEAwlgyrhHLQqsrBKH4y gR4ZNIDQ2f6uCWMzcfYeLemadU/WRA6Efa1xhrvcux0GcYDU+m6S94283/OMMnTaeFTD 7pduNltCeCTB4TgPbdu04PRO1S5oU9kR9uO+t4NVBMMDuftZmp4584Q29cn2WKlTNXw7 WCpWGou1tjiSyTvd5Dq/md0udZymwNkabsx6CZeWdDhtQa5uVwLxlGvQGVGR+jrpJgoN 36Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=xT2ZtS/Y/fMk8z6q4zw27B9mLVDA0AUFdnBfceGkJUA=; fh=yEYN0+8cX/RreLw4tLGfsidvKi/3dByWFtQPxgEsjG0=; b=lACy+q9w1Pn/yg/aBRwt8Sg8MeA3VOL88Ht6LcKLioqnL4CrrPyZA1uiRAwdG0T57c 0beC06oOUanOSnkPjNlw+JIBeoNActbaCR/sM0/LZdHa4dwRf4Qgu/uaFDtXu66EqvDj ld0GjjOmv1HSWbDRarMHuNpsrhBCD8KA9QEGjGIuLakE8/0EoIUyIC4K/rjHbS/puSkI WqDVgwbplKcX6GX8JvN3o1QL8MVW721FWUGomG74IjSRzaBKsCR7BxuGy/1pZSivrxIo VgnafqZhGIvFStC3KVtJuy0wDM8k9tyWMRwGtlkU/B4Qc65NSE8kA3rWkZXu5cowKCyS qJmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-51032-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51032-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV3yOfWRDXW4cKTQOXBqw67RDHLMm8gvsYaWrj9LS34xWS/xl/OFkMSNxFcy1oDrnXb3NTcUcsYpujYIbSD9Za54fOUJA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a9-20020a05620a124900b007831f4bd3d2si4003535qkl.393.2024.02.03.02.53.53 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 02:53:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51032-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-51032-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51032-ouuuleilei=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 B761D1C215A6 for <ouuuleilei@gmail.com>; Sat, 3 Feb 2024 10:53:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35BD35DF04; Sat, 3 Feb 2024 10:53:29 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (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 9E2FE5D8F1; Sat, 3 Feb 2024 10:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706957607; cv=none; b=lPkRsmc+eiYtm4ujj9ucxmNKfKY+FTYV9Tt4HbPaMl8elqGDQpvDYJsTurwWEx4D3wAEQ4VzdCtJ6VgC9eek5iJRvn6dbfkiQb+IL9+C1/c4sI+1ndIMv/JKULYMFmhAImkERs2ifKrZAbBV2dbVqeP1Z9+hEwnJOfl4MOw5QoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706957607; c=relaxed/simple; bh=bYPPmEH/ZMR+9q1jnQ+YjKiGGYzTeBfqCwewqyVwsz4=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=szuqljZN0nfTW+TrGrPPJ3oE4p/iaNcj4ZRKi/3wGd+0sWyXlQphATg/RKsHmfzmOfsahYP94dYee+GJ7V4dI4iSXBlLSvVmlBzNo0u70ORrYR4SW9b7GOdeOG4ZG17ebUB35h1aGJz3yIJp8873wA7fCS8FiRw1EDNI7TmIXyA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav111.sakura.ne.jp (fsav111.sakura.ne.jp [27.133.134.238]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 413AqOuS052401; Sat, 3 Feb 2024 19:52:24 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav111.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav111.sakura.ne.jp); Sat, 03 Feb 2024 19:52:24 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav111.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 413AqOqv052397 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 3 Feb 2024 19:52:24 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <8fafb8e1-b6be-4d08-945f-b464e3a396c8@I-love.SAKURA.ne.jp> Date: Sat, 3 Feb 2024 19:52:24 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linus Torvalds <torvalds@linux-foundation.org>, Eric Biederman <ebiederm@xmission.com>, Kees Cook <keescook@chromium.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, Paul Moore <paul@paul-moore.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-security-module <linux-security-module@vger.kernel.org>, linux-fsdevel <linux-fsdevel@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org> From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Subject: [PATCH v2 0/3] fs/exec: remove current->in_execve flag Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789874807713540365 X-GMAIL-MSGID: 1789874807713540365 |
Series |
fs/exec: remove current->in_execve flag
|
|
Message
Tetsuo Handa
Feb. 3, 2024, 10:52 a.m. UTC
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.
Comments
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 <serge@hallyn.com> thanks, -serge