Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp565578yba; Sat, 20 Apr 2019 08:32:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSJm6Qq/5hc1BwI29c0Q0nBgaxnmhez+F3lj94d56Hc8BfgAltc3hL86Cew80qMRZjpQuZ X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr7640393plm.122.1555774358987; Sat, 20 Apr 2019 08:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555774358; cv=none; d=google.com; s=arc-20160816; b=G9oaEa3es5erquKraGryTrg9UsgBOE92Oqh4pele7kPfdpSxI7kdNIl08k43rGQqqD cYKINnkftW86SCxLhwDvAAvT+ghkXl5zuR1/wvbIXR/1N+RmpIo46VEVSJzXsxr/CS/R Z/m/F1Dz6ra++Go+vi3MC8yvaFbS/VsmdSixyYTE5akfZK4BCYk/BcNbSZSRwKdC5d0f NnocrFVIQI9lMsbm9bryONqoOkrJkpkLgssQNP+lNc7lq4c9++oWuhjbsvSVi/0AQqfg 1wGZc+YLWUAzwxrJKzvWzzy6BABdZK8lEmsiFyQR/18s4Z608+gKwtRgLxgox4XLb7n3 uNWw== 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; bh=NRZSBE40wLo7y9EI+9PXE3x1TixxEltZZpHFw/R2h64=; b=UdsYHuuTPp3dsZ8pstW6sZiN0zKRg6dOYhpKPt/sNe6kPFnvcGkiddAeOeNZ7gIHaw ljXJmuPcq9lWB+pL3TXkcidqej00L4tsmzY5ysvupwi61CX0IjsCToYlJXWB1kZlIL2G ZY4HsF/z9iS6QVoUXuZ1BxQG83UWwjfOMIX00hANhFrpgn27oj5OhSTxZEBsbU4ZdYna VQhZzRRN4kNX6/czOGBg5Yd6Qg4DfFtkwzZQv7siAdQBJ/zhxyazaKPrB4ZPQqw0opLp naAm3kWWEkNmAYOZMIDUOb8y5P3Nqf9mJjjoZRYoiQhAdoLoJD89gKhO59oAtPm5Z4mx X6Gw== ARC-Authentication-Results: i=1; mx.google.com; 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 68si8292077plc.356.2019.04.20.08.31.47; Sat, 20 Apr 2019 08:32:38 -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; 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 S1727595AbfDTP3N (ORCPT + 99 others); Sat, 20 Apr 2019 11:29:13 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:43834 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbfDTP3N (ORCPT ); Sat, 20 Apr 2019 11:29:13 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hHrvD-0007Ag-LO; Sat, 20 Apr 2019 15:28:55 +0000 Date: Sat, 20 Apr 2019 16:28:55 +0100 From: Al Viro To: Andy Lutomirski Cc: Aleksa Sarai , "Enrico Weigelt, metux IT consult" , Christian Brauner , Linus Torvalds , Jann Horn , David Howells , Linux API , LKML , "Serge E. Hallyn" , Arnd Bergmann , "Eric W. Biederman" , Kees Cook , Thomas Gleixner , Michael Kerrisk , Andrew Morton , Oleg Nesterov , Joel Fernandes , Daniel Colascione Subject: Re: RFC: on adding new CLONE_* flags [WAS Re: [PATCH 0/4] clone: add CLONE_PIDFD] Message-ID: <20190420152855.GG2217@ZenIV.linux.org.uk> References: <20190414201436.19502-1-christian@brauner.io> <20190415195911.z7b7miwsj67ha54y@yavin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 01:29:23PM -0700, Andy Lutomirski wrote: > Anyway, clone(2) is an enormous mess. Surely the right solution here > is to have a whole new process creation API that takes a big, > extensible struct as an argument, and supports *at least* the full > abilities of posix_spawn() and ideally covers all the use cases for > fork() + do stuff + exec(). It would be nifty if this API also had a > way to say "add no_new_privs and therefore enable extra functionality > that doesn't work without no_new_privs". This functionality would > include things like returning a future extra-privileged pidfd that > gives ptrace-like access. You had been two weeks too late with that, and a bit too obvious with the use of "surely" too close to the beginning... If it was _not_ a belated AFD posting, alt.tasteless is over -> that way...