Received: by 10.223.164.221 with SMTP id h29csp2866484wrb; Mon, 30 Oct 2017 10:54:52 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RND7fKmRQM1WvfMWXn18+Bgi2U/8or80PSfVIf1Ch+WqliHy11RUEjetn32Qp+vDF9KBYv X-Received: by 10.98.181.1 with SMTP id y1mr9209334pfe.240.1509386092811; Mon, 30 Oct 2017 10:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509386092; cv=none; d=google.com; s=arc-20160816; b=DKLzR8E9EaQGuNVGXEyldg9fFJGXjj6y4tS6NfIplQxmyl/YNPWZyeryoASjMzZU4K WSy494J8ZyxnSLu99WdBya3xhZy8CLKY/v58seTVOki2XsLxGT2aQ7EHElWCA+evqAL3 VtmNGLJsYWmWF8dLzvGyWmbyhRba3FdCTcQ8UbEuP8IA5CYo66tVtGGyspcDd+sFM3Vk jnFdhGXtyS1RjLJZfPvTV/y9Z4EIkNhgcrZS5Lu5Va3GpTrHi1K3q+edApa7GwFWH5YN dLOQEhfMFjU24QuXOrx+GTBt89V7zrodFNDgqJJqsDKNW4zpAbSAISndlYDRfHLNwoTL YTng== 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=vGYA/m0PXIPub96XWKe02Gv0wWnT3o4HmhhkTwZwXNk=; b=eZd7iV1yPetWJTetPKaRiKBI2antSLCNQIgRWaq22AgEPKguiXlAHpLQHhkhf8zEt6 o+QN6wwb+Qifgr7c59f9to0OvUp3s70wjlb/+CxaA9YJtzqLLCmmlToSe7WQFK8Ve09V BojFNbck/3yhmdrTd4RQ0eCMtYlxa5UURKw0Me0+mRk9IDvvePVKMaSzY725XascO5gy IdCKy3B8pMQmHZabnGIvflVeEw/rvn2+CI03dgmEuNY2ZndoOQQRnlqs0LutR6PJT6c7 UBP4yIhNIKJ3r8YBBUS98QnnM3YwVvW9EsZo8lJ+RPrUlrrC5G3KW2U9YM2GkDslPSQs JILg== 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 l19si10353948pgc.612.2017.10.30.10.54.39; Mon, 30 Oct 2017 10:54:52 -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 S932743AbdJ3Rw2 (ORCPT + 99 others); Mon, 30 Oct 2017 13:52:28 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41756 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932623AbdJ3Rw0 (ORCPT ); Mon, 30 Oct 2017 13:52:26 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9UHn6M2101007 for ; Mon, 30 Oct 2017 13:52:25 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dx5k5w006-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 30 Oct 2017 13:52:25 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 30 Oct 2017 17:52:23 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 30 Oct 2017 17:52:18 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v9UHqI8S27918410; Mon, 30 Oct 2017 17:52:18 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 470C642047; Mon, 30 Oct 2017 17:47:34 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0959242042; Mon, 30 Oct 2017 17:47:33 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.90.70]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 30 Oct 2017 17:47:32 +0000 (GMT) Subject: Re: [PATCH 03/27] Enforce module signatures if the kernel is locked down From: Mimi Zohar To: David Howells Cc: linux-security-module@vger.kernel.org, gnomes@lxorguk.ukuu.org.uk, linux-efi@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, jforbes@redhat.com, Matthew Garrett , "Bruno E. O. Meneguele" Date: Mon, 30 Oct 2017 13:52:16 -0400 In-Reply-To: <3565.1509382834@warthog.procyon.org.uk> References: <1509130095.3716.13.camel@linux.vnet.ibm.com> <150842463163.7923.11081723749106843698.stgit@warthog.procyon.org.uk> <150842465546.7923.6762214527898273559.stgit@warthog.procyon.org.uk> <3565.1509382834@warthog.procyon.org.uk> 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: 17103017-0008-0000-0000-000004A58F9A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17103017-0009-0000-0000-00001E380CCD Message-Id: <1509385936.3583.170.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-30_06:,, 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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710300239 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Corrected Matthew Garrett's email address.  Cc'ed Bruno Meneguele] On Mon, 2017-10-30 at 17:00 +0000, David Howells wrote: > Mimi Zohar wrote: > > > This kernel_is_locked_down() check is being called for both the > > original and new module_load syscalls.  We need to be able > > differentiate them.  This is fine for the original syscall, but for > > the new syscall we would need an additional IMA check - > > !is_ima_appraise_enabled(). > > IMA can only be used with finit_module()? Yes, without the file descriptor, IMA-appraisal can't access the xattrs.  You should really look at Bruno's patches, which are in my next branch: 8168913c50d5 "ima: check signature enforcement against cmdline param instead of CONFIG" 404090509894 module: export module signature enforcement status Can we get an Ack on the module one? Mimi From 1582702702544935623@xxx Mon Oct 30 17:01:57 +0000 2017 X-GM-THRID: 1581705993536835286 X-Gmail-Labels: Inbox,Category Forums