Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1101081imm; Tue, 3 Jul 2018 05:38:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIdLjzX9frZxI+37kmKM2evfHZ4jX/LP9TE2EnT+3wAVamrm+ad8NNPdGXL2SHtuSNMxHFx X-Received: by 2002:a17:902:1023:: with SMTP id b32-v6mr30604151pla.145.1530621530716; Tue, 03 Jul 2018 05:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530621530; cv=none; d=google.com; s=arc-20160816; b=i/dXLZSxl1QXLOmNuWP8cIB1vu0OXWjoPApcJ3PeLZE92uFkAx4WFhWXFTndturwmi +B8Aoo4k+u0vM50DV9cfuDFmZoDqqu3BIdnPoFzsS1rZgEPGYL/a42qkc9qdNpAl9Q1F nYmGgNJsnyQzVZ+yBGOQoQOoqJL+mH6bmY4ee9Fd1pNbViUGid2pNHUFH+IyjhTPBoF4 wa6rhblrrw6nLOzRICg9ILKzQd5RE5CgOpVC2E2I3twtnRemu9eOyPha4SYqu+VMnwXN OSlheLuVySmgTJXA5DXn6PLWjW8yCKO/KopVvx7iq8txLoyrBG+nU7GC+OcjLnJInSOd vk3g== 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 :arc-authentication-results; bh=A4seBjRS2mLCUCjL55flIgqYPEM7IcJ9Ftnz8uqznAM=; b=LnsGONwliStEyaLv7X+NzyD8YbNiGwFze/D/h83WagzIX+ark44SdiEBbuSppqd6WZ mf6oZ58dAEagFmDPaH8jQdyn++INXoxw2Uf59hXPsMLqqS3ODuH6mqhdV1fReWqYxyxm WbFFe4tYumBnHra7mucWqwDeeIZO/1oa9Kwn32Nnzb2YmhejzC7PbN9rngZLAJ/kACZh Szu9DBbQL+4zUKHU6mZ6v1s48m1QDRE3e/sQglsxaPL0r23jk/pQ3Sk2sOC24vbkM2tT D9x/lYXPWPUPvXDUb6/KIy+2y0dSsq0sZGVe03ihUi9TSIuwMZvo1jqDp6Gwr0QjNVbA VRyQ== 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 n5-v6si1032533plk.352.2018.07.03.05.38.35; Tue, 03 Jul 2018 05:38:50 -0700 (PDT) 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 S932230AbeGCMgE (ORCPT + 99 others); Tue, 3 Jul 2018 08:36:04 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54056 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932079AbeGCMgC (ORCPT ); Tue, 3 Jul 2018 08:36:02 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63CTQhr051484 for ; Tue, 3 Jul 2018 08:36:02 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k08vvh89n-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 08:36:01 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 13:35:59 +0100 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) Tue, 3 Jul 2018 13:35:55 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63CZsmU41091302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 12:35:54 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 04CC24C04A; Tue, 3 Jul 2018 15:36:20 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5D56D4C05C; Tue, 3 Jul 2018 15:36:18 +0100 (BST) Received: from localhost.localdomain (unknown [9.80.97.127]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 3 Jul 2018 15:36:18 +0100 (BST) Subject: Re: [PATCH v5 1/8] security: define new LSM hook named security_kernel_load_data From: Mimi Zohar To: J Freyensee , linux-integrity@vger.kernel.org Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , "Luis R . Rodriguez" , Eric Biederman , kexec@lists.infradead.org, Andres Rodriguez , Greg Kroah-Hartman , Ard Biesheuvel , Kees Cook , Casey Schaufler Date: Tue, 03 Jul 2018 08:35:41 -0400 In-Reply-To: <64f467a5-e907-ee3e-495b-b2c731715037@gmail.com> References: <1530542283-26145-1-git-send-email-zohar@linux.vnet.ibm.com> <1530542283-26145-2-git-send-email-zohar@linux.vnet.ibm.com> <64f467a5-e907-ee3e-495b-b2c731715037@gmail.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: 18070312-4275-0000-0000-00000294B120 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070312-4276-0000-0000-0000379C2F9D Message-Id: <1530621341.3452.5.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_04:,, 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807030144 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-07-02 at 11:45 -0700, J Freyensee wrote: > > On 7/2/18 7:37 AM, Mimi Zohar wrote: > > Differentiate between the kernel reading a file from the kernel loading > > data provided by userspace. This patch defines a new LSM hook named > > security_kernel_load_data. > > If this patch series is re-done, can we tweak the description here > please?  From what I understood of the code in this patch, I'd tweak it as: > > "Differentiate between the kernel reading a file specified by userspace > and the kernel loading a block of data provided by userspace.  This > patch defines a new LSM hook named security_kernel_load_data()." > > From the description, I got a tad confused if the the kernel > reading a file was also provided by userspace (I know it may be 2nd- > nature to people on this list, I'm still learning this kernel > module). Could we replace "a block of data provided by userspace" with just "data provided by userspace"? Mimi