Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2224065imu; Sun, 18 Nov 2018 19:00:15 -0800 (PST) X-Google-Smtp-Source: AJdET5dLkcSOHuGwn5iyGqSvn22X000ue2GDoA0bu9vQL/UKXX7oyC/ffhyuDxMQCX7NCmFj3OK7 X-Received: by 2002:a65:4381:: with SMTP id m1mr18161314pgp.358.1542596415316; Sun, 18 Nov 2018 19:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542596415; cv=none; d=google.com; s=arc-20160816; b=cl0bv4JgeBGy/DWG+JHYpFqjU0Y53FQVi+7Kr71+S9B1WQyHVi+wCM/mSgbHzvz3rf n39ATdPrUQIoH6e8NBNU7I5y3s8nM0YKkHKpyEi1U9YSSR4O500LQdEbxDfWevDFBGRR GBsjYDM0HCYiA/rg0jLZeyOYKje7Gx4AxY0VMChbVsUpeX+f6c/MoxYKQ3ViCaIwQ9xT F6rYGnSGYc1cm4pK2E6U1BLKkPE8GQei6H592a6ULRyYuYprX6Uhyhz6BTpaiCjUCHP9 AatovA6vpO3Bpf5O2cJs8ZWwBLP2Bx+0CfFb6YT8mqobDj4WH24+DukA5H6hq4H8m6Pl 5R9w== 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=A2s4r/fd+ATjJKUJnevf3BjRDKCaNpeE/CIUxoX9CfU=; b=yaHmJObx5o/UGlwyDizBhK9Wjbz2cxlHl/48si/w/ioJiaHKOrXyoBE64vnI7pZ9Y3 aVW52wzpYGQBvfPmr+wpfEpg6KyvXClR+f0+TvinaVmAqFU5gxZ23JrywAZB0MB6S8Ki UXb7FosHmQigsKIQ4liOgv9YkkrvDN1pmteRFzRR1sMJFxZ3cZcKh1cixBNLAFxJw8uy 1xRY0lriNbpkdP4C4Dp3lJCX1nCXqxkEl1Ihv/1PNltaLf5FgqfkEM0ABzhqyOf9Mpfp fXqFaGhPaUBFfUXv6/KrMbKivnXTLEYII4Hut9a+B1k0K3CD7b6y5St4TVpvcs8HU9KT AUCg== 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 3-v6si41659253pll.361.2018.11.18.18.59.58; Sun, 18 Nov 2018 19:00:15 -0800 (PST) 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 S1728006AbeKSNJp (ORCPT + 99 others); Mon, 19 Nov 2018 08:09:45 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:51590 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeKSNJp (ORCPT ); Mon, 19 Nov 2018 08:09:45 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOZaa-00051H-Kh; Mon, 19 Nov 2018 02:47:04 +0000 Date: Mon, 19 Nov 2018 02:47:04 +0000 From: Al Viro To: Andy Lutomirski Cc: Daniel Colascione , Randy Dunlap , Christian Brauner , "Eric W. Biederman" , LKML , "Serge E. Hallyn" , Jann Horn , Andrew Morton , Oleg Nesterov , Aleksa Sarai , Linux FS Devel , Linux API , Tim Murray , Kees Cook , Jan Engelhardt Subject: Re: [PATCH] proc: allow killing processes via file descriptors Message-ID: <20181119024704.GK32577@ZenIV.linux.org.uk> References: <20181118111751.6142-1-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 18, 2018 at 09:42:35AM -0800, Andy Lutomirski wrote: > Now here's the kicker: if the "running program" calls execve(), it > goes away. The fd gets some sort of notification that this happened Type error, parser failed. Define "fd", please. If it's a "file descriptor", thank you do playing, you've lost. That's not going to work. If it's "opened file" (aka "file description" in horrible POSIXese), who's going to get notifications and what kind of exclusion are you going to use?