Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752975AbcGUPCA (ORCPT ); Thu, 21 Jul 2016 11:02:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:60661 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbcGUPB6 (ORCPT ); Thu, 21 Jul 2016 11:01:58 -0400 Subject: Re: [PATCH v1 3/3] cgroup: relax common ancestor restriction for direct descendants To: Tejun Heo , James Bottomley References: <20160718161816.13040-1-asarai@suse.de> <20160718161816.13040-4-asarai@suse.de> <20160720155147.GG4574@htj.duckdns.org> <6e975d80-4077-fb8b-ec84-708e37c8e149@suse.de> <20160720230228.GA19588@mtj.duckdns.org> <982fcf3a-3685-9bd7-dd95-7bff255c9421@suse.de> <20160720231949.GB19588@mtj.duckdns.org> <379e5b13-29d4-ca75-1935-0a64f3db8d27@suse.de> <20160721143330.GA5751@mail.hallyn.com> <1469112709.2331.11.camel@HansenPartnership.com> <20160721145905.GC22680@htj.duckdns.org> Cc: "Serge E. Hallyn" , Greg Kroah-Hartman , Li Zefan , Johannes Weiner , "Serge E. Hallyn" , Aditya Kali , Chris Wilson , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Christian Brauner , dev@opencontainers.org From: Aleksa Sarai Message-ID: <4bc13b20-9e8f-f43c-27aa-df5ec981762e@suse.de> Date: Fri, 22 Jul 2016 01:07:13 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160721145905.GC22680@htj.duckdns.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> I have heard >> >> * it would give power to move other tasks to more rigid constraints. >> To which the answer is only to allow movememnt of tasks in the >> current cgroupns >> * It violates the permissions delegation model. This one doesn't >> really make too much sense to me: in the same way the userns is root >> in its own domain, cgroups ns is effective root for the restricted >> cgroups (and only for processes within its ns). >> >> Perhaps the question should be asked the other way around: if we were >> explicitly delegating permission to every user in the system to set up >> their own sub cgroups, how would you advise it be done? > > Coordinate in userspace. Request whatever is managing the cgroup > hierarchy to set up delegation. It's not like permission model is > fully contained in kernel on modern systems anyway. My experience with certain systemdaemons' cgroup handling doesn't inspire confidence :/ (from the runC side, we've had nothing but issues). Also, how do you even boot into a cgroupv2 system with systemd (I started backporting patches to openSUSE, but it's still not booting)? -- Aleksa Sarai Software Engineer (Containers) SUSE Linux GmbH https://www.cyphar.com/