Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4069392imd; Mon, 29 Oct 2018 17:32:10 -0700 (PDT) X-Google-Smtp-Source: AJdET5fcFnoveZC9UtbSmdPRKG+k80dUD2jUhOrVniousdOi5LNsjFSzpggtKG2yLYOD+hpeiM2N X-Received: by 2002:a65:620f:: with SMTP id d15-v6mr6993055pgv.120.1540859530216; Mon, 29 Oct 2018 17:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540859530; cv=none; d=google.com; s=arc-20160816; b=Ftit0Gj7/kErFGRdDDRUJll9J5NyiLhaWvYjyuW7L5JlEPjEriX9hyyG9U9+2yKcA6 nSRysLt8XEHF+CMIsiCf8/40uX9BWZmLrqvQ1cXhhxgn6vzn1T5cyhvr8EF6Yvy38+1N /Lzje5cVI2RHwpoGEcRyhW4TOELrp49D09J0H7l2dSoY81oedXCluChGmtjFMDUq8MOM 89r2mk1Evzq1WKbT2mMS7h3+XYqiEc58inrSsrmMZb1fiRn2mmdAewgSAWnC8I86Roeb 1YSkhyW85GaVf797hBeNdO+1+yx7+qdDhM17kOI+sPgqOGhPW7jG7xqgsxWnf6RYw3FD YwLA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IJFDquwh4P6+AVm2OH5/2e/UIHeSIJZiW/M3XbaDV3s=; b=JkY8GC4AAqA5smaeoBmEfbHKHyD//Tm8XvLGjyWSmIGiBydDpeVcIxOJ5KCoGtATZ1 nva8PSiiDLFQYfYJWSqSCvwR1r3Jm6ywspuCqQVpVa7wLyl9ei+PxOixFVUR9aT/CiOK a/g8GXMkA2K/LpRZicbH1fXjHwDPrSGwUMcMQzsAninDAF2z5iasliRqGhZSNw5bwL2u DM/2ofyhn2AMxb7YO/Oqnn9mAtO8HVW9Kb/K5D5aKNQ2NGKE0Yuw9wP14fNda9Qnnbip 1Wv8pqNmaHi7QeFxpq3fft6O8yl+Sd18IEOTwkvQlk2Sx1kEsC3T+ZsjYTUEwXWdeihH JRJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=q3Q2NMC6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16-v6si1829340pfd.259.2018.10.29.17.31.53; Mon, 29 Oct 2018 17:32:10 -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=@google.com header.s=20161025 header.b=q3Q2NMC6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726215AbeJ3JU4 (ORCPT + 99 others); Tue, 30 Oct 2018 05:20:56 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:38769 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbeJ3JU4 (ORCPT ); Tue, 30 Oct 2018 05:20:56 -0400 Received: by mail-ot1-f65.google.com with SMTP id f24so3725142otl.5 for ; Mon, 29 Oct 2018 17:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IJFDquwh4P6+AVm2OH5/2e/UIHeSIJZiW/M3XbaDV3s=; b=q3Q2NMC6GefBHio46GP4O6F+p1Hh/pKh+WAhOIt2Brh49dVDtkgT/4rJqhYhdzm0x/ mtAL6UF6gfDGnf5isE3vh0UXHuDSA4AKFhuWLmqkhoFd5J3Hqr4kPbwx8MYTaROEpsWL E24MXrAURiJHbYjkbUsTtYVczDvBrzJHTAWI2bePjUa1NZqfFc/ssKnmTIMsxKV4XqEw 9ksCCn6ufR4ZKpndEhPJdxRO25Tut1VlfWpdGibGgL+XQ/Em6rtBw4lyfWCh3hQvHYYU 97bMWpsP+Dc2VNVp7ilRTgwDQzGKyua8flymgzG4K0Ufslqiaa49nKVoHVLX69wE0QpZ SaUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IJFDquwh4P6+AVm2OH5/2e/UIHeSIJZiW/M3XbaDV3s=; b=HX6TUjIe3O2t1xOpuk+s4nQ8ry/unrnr5WAc9mtJaDnfOgYntwUX7pyLWp+KUolUdz xf4sWB+zclr2KZwMyxj5iKD5B5GiZBM0VTKgnkQ6DV8PCHpzmbcHgGpGQ0VILZexLhzf EzFA3u1FMpyPaczRMfU+v0VmZr7M6ahRNhqU+5U+3E+k0mmy9aDCF0aNdfLsYr/GmH41 kdkELj/EIlrU6YJSZP58UbhoWp81nSU1+M4vwf7PGKOufCodopt/hG22YNzKCKvZ4uZK En9ObiYw+N/1QNAJjPSYN3NFCUWuEmSlU46tvAI2/hGQAktcNRoIe2kGrBWQFt5p4hm+ DKqQ== X-Gm-Message-State: AGRZ1gKDirsxorp4VTdDz/rNprGG5/OTrKaBkTBKQOd9pPSRiN4qQLq9 YpTlmJcB7VAJm75/DMpVMu3VuzgmSIScMyxLV0Jfhw== X-Received: by 2002:a9d:2e53:: with SMTP id c19mr4948060otd.67.1540859386434; Mon, 29 Oct 2018 17:29:46 -0700 (PDT) MIME-Version: 1.0 References: <5FBCBE569E134E4CA167B91C0A77FD610198F6B4F6@EXMBX-SZMAIL022.tencent.com> In-Reply-To: <5FBCBE569E134E4CA167B91C0A77FD610198F6B4F6@EXMBX-SZMAIL022.tencent.com> From: Todd Kjos Date: Mon, 29 Oct 2018 17:29:34 -0700 Message-ID: Subject: Re: [PATCH] binder: ipc namespace support for android binder To: chouryzhou@tencent.com Cc: Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , akpm@linux-foundation.org, dave@stgolabs.net, LKML , "open list:ANDROID DRIVERS" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +christian@brauner.io On Sun, Oct 28, 2018 at 7:29 PM chouryzhou(=E5=91=A8=E5=A8=81) wrote: ... > > > It's not obvious from this patch where this dependency comes > > from...why is SYSVIPC required? I'd like to not have to require IPC_NS > > either for devices. > > Yes, the patch is not highly dependent on SYSVIPC, but it will be conveni= ent > if require it. I will update it to drop dependency of it in V2 patch. Thi= s patch > doesn't need IPC_NS set at present. Actually it is dependent on IPC_NS since it makes changes to ipc/namespace.c which is compiled only if CONFIG_IPC_NS. There are a couple more implementations similar to this one. https://lwn.net/Articles/577957/ and some submissions to AOSP derived from that one that introduce a generic registration function for namespace support [1], a= nd changes to binder to implement namespaces [2]. If this is really needed, then we should have a solution that works for devices without requiring IPC_NS or SYSVIPC. Also, we should not add binder-specific code t= o ipc/namespace.c or include/linux/ipc_namespace.h. -Todd [1] https://android-review.googlesource.com/c/kernel/common/+/471961 [2] https://android-review.googlesource.com/c/kernel/common/+/471825