From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1432843577.9873.1.camel@redhat.com> Subject: Re: [PATCH] devpts: Add ptmx_uid and ptmx_gid options From: Alexander Larsson To: "Eric W. Biederman" Cc: Andy Lutomirski , James Bottomley , gnome-os-list@gnome.org, Linux Containers , "linux-kernel@vger.kernel.org" , mclasen@redhat.com, Linux FS Devel Date: Thu, 28 May 2015 22:06:17 +0200 In-Reply-To: <87mw0omxp0.fsf@x220.int.ebiederm.org> References: <1427447013.2250.9.camel@HansenPartnership.com> <1427788642.4411.12.camel@redhat.com> <1427807248.2117.117.camel@HansenPartnership.com> <1427808184.2117.122.camel@HansenPartnership.com> <1427810118.2117.126.camel@HansenPartnership.com> <1427810886.2117.129.camel@HansenPartnership.com> <1427811444.4411.20.camel@redhat.com> <1427969525.3559.120.camel@HansenPartnership.com> <1427984969.13651.11.camel@redhat.com> <87zj6qs7v8.fsf@x220.int.ebiederm.org> <87oal4odne.fsf@x220.int.ebiederm.org> <1432832511.21304.6.camel@redhat.com> <87mw0omxp0.fsf@x220.int.ebiederm.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: On Thu, 2015-05-28 at 12:14 -0500, Eric W. Biederman wrote: > > > Where does the second namespace enter into this? > > Step a. Create create a user namespace where uid 0 is mapped to your > real uid, and set up your sandbox (aka mount /dev/pts and everything > else). > > Step b. Create a nested user namespace where your uid is identity > mapped and run your desktop application. You can even drop all caps > in > your namespace. Just tried this. Its not the nicest, and it doubles the number of namespaces in action for each sandbox, but it does work.