Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1349115rdb; Sat, 3 Feb 2024 02:54:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzmwWQy7wdM8Wu0BrIli/COrlNIFg0Es4AjLnNNV1hQfArmwLwSFe5uniz4jqA5g4CfW0i X-Received: by 2002:a17:902:c94a:b0:1d9:8e72:db74 with SMTP id i10-20020a170902c94a00b001d98e72db74mr771873pla.69.1706957661034; Sat, 03 Feb 2024 02:54:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706957661; cv=pass; d=google.com; s=arc-20160816; b=ntAs+/GGYQt1MWP8SVy2F8zfpjTo0JA01n1+QSgs1tCUsAzyGtYBGkixiFXnTE5rw0 FYCuHkb75a85eWuvrliOee7z7crssxuq74qC/jUUobAzW/xjIG6d+JQtRuxNpBDWMq8P Kzn178l9FbF6t9YEGNAhLrXVVzFgpYhn2DWb4CLeS4/UZyHne6osX0HQ6yykHWThBCNc g3SFLTm81b05rHmalbKpFuKkxHr6G9tXZCH2VyORaq9ZgFLBAMyWDWu8p/5TxSiSmD9W 43OfjHwo+Cbzm+mDGVL4uR8g6rnVVBZFBWll9BxK02IQPnvlzBon+L8J2NW0FrMgTV32 KrJQ== 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=koKwzWf7h3ys+gbB0wLWjwi3MnmdRF1P87PYbsO1+r4=; b=EVQeYDjFmWqh0V2yvfOZQ43nf0LjZ67OyfuMfcYg38nJDdtow2AwjE8mkWv2ZJUn70 kRUzu/aHWgXFD/KULBK0OVlmVDp+DALK9OjegA9tmuY+07oGSbnloXWEezMDTEf0QQ76 1FvCW/mkvaI1rDUPXIijc4gbvphZ/T9RlbTntqpZksheOYPM2FSny04/9Y6CG+HC/nUI tN/K7VHxuZO9RQB+uZ+A5u7nPESeotT9mn6fmB7w80u05DjYzFKin25q5y3V0zIl8W0U Vft++EiPtIWb0tAh0IbbuqMCamRFGyQ0aqNYDIbnejro77zothCvpcmh9cDEeMSbthXk nNAQ==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51032-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCW8BTaStFF66Z57wKo3VMyj6S6MPzGwFLo7oEaocrafpse5xPpMY4e4e+vXxQxg2nHxlH1M3hJ2scOnnxk81E50x/l4/nsTB0qXMFhk+w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h9-20020a170902f2c900b001d95b8a537csi3105079plc.168.2024.02.03.02.54.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 02:54:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51032-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4CBBD289842 for ; Sat, 3 Feb 2024 10:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24B0B5D902; Sat, 3 Feb 2024 10:53:28 +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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linus Torvalds , Eric Biederman , Kees Cook , Alexander Viro , Christian Brauner , Jan Kara , Paul Moore , James Morris , "Serge E. Hallyn" Cc: linux-security-module , linux-fsdevel , LKML From: Tetsuo Handa Subject: [PATCH v2 0/3] fs/exec: remove current->in_execve flag Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.