Received: by 10.223.164.221 with SMTP id h29csp554993wrb; Thu, 5 Oct 2017 06:07:19 -0700 (PDT) X-Received: by 10.99.60.83 with SMTP id i19mr13194088pgn.59.1507208839266; Thu, 05 Oct 2017 06:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507208839; cv=none; d=google.com; s=arc-20160816; b=BeckIDIIS71Lo4guv/QqQY/NDrJI/HlPaFT9mLsxhQI/BubYbA5LA49VMSojr05fyD /5I2qROz2eW5Bilh9PTEPRsJWWa/yOLbXyG/00Tpq4TXckDXbWJJSFYeYhpAbXHsI5nH klvZRIYzWeULklS8r0GnCgTqsTQbetW653LPYXMMVBAJ1PrBN9dee4XwHO/vEA/Yw85x igObJLFvxxmCUZdWD3/cA1rt/XI743JiQK2O62K+5sHusknYBZ4Z+VIUWzeBtsUIaqe8 uilVgmz4MdzBAEr2Zp1BMIKOF7UWpizKLextZ+NP/qQunC3BmxNBCxeiRVAs/yP3NJM6 IFpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4hxWk3cv5SIs0YcKs0hvXj5gdRa8nX2SLDi4FaA/LjM=; b=P5iuZcCoVNPWmavutO+oXK/zTKI9p/DD4++CNsD9whEIh6fe5aDLfYPX6aeINsqzUj YCr+J82AzxgO+IFDNHbRt0nQDHpZLliOG0dKo9tdeCkedKTnVkUg62mr/1uySe3MrLVb CXySfNkQnxgjNdz42Cf5qnMOFDJijatPNydSL6eHPFgbOf3VAtneabnbLFZHR0e+6T/7 lCKfQ032m2YAOJLYO/+ev47+dNDw5YWbL4RD68VDXPDK4ymb5ugvQcS+x0ioB/4rQStC RCJI8RdP4+2FFwCxO7XBF5AuekpJ3xguRCYEwmSAVkWfXvuEO7tqZyV/Y4P8M8mXCNvL 5/bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHbHJVzn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si11258491plp.763.2017.10.05.06.07.05; Thu, 05 Oct 2017 06:07:19 -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=pass header.i=@linaro.org header.s=google header.b=XHbHJVzn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751841AbdJENGR (ORCPT + 99 others); Thu, 5 Oct 2017 09:06:17 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:45208 "EHLO mail-qt0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbdJENGO (ORCPT ); Thu, 5 Oct 2017 09:06:14 -0400 Received: by mail-qt0-f180.google.com with SMTP id k1so14159381qti.2 for ; Thu, 05 Oct 2017 06:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4hxWk3cv5SIs0YcKs0hvXj5gdRa8nX2SLDi4FaA/LjM=; b=XHbHJVznCszJkKBjt8LqK6oiq/O3Wp6Nx2FL8U/Y8P9f54SXmCto3CGUoiIJQjKJ3i RnuZTSypJ968Rfq5NQhEaQG/Au55s76hsqvpnlgRnxIhqEOIrFFg6SIid4sYBCieCj+9 Wrg2Fg2ghsZM0aSpnJTnd23SKt5Tr52nU0zqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4hxWk3cv5SIs0YcKs0hvXj5gdRa8nX2SLDi4FaA/LjM=; b=rkogBQZBBTXnLXa48/tU6N6rT5Kbcfa2kpLzv90bcpHqgoUCfFjHE5bm+8a6HOcUb5 bWAUMwGJ3jab7oeEF5GDy4BL600lC2ZFDkWWjnkNkxlMdEYwLaWgJ0mroUemp6PZ+vcS dnjuXhEnobrs5R4QApSUfQEJ49JfM6b0vgq5sUWiWMAamu4qUL5tA0pGZ4zJ0BgX3mcO dIOrn1aSIltWMrNCkJ4ZxPacospiMVrP1N9JP/2L9q2f5YcEMj32l1RLpO+0wvzqqb8p 0OzZVraTsZBMqvD46gD1QJhBSaKd3gxYGA7BhteL9ivhj29aR8rBvuFL7W5yFMCIzHBk iHmw== X-Gm-Message-State: AMCzsaUt2O5pfHplNnZhG9ovl4lOhKSVd53MDdH5BV0mExVmgg5jfht8 RmYmdJGh+0lt2uQ084svKa+uMAzCMyL5FqBmXbKAqg== X-Google-Smtp-Source: AOwi7QDaX1pPuxNe1rFGwco3Utp/kyrgZNdOMaHH1ItFO6oq0nRv+mvtdoK8eAXHxT5QHalfVpSsY7IdTsbUcAKgbHE= X-Received: by 10.200.25.78 with SMTP id g14mr15448204qtk.48.1507208773571; Thu, 05 Oct 2017 06:06:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.88.80 with HTTP; Thu, 5 Oct 2017 06:06:12 -0700 (PDT) In-Reply-To: <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> <20171004101720.ob5f467tro7agpcz@sirena.co.uk> From: Benjamin Gaignard Date: Thu, 5 Oct 2017 15:06:12 +0200 Message-ID: Subject: Re: [PATCH v5 2/2] staging: ion: create one device entry per heap To: Mark Brown Cc: Sandeep Patil , Laura Abbott , driverdevel , Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Riley Andrews , linux-api@vger.kernel.org, Sumit Semwal , Dan Carpenter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-10-04 12:17 GMT+02:00 Mark Brown : > 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'). I think it is the same problem than for webcam under v4l framework. Each time you plug a webcam you got a v4l node but android/uevent rules the plug order doesn't have impact. The same think will happen for ion nodes it may be even easier because the heap will always being created in the smae order for a given product configuration. > > 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. From 1580321792013864583@xxx Wed Oct 04 10:18:24 +0000 2017 X-GM-THRID: 1579699119100728687 X-Gmail-Labels: Inbox,Category Forums