Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2824611imc; Wed, 13 Mar 2019 02:10:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx70zIJTDu1uu6P7JTtEm+ZqeALFr0eNMEWs+4avFiSLqV6YNb9WoGerYJi8COIt9L4EBf9 X-Received: by 2002:a62:e802:: with SMTP id c2mr42457777pfi.249.1552468253684; Wed, 13 Mar 2019 02:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552468253; cv=none; d=google.com; s=arc-20160816; b=Aq22+oXmAKYmZrNlAZYk7d+HEhDrNTMkQAKXQbMQ2wgIIJbP16TpGsnFLBSHLWpv99 F3juYIg4wktdg1ecGvXFZyUGHAA+4DV/TKt2IzcI2BsgncTBgO9PbgjB9aCRVXbfKTjM hi8Pw1V9acaijTtdn5wLbfAl+1+z+z+ekRiR9P7LPRsdV7+N99mic9yof7ijGQFczIN3 5gnlsXRhgyx19kdxk2T4t+RhiqZ1PttuMIm1ew9KV/oM/s4QQcFza89JnGhbWrDe8c9j D+u2qrmfu0ofJc17f+GNbVevIpzegZLTgdBCa1zdSARAqeM8Hoqg57GO8KcfZWW6V2dj Y5wA== 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:dkim-signature; bh=O0AtOZ8m6kHfCPYPtLjI1mxE2JzYouT0BoSnlRpuytQ=; b=SEdqRhVFOOFad2+Z3lWSvVhKvsjGNxP5+XsSIOUpq1ctxeIDlWWUkwplVmdHhKXRCu 4TON0jBp07V7dtxkc3f5/+cS1qCtUZDpzPkwsyzXnvE0ueLk9EcJTljpgCWw7wHo6yc6 27s8ecF3eqV3s39rKj8cXuOZCGJKJFCUq1zFhKb0KYLwmBGXyVXyXgmY0WtMvbFHB8OG OosFAuUmpE4Lk9cqobAHzJgSQXXZEZnLsDKDAiB/6RgQIb7lKDYAHc9vcumyJRKjwkRB uMjYITANkkKsgeXBb1VurfC/Z1uZYwbUIZZ9kF2W8TcujEub1hl+q6l6zdw7gXjCGRaV sHLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b="T/meEIt3"; 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 y18si3929999plp.357.2019.03.13.02.10.37; Wed, 13 Mar 2019 02:10:53 -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; dkim=pass header.i=@brauner.io header.s=google header.b="T/meEIt3"; 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 S1727310AbfCMJKG (ORCPT + 99 others); Wed, 13 Mar 2019 05:10:06 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:42000 "EHLO mail-ed1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbfCMJKG (ORCPT ); Wed, 13 Mar 2019 05:10:06 -0400 Received: by mail-ed1-f49.google.com with SMTP id j89so801928edb.9 for ; Wed, 13 Mar 2019 02:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=O0AtOZ8m6kHfCPYPtLjI1mxE2JzYouT0BoSnlRpuytQ=; b=T/meEIt3d4sGs+Fmlm0ieraR/9EVOOxJrrK3JK2rFIxDXLWG0pmXBmqruKyIUaTpFQ s3Xdg7tYe91mF2olskbQ5HwD6GW9SVYP+BXEno4pmw4My8kYYsd3FF2kumwbhlTcab2s F7S8GsgQ87odBD3pUesGjsVYf1HTE3ItoL/xXZtudxAURjmzTT591aWEmFt9IqySqLB2 fp7m4snFJ0sHNrLpsaTN6YQLbrdgg3LZmK7b4/pSBwdDGWsTO2OTzpqhkKznx5kE4SlL w1fhSvyz6X6DuZa+Pl24ovHzKD/AoBUwOsnJCbPSAyl6MfYZ1d/8y6liyRm3rtyy2G6I VOCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=O0AtOZ8m6kHfCPYPtLjI1mxE2JzYouT0BoSnlRpuytQ=; b=J4sM0AMM/j9RCfewl/8zW/ISB4lQSXWEwWVq9OUhw6AKHy2RyGL3uKoVPogwoX8VOe ofgR5Dr1ZSncL3GXJlbfiuKu61sn5rvBRcG9oYLP4IAM2oOtk9hqy49Q1bZVfiZcDlps nbNgFMI3+Pi4NV+yqOT/QxLQbXhIHLrTf7NgunRlIC04CKU30AL7G9QjkOZ6/0VelrzO yIwRWsYbQeRu1aQSlf107baomP9bcGsWmQDmNaYNSHNym5CCRuJck+KSrIcHe4nrVFeM X0/r/b7Yb5denzyI1/tBHZEOaTJn6TIWubE9Jd2DBLT3fqgMxjpiUSTdHnLvEbSTNEmL 6ZTg== X-Gm-Message-State: APjAAAV0Qy155d9/3n2JAsTTydDGyjAMHzvTM8dtgQSvxizrnfz4QkQM cvWsGL5O0hvZ8OOETbQVXraH3w== X-Received: by 2002:aa7:ce0d:: with SMTP id d13mr6712960edv.36.1552468204422; Wed, 13 Mar 2019 02:10:04 -0700 (PDT) Received: from brauner.io ([2a02:8109:b6c0:76e:dd26:cbb7:1dbc:50af]) by smtp.gmail.com with ESMTPSA id s6sm406144eda.90.2019.03.13.02.10.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 13 Mar 2019 02:10:03 -0700 (PDT) Date: Wed, 13 Mar 2019 10:10:03 +0100 From: Christian Brauner To: Jonathon Kowalski Cc: torvalds@linux-foundation.org, arnd@arndb.de, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linuxtronix.de Subject: Re: [GIT PULL RESEND] pidfd changes for v5.1-rc1 Message-ID: <20190313091001.6a3wzh6evpe4hxdn@brauner.io> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 13, 2019 at 05:00:57AM +0000, Jonathon Kowalski wrote: > Hi, > > Thanks for the work on this system call! I am interested in making use of it > in my process supervisor. It works pretty well and avoids the long-standing > issue of PID reuse. Thanks! The systemd folks have been quite excited about this too. > > One thing that instantly came to mind is to be able to delegate killing to > some third process depending on the confguration. However, I don't see that > permissions are attached to the open file description, but seemed to be > checked when calling pidfd_send_signal as they are with kill(2). Is there It came up during the discussion. We all preferred to have something simple and not introduce a new permission model. There's nothing necessarily blocking us from doing this in the future though. It's not off the table but out of scope for now. Thanks! Christian