Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1955218imu; Sun, 18 Nov 2018 12:23:36 -0800 (PST) X-Google-Smtp-Source: AJdET5fj1FVrVkI7ZySFgpqEXwq5Y4UYWxWpusHCUiis1ICIkNGBXAkFPJ08ZOQhA2Y83cYgeeM4 X-Received: by 2002:a17:902:ab83:: with SMTP id f3-v6mr18767832plr.122.1542572616732; Sun, 18 Nov 2018 12:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542572616; cv=none; d=google.com; s=arc-20160816; b=XHXl/DFMm24RT7sw8petomOGq1Lh0QDsAMAOW2g2BIJZgnHDTkKZPlS8Z2cJ2xRap0 8YQdxikAgUMQ7OiImvhL1xqsk6t9S+5M0Dc6D52FT6SH4W69ar7Raiu61Dtk2Vzf6azo qnQDyDPAS/Uf3sLvdg36zb2pzdHoP6pUjoibR0mYkMY4Ad1/uCthgzu4w8dHWhkhLw+J F4LET2zwgHuNGBQHBZF2NqUBXKIGACcyYy2buuLsbTn6O26gpuwwaoT3TXMbJwBuQynS aAb4ov4WJtkWoUbWIpIyDNcjKBVYVIByO3+xoL/tmBGlh1KIJKXz/K6vGM+Cd71+dgWl 4f+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=DGFDQgKhh1QSPF8UQGe0rotLIIhZZoECh1I7MoF7v6o=; b=b+XbJBk2CilgMNvGuqWOLFhpBcZu3LvDTj/gmAh4yUq2+vTbXMIQpCi0nf3ACy3bDt Vg/R1OqlvQtyOBW4TbQLx8jfoJMc75BhvkRxOoklcT6iUX4kw1GsYnYeoLrX3sU3NoEH NSoxCRjkW4a+JE13nyyg7HNVpmDQxqOEOIpU/SCA3cAq0vu4CvCdK4r+9OZcjHMqLZqd +2Brws8Rm9EyZ914VyzO5bf90eARpI6mOBSETBKf/ofYjtwUYlY+viicIkZDYjoEgc4N aISoMM6vzoQvV9TQ7Zu/7NVdN6UgBhvoAv0FQ2LIanFPSATQcLLPDakgmhCcuiHxjp4K PRKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Wo3uqXtn; 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 o9-v6si41006478pfe.283.2018.11.18.12.23.21; Sun, 18 Nov 2018 12:23:36 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=Wo3uqXtn; 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 S1727694AbeKSGms (ORCPT + 99 others); Mon, 19 Nov 2018 01:42:48 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:45446 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727671AbeKSGms (ORCPT ); Mon, 19 Nov 2018 01:42:48 -0500 Received: by mail-vs1-f66.google.com with SMTP id v10so9217837vsv.12 for ; Sun, 18 Nov 2018 12:21:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DGFDQgKhh1QSPF8UQGe0rotLIIhZZoECh1I7MoF7v6o=; b=Wo3uqXtn1CWKiLdfQaPdgacv7+w4aEgolG7oYeStI2vhxX8AsKXBErrdeqlfoTyKIN jC4Rta4vR2b4NZ0u42EM5A1gOigXbHKb5ENn+YPzfi8+cV95pddfxZhzmoyLL0b7r4hR XPn7TlfJfx/W6EYutmz1Ro2ZBOXBWaRWkW/emkrsWXfspGc7SiqrpDzkl6akMBb0eT8u SRYO8yqBgXuBHmmXbNsuOQ93ia7rCa5RvjD55FIAIPJqUxmk9SCw2BVbZajbE2pLeh1V jEZL7k4SywLxQCmcE3LTKsyRZ996NK6BPHy2STkXneRkSmRC+6aJ2wXD+92364hTvzjj zqCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DGFDQgKhh1QSPF8UQGe0rotLIIhZZoECh1I7MoF7v6o=; b=JwoETwEBEvt4vbYsA7T5CCfCWxT93nFCEYz1etE3qBExq//qfpsCvAKADq3fTFlxB9 ibGGpbIOwynvRO05E+6aXI6cNN3S0JkgvCKJstsu8ca6SZmukF4KBHWQ1xZkQrpFbN/L pGwMkNBrlDTqgyki5WAVzOpQE00sAfOHfYe4bHT53zSzyCSKlGFUw/BprCXH9W+eGtbB nP7vKQTZhC7W0KRU7CX3vUMe6k+sg5ZodmJY1JlX4+ZUyBMssJdLpXghj6VB/GE8yGV8 RGGV0cpUoGWrtidCdcdD4umRRznXF2HBeLM4uOLyfFW3vfQEh8MAdCcJIgbr7dgln4Yi UF5Q== X-Gm-Message-State: AGRZ1gLBR0Rm4g+edQPz8AUlEAwjBnTm1I15dK+Y2aIc1+M8Y2oIO57C bznrFc6PLB1BmOiMg/uXdZkyPm0yj+jNQh/PwG0Dcg== X-Received: by 2002:a67:105:: with SMTP id 5mr7854171vsb.183.1542572492639; Sun, 18 Nov 2018 12:21:32 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a67:f48d:0:0:0:0:0 with HTTP; Sun, 18 Nov 2018 12:21:31 -0800 (PST) In-Reply-To: <20181118201514.c5ujdjav6ccodyff@brauner.io> References: <20181118190504.ixglsqbn6mxkcdzu@yavin> <20181118201514.c5ujdjav6ccodyff@brauner.io> From: Daniel Colascione Date: Sun, 18 Nov 2018 12:21:31 -0800 Message-ID: Subject: Re: [PATCH] proc: allow killing processes via file descriptors To: Christian Brauner Cc: Aleksa Sarai , Andy Lutomirski , Randy Dunlap , "Eric W. Biederman" , LKML , "Serge E. Hallyn" , Jann Horn , Andrew Morton , Oleg Nesterov , Al Viro , Linux FS Devel , Linux API , Tim Murray , Kees Cook , Jan Engelhardt Content-Type: text/plain; charset="UTF-8" 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 12:15 PM, Christian Brauner wrote: >> That is, I'm proposing an API that looks like this: >> >> int process_kill(int procfs_dfd, int signo, const union sigval value) > > I've started a second tree with process_signal(int procpid_dfd, int sig) Thanks. > instead of an ioctl(). Why do you want sigval too? API completeness. The sigqueue interface is a superset of kill, and I don't want process_kill to do less than any PID-based kill. Maybe taking a siginfo_t, like rt_sigqueueinfo does, would be even better in that respect, come to think of it.