Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp613203imu; Mon, 5 Nov 2018 06:15:07 -0800 (PST) X-Google-Smtp-Source: AJdET5cXsme5wNNTft5YYynQD0wmlD2L1dX12p+Oj/Y7mDF9ESsPIc9f/hYZ7MZlJEk07H/YIdZD X-Received: by 2002:a65:56cc:: with SMTP id w12-v6mr19589206pgs.224.1541427307657; Mon, 05 Nov 2018 06:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541427307; cv=none; d=google.com; s=arc-20160816; b=q5L5DkhREk0Fk5ZwvaCj9Uot+CJs0PHiiksf/uHldPgv2lMj6H/2LECn0RbWNSjoIr rXsJNcocwvGa/DJFdo3n80i6aR15pwai8Neijg0HFDnh+R3DE3rM4MdyUarUTl/vUo8B JvvX73fWnrjmSzhePiRLhdeaYRALkZzM83IO3xIfHrZ2Hi4/ahELalN15FD4pj0Ug55O yNn63vZRoYs0bSfmt9KprYKs+av6X4TL2vrY58eP/FwdhDLNqv53M7SD2p0Le5tWZeAm zwZKVOL7sYVhsa2nopmgthDgboRWOX1MhkCrlKOE1NYIAOK1LfQ96WxfJwOoW69RqKNv 5qSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=0VQQGkaODIw5U5Vk9FUWUQuyjZ5m8QUtv2XP6a3jpFc=; b=bLiyidEaIk4lTWthN1L+E6vPAqnfmQEwJFImf4kKFEJogpITS0Ujt1Zq7EKQQyPbQ4 wZ2bI2uQsRi3KbEZtvp2dzfo1FHehgEceWNLpKkLPYARrs+q7vVFId8Ol39U/OTDSpHz 9S7u9GetlOpPkjhSPwS5wEaZ89O7JodTwl6ba8Sbui74j4NKjmms7aQTXgZrdprRhcnS d+TMZbWPM3bF7onVG9BWvyGbYAGnfzfaqQMOQinGHnjQPxYSY9dZ49p1QyzU46WvUYAY afvGFWP4v1N6dsayaH9OCupPahJINQVVRhraNaT0/s/tsnr3Mci0mw9BLxlRjpaSVqBN kJWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si11168979plc.370.2018.11.05.06.14.52; Mon, 05 Nov 2018 06:15:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729881AbeKEXeP (ORCPT + 99 others); Mon, 5 Nov 2018 18:34:15 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49190 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727481AbeKEXeP (ORCPT ); Mon, 5 Nov 2018 18:34:15 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wA5E8pQF020061 for ; Mon, 5 Nov 2018 09:14:19 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2njpt5abmr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 05 Nov 2018 09:14:18 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Nov 2018 14:14:16 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 5 Nov 2018 14:14:12 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wA5EEBVa62390284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 5 Nov 2018 14:14:11 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AFF752050; Mon, 5 Nov 2018 14:14:11 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.105.137]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9283352052; Mon, 5 Nov 2018 14:14:09 +0000 (GMT) Subject: Re: [PATCH security-next v5 12/30] LSM: Provide separate ordered initialization From: Mimi Zohar To: Kees Cook Cc: James Morris , Casey Schaufler , John Johansen , Stephen Smalley , Paul Moore , Tetsuo Handa , Mimi Zohar , Randy Dunlap , Jordan Glover , LSM , "open list:DOCUMENTATION" , linux-arch , LKML Date: Mon, 05 Nov 2018 09:13:58 -0500 In-Reply-To: References: <20181011001846.30964-1-keescook@chromium.org> <20181011001846.30964-13-keescook@chromium.org> <1541182406.20901.31.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18110514-4275-0000-0000-000002D9A880 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18110514-4276-0000-0000-000037E6C052 Message-Id: <1541427238.21115.58.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-05_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=935 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811050130 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-11-02 at 13:49 -0700, Kees Cook wrote: > On Fri, Nov 2, 2018 at 11:13 AM, Mimi Zohar wrote: > > I don't recall why "integrity" is on the security_initcall, while both > > IMA and EVM are on the late_initcall(). > > It's because integrity needs to have a VFS buffer allocated extremely > early, so it used the security init to do it. While it's not an LSM, > it does use this part of LSM infrastructure. I didn't see an obvious > alternative at the time, but now that I think about it, maybe just a > simple postcore_initcall() would work? I was questioning why the "security_initcall", which is called after the late_initcall.  Moving it to the postcore_initcall, before the late_initcall, sounds right. Mimi