Received: by 10.223.164.221 with SMTP id h29csp3519509wrb; Wed, 4 Oct 2017 03:18:25 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCoEx23mDs7aHZBTfnvP52It1zX+yVYbSHUj5I9LS0N4cjPv7t2BVOEDyhlvio9/mZQGA47 X-Received: by 10.98.152.209 with SMTP id d78mr19775896pfk.58.1507112304956; Wed, 04 Oct 2017 03:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507112304; cv=none; d=google.com; s=arc-20160816; b=FT1gA8XT26VlXNPfi+Az5+5KUILVoJkwnBMNLWZyNfuMNLCQt7PWkzyQ54yoLTeypL rh6cJmGdZpdwM2XoGtNn3SI78jZ08SvRLGllHPcot/krE+38Z3XXWXlfuDzeDeQwnY1i wiHzjQ/Xl7ypzORaRlJQ89rhD1VqeaT84fUm1Piv+lsu4uXFvb3BtioZpCWxKAjvZ/0E WbxOtM4FeGmPUpnRJd2ZLmp+O9FhE1YaBfJ6or+abP6kJw9X8PVEAu7sYj11kKMmAcVc wQGPy/jVJsOwGLUdLHMuUAkIWcUeiwqtEeXlcgmx0huvK96kNsQuyLj4twg3VCt8uutU pX6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Nx7RPEP2ftUgWjv28+Z+1kauDSysjwIpxIrpGfii7to=; b=S8fKl4O0Stdob4kJ6R6SOZkLeHN8Y567ei6BYFb2k9g3x1pndFBJXzwh6psaN4GP72 HclRf5PBrsp/olX4IMn4CQT+6MSpYNJzglhs3Lz+qrajJTXvFLhLFXQGEg45N8YWXwix 93u0NHbMdvaMDDMYI25Q1LUO/x/dhl3vEr+chjiQNjicHAbT6UAy50woA6mIp5+jbelp gtZP0U6nUWicmzhF2KOXMdXQAb89wzDLb1QhQs9aFSDZQoQQ4F1BxzKlUQ4L1+zYKiPN qNbeCc84RSVTNVJq2evr67acUw50PaIkxbWpyGp55ffUTdCjU7uuf6FpoElv09anLQkK 0EJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=arJfZ/mN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si11483069pfk.347.2017.10.04.03.18.10; Wed, 04 Oct 2017 03:18:24 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=arJfZ/mN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751469AbdJDKRf (ORCPT + 99 others); Wed, 4 Oct 2017 06:17:35 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:35908 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdJDKRd (ORCPT ); Wed, 4 Oct 2017 06:17:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Nx7RPEP2ftUgWjv28+Z+1kauDSysjwIpxIrpGfii7to=; b=arJfZ/mN+jXONkCI4d4IWE/AD 31gS31NaR6tf7WuA4xEygnyewYZSR0UVEnd8zMIGnW+BK2T2zO1e6cpsbzmxLJj3xYTYjRjopVZT7 lRIv1z6Oe+8u85qcgqTEk5gmCw+Epa8grBqmcDpr2kesJQdypYzBmkHZVXfUSGnbYzhsg=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dzgjy-0006QI-CA; Wed, 04 Oct 2017 10:17:22 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1dzgjw-0001qr-EV; Wed, 04 Oct 2017 11:17:20 +0100 Date: Wed, 4 Oct 2017 11:17:20 +0100 From: Mark Brown To: Sandeep Patil Cc: Laura Abbott , devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, arve@android.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, riandrews@android.com, Benjamin Gaignard , linux-api@vger.kernel.org, sumit.semwal@linaro.org, dan.carpenter@oracle.com Subject: Re: [PATCH v5 2/2] staging: ion: create one device entry per heap Message-ID: <20171004101720.ob5f467tro7agpcz@sirena.co.uk> References: <1506518409-16887-1-git-send-email-benjamin.gaignard@linaro.org> <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="exh2ffqqp2s7yg46" Content-Disposition: inline In-Reply-To: <20171003230830.GA132839@sspatil-desktop.mtv.corp.google.com> X-Cookie: Body by Nautilus, Brain by Mattel. User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --exh2ffqqp2s7yg46 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 03, 2017 at 04:08:30PM -0700, Sandeep Patil wrote: > It is entirely possible and easy in android/ueventd to create those nodes > under "/dev/ion/". (assuming the heap 'subsystem' for these new devices will > point to 'ion'). The reason I didn't say /dev/ion/foo initially is that if people want to keep the existing /dev/ion around for compatibility reasons then the /dev/ion name isn't available which might cause issues. Otherwise just dumping everything under a directory (perhaps with a different name) was my first thought as well. > (Also FWIW, the SELinux permissions are also possible with the current ion > implementation by adding rules to disallow specific ioctls instead of adding > permissions to access device node as this change would do) AIUI the request is to limit access to specific heaps, and obviously not everyone wants to deal with SELinux at all. --exh2ffqqp2s7yg46 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlnUtS8ACgkQJNaLcl1U h9CgIQf/Y1PSlNGnz7Bx3jLxyK9RIsm7WLjJIpRvt9AOqr1OawEQCj08kCtIli7A sjaM9f/v2xozvoszlVABBqnwVlFcq3LWoxkCCN0Uzph2wwzlWvEIQOc1aqa72oyu YJ6S5w4faqcXbWlGcz30wZwMjMrKRL/jbKsGB60I1P0IH76CDafbFzssqBt9EZLW CwjSZNC6KMZ/PiGJHowtYFEQcSAyPGBDqWff/0L37/WhCkQqcSRAaxrI090o0lmD MIOcA2iq4yDDDkh0YRhabqhD4PT84AsQr6deYzogHvggzMJMqMaY7RrR6EPlAy5o 9D/X6EXvBP46f3NZlOhkpn49YtrNTg== =gJ2L -----END PGP SIGNATURE----- --exh2ffqqp2s7yg46-- From 1580281569757965509@xxx Tue Oct 03 23:39:05 +0000 2017 X-GM-THRID: 1579699119100728687 X-Gmail-Labels: Inbox,Category Forums