Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4666278ybi; Mon, 3 Jun 2019 15:08:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSv7YYo2xshWLVJ2csiZMemtQ/30tnBklNIcUoP14qeRs4ahTx6yXCD0mtft1v9pqB7L7q X-Received: by 2002:a17:902:306:: with SMTP id 6mr33287445pld.148.1559599691254; Mon, 03 Jun 2019 15:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559599691; cv=none; d=google.com; s=arc-20160816; b=g1LskJUUBR7iHj0uC0bpyfYctd1pWhNMXK9s9JzResA+68XWApp9p8EtwX/33B1mwr riX9RmfeAlBPmsJfglykGaeOmyPLkZATOuSm2/S8FW59UCvN9pKFXPLjA7rTSFN7IImX nNnbgIEGZx0QNHi59K7KUYoptoJ5gDjqxBlDaqe3b4HTuxDE3wTkRewrBWm3bk32T54B /zYKs+SRUkrxWlYw4vELW67qql4WMsS84hz/YJdSss0PeUdrqxESi0AlcGEvGorJIR/A sk4XmaRqEZ0D4F3uaUtvOaY0Jrs0TlfygIKNzDbwAzU4PJ1t9HVsLAEUho6oOAx0+2g2 wd1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=r+K0jt+mDE8XonxUzlQDT/QaGSLxciAQaZK16aFy32M=; b=jScMlfciyClGAADG0jH7ffXSL4LkhfRHwbviYc2XYpiNjZEsrcooF4VtWxspUoNQOq u76UnHMUlVRialHuvA5qOivbtD6oDRJ6IvSgKSxfuRd5cYcKKbx0mz6+JutXGtoaZ1+4 +WxEC62K3G+SGbqaD2asrmfSXfWVpa6WilGqk3YxASS8+pcwAIDM1feK60hbIEOX5naX AxvRNnfBtFpAH+5TX7FEyU+0UodNFUIk0nalO9ahyPsz+B3C2XSjttazc4Wr7rRJEvJD g2SobKEwkqHu2IFMRJrhklsODQsjEC/9mymLC1bng5HoOZwalEBZEoa6nIn1QdCrbaZX GPPw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si19317265plr.408.2019.06.03.15.07.54; Mon, 03 Jun 2019 15:08:11 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726876AbfFCWFq (ORCPT + 99 others); Mon, 3 Jun 2019 18:05:46 -0400 Received: from mga05.intel.com ([192.55.52.43]:46272 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbfFCWFj (ORCPT ); Mon, 3 Jun 2019 18:05:39 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jun 2019 13:48:04 -0700 X-ExtLoop1: 1 Received: from jgaire-mobl.ger.corp.intel.com (HELO localhost) ([10.252.20.169]) by orsmga001.jf.intel.com with ESMTP; 03 Jun 2019 13:47:50 -0700 Date: Mon, 3 Jun 2019 23:47:49 +0300 From: Jarkko Sakkinen To: Stephen Smalley Cc: Andy Lutomirski , "Xing, Cedric" , "Christopherson, Sean J" , William Roberts , James Morris , "Serge E. Hallyn" , LSM List , Paul Moore , Eric Paris , "selinux@vger.kernel.org" , Jethro Beekman , "Hansen, Dave" , Thomas Gleixner , "Dr. Greg" , Linus Torvalds , LKML , X86 ML , "linux-sgx@vger.kernel.org" , Andrew Morton , "nhorman@redhat.com" , "npmccallum@redhat.com" , "Ayoun, Serge" , "Katz-zamir, Shay" , "Huang, Haitao" , Andy Shevchenko , "Svahn, Kai" , Borislav Petkov , Josh Triplett , "Huang, Kai" , David Rientjes Subject: Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support) Message-ID: <20190603204749.GD4894@linux.intel.com> References: <683B5E3D-AFB6-4B45-8D39-B00847312209@amacapital.net> <960B34DE67B9E140824F1DCDEC400C0F654E965F@ORSMSX116.amr.corp.intel.com> <960B34DE67B9E140824F1DCDEC400C0F654E9824@ORSMSX116.amr.corp.intel.com> <20190528202407.GB13158@linux.intel.com> <285f279f-b500-27f0-ab42-fb1dbcc5ab18@tycho.nsa.gov> <960B34DE67B9E140824F1DCDEC400C0F654EB487@ORSMSX116.amr.corp.intel.com> <678a37af-797d-7bd5-a406-32548a270e3d@tycho.nsa.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 11:04:24AM -0400, Stephen Smalley wrote: > Does this occur for both setting initial permissions and runtime permissions > or just runtime? Both userspace- and driver-initiated mmap/mprotect > operations or just userspace-initiated ones? Does the driver use interfaces > that call the mmap/mprotect hooks or lower level functions? The driver never initiates mmap() or mprotect(). /Jarkko