Received: by 10.223.164.221 with SMTP id h29csp1173865wrb; Mon, 16 Oct 2017 21:08:26 -0700 (PDT) X-Received: by 10.98.213.194 with SMTP id d185mr10715044pfg.107.1508213306688; Mon, 16 Oct 2017 21:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508213306; cv=none; d=google.com; s=arc-20160816; b=IWpdRDuhCcpND7k0MKyi9wViYufjWu6K45DmEODuEDwXoYq1HKydDdWnhXKahIB0GP 41bRzxztV/ZKtHqHVSJXIcYk9cNWKRcSuVN5p8vv9setBVtP/53Fbz8XnTPVvhpoHLNI O6KO93GpShTeVj4jOHiO+6li5z830oS69qehYXbk4ouCz2Ljx4qnSGxNnEVH64Wpc/YL DTwdLT3FFP7hLerhL+zAeS7RoMTnkPCprr/cWV5RkE88Kaw7sy6QXli73DY7AYzVgOMS JuNc/yf1H+hGtmwydw4qA8gpvsSBbLzeYXbvc9JZo77PstJmGks0SaaQIb6IgAIcK6xT 69lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=gTHRFPcFNKTlHCGW+AaQtiKi56hWs8QBz1ZW6y0u7QQ=; b=ynu7Ooc2cQdDYCKAhF2Hqk06ZHsKw122PbyDSIPrgSglStNmDf33ZiAimnbCLFa1ml kjC7JyV0rfN2CISCNJrg7hBcw/EfmOeg/IJopEqBYCFiIXNSQ/3BINUMejYkpvvhtFD1 i3XDJ7NLBADIwOly+2D7G3MlKfJ0+2t8dw81KE+BhsBJc3J/q8grbmRrhoojUK144XBl bCbAHuvoyr0Mk6zIvrLAptiKiUH9Q7UuUnsw2cjQwOdZCkIYokvW//8wDkeVGFC9BDd8 wEAkePS7fzIbbQQ7g+jhEIYBj3EmuOmTLXVg13VKk/uJONCHiUXOBHAs1vS0SC2KvFa2 /5eA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n59si430482plb.17.2017.10.16.21.08.12; Mon, 16 Oct 2017 21:08:26 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755949AbdJPWJR (ORCPT + 99 others); Mon, 16 Oct 2017 18:09:17 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:54294 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbdJPWJQ (ORCPT ); Mon, 16 Oct 2017 18:09:16 -0400 Received: by mail-qk0-f176.google.com with SMTP id n5so14760909qke.11 for ; Mon, 16 Oct 2017 15:09:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gTHRFPcFNKTlHCGW+AaQtiKi56hWs8QBz1ZW6y0u7QQ=; b=mCOAFeOzekKGdUagezixh2O7xe/erqSPrZJhcsIE7xFHOQG19mQrt7gLWSJddbQPoi cUE7vMzV46lr+craGKqEt+IiVfexnfa3XSZZ2FbmszyxZ8Nonqy3CAaCpxP8VDShwqVU /ZEBb6TMGZ/QdopLMHWURURxWusRm9HDWH9D08DXjN0W7zz+i+q3fWEj14ik0Oz62tCb mqDLNP2gvFOleiWEaGOebgFLiDUk6H4mg3/dnsjFwqms2vDchfRD/ygOT5RzUt7z3J45 D1mADaTBadcLkrk9r/uyNbTrkjFJkWt4eNaYD+ATRnulNzaVEYnxocI3nJIv0Vbtd5tz O4zQ== X-Gm-Message-State: AMCzsaUTjxiPXMZ8yTA7NqONtwA98D+yvQoSob0Oka/HZQFYEeP7Uqbw AGlQZXfGQKNUmQUiHFNxjjSwDg== X-Google-Smtp-Source: ABhQp+SP+VdrXY851vTrUOBUxrocWogA2kIi5k2x9k55PxGNpwgYDtGs/gHwofzICq4YpAbCydRy+w== X-Received: by 10.55.36.7 with SMTP id w7mr16076808qkg.1.1508191755300; Mon, 16 Oct 2017 15:09:15 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::e174? ([2601:602:9802:a8dc::e174]) by smtp.gmail.com with ESMTPSA id c69sm5186142qkb.65.2017.10.16.15.09.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 15:09:14 -0700 (PDT) Subject: Re: [PATCH v5 2/2] staging: ion: create one device entry per heap To: Mark Brown Cc: Benjamin Gaignard , Sandeep Patil , driverdevel , Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=c3=b8nnev=c3=a5g?= , "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Riley Andrews , linux-api@vger.kernel.org, Sumit Semwal , Dan Carpenter References: <1506518409-16887-3-git-send-email-benjamin.gaignard@linaro.org> <2e15edc2-a17f-3930-7d5b-4b5b7d2e0a4d@redhat.com> <20171003164849.rcdgez6lbpmq5llt@sirena.org.uk> <2417c969-357f-d5d9-153a-2180d09b0dc6@redhat.com> <20171003230830.GA132839@sspatil-desktop.mtv.corp.google.com> <20171004101720.ob5f467tro7agpcz@sirena.co.uk> <20171009220858.zwbguqkamzmswqcq@sirena.co.uk> <20171010091151.rfdsphstboubm7ps@sirena.co.uk> From: Laura Abbott Message-ID: <2a9246e0-eafa-7812-6cf4-2482ff1ed158@redhat.com> Date: Mon, 16 Oct 2017 15:09:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171010091151.rfdsphstboubm7ps@sirena.co.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/2017 02:11 AM, Mark Brown wrote: > On Mon, Oct 09, 2017 at 05:10:37PM -0700, Laura Abbott wrote: >> On 10/09/2017 03:08 PM, Mark Brown wrote: >>> On Mon, Oct 09, 2017 at 02:25:47PM -0700, Laura Abbott wrote: > >>>> Anyway, to move this forward I think we need to see a proof of concept >>>> of using selinux to protect access to specific heaps. > >>> Aren't Unix permissions enough with separate files or am I >>> misunderstanding what you're looking to see a proof of concept for? > >> The goal is to be able to restrict heap access to certain services >> and selinux groups on Android so straight unix permissions aren't >> sufficient. > > Oh, there's Android users for this? The users I was aware of were > non-Android. Though even so I'd have thought that given that SELinux is > a superset of Unix file permissions it ought to be sufficient to be able > to use them. I'd been thinking people were suggesting SELinux as a > replacement for file permissions, using the single file and the greater > capabilities of SELinux. > Unix file permissions are necessary but not sufficient, they can be used separately. Mostly what I want to see before merging this is an example that splitting the Ion heaps provides more protection than just keeping /dev/ion. Thanks, Laura From 1580861310552369841@xxx Tue Oct 10 09:13:49 +0000 2017 X-GM-THRID: 1579699119100728687 X-Gmail-Labels: Inbox,Category Forums