Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11064520imu; Thu, 6 Dec 2018 10:58:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/VKmTe+fUvlpkkV3ET9e9oITIU4RCyfb3E+z3MZGosWgtSFb2hUuhx0gtglzEz2Skhunsag X-Received: by 2002:a17:902:2a0a:: with SMTP id i10mr28806619plb.323.1544122681907; Thu, 06 Dec 2018 10:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544122681; cv=none; d=google.com; s=arc-20160816; b=z6R23r8XBystzGjlxb7dzHwpxJ6kzKLtyVrt6KQMTCjJJjN2Qni+xzW03ukJ76u1EP 16JCDx+QmQtspXd61TsRf970LHiexD12TFTyK6F91nlE6B6PbhWhtmgyvDR+WH0MJLwp QsFOxNBisvNepkH3YQ91PWCgu57K9jOaPsiS8Rk0JrIgX3BXvjzXFYXqAEQ5rHZScTFS 0EnRhHroziFAOZoHDk2jN4NIyjfWGHlx0sih3cORph+KkV9eKGfudhod3MXUulf1zQ8k mqbEzPwHOXmcBNT9sNwrMS1t/MYLhieW8Nae6drPgoXs8PCvnfBMS7DcqTtrq8PHQFnF kjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=GovNJVxQOUda63BsjssK0YZRqoZy+gjgJRWedDEJO4c=; b=MO3vbtAziFsPBiilT3LKnyD2jpgBufi8LExNJBSsUHO8q9CASDKnu5vo4WILYnGZ6M jrrnlxlBkNGm3o7DytdEuTfO38vtlGydK6UIxkbI2YPqEPdB+Fak4SNUR79pmJHr2AOG 7zIMfM8ZJl5d3HJwg+aFYL5c2hcTo6QMp3OWtj8nJP9iJ+il1lZ4LsVuVvSksLU0RR5+ 45Z4xC54YOs7r/N0AoTnyMnCnb/qTGSQM2ExIGXowUakxkD+aucaLFbr3S7RazRwJDoo uq/FEJZjdn2VVWy+8SHS1QekCMWAkD++RTQPF81rLTNmU3XWfhzLA6uhoUVu4wFXEhR4 K0Ig== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14si773684pgh.39.2018.12.06.10.57.46; Thu, 06 Dec 2018 10:58:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726013AbeLFS4y convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Dec 2018 13:56:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46616 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbeLFS4y (ORCPT ); Thu, 6 Dec 2018 13:56:54 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9E59D31500AE; Thu, 6 Dec 2018 18:56:53 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-106.ams2.redhat.com [10.36.116.106]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4807E19C7F; Thu, 6 Dec 2018 18:56:46 +0000 (UTC) From: Florian Weimer To: Andy Lutomirski Cc: Christian Brauner , "Eric W. Biederman" , LKML , "Serge E. Hallyn" , Jann Horn , Andrew Morton , Oleg Nesterov , Aleksa Sarai , Al Viro , Linux FS Devel , Linux API , Daniel Colascione , Tim Murray , linux-man , Kees Cook Subject: Re: [PATCH v2] signal: add procfd_signal() syscall References: <20181120105124.14733-1-christian@brauner.io> <87in0g5aqo.fsf@oldenburg.str.redhat.com> <746B7C49-CC7B-4040-A7EF-82491796D360@brauner.io> <20181202100304.labt63mzrlr5utdl@brauner.io> <8736rebl9s.fsf@oldenburg.str.redhat.com> <20181203180224.fkvw4kajtbvru2ku@brauner.io> <874lbtjvtd.fsf@oldenburg2.str.redhat.com> Date: Thu, 06 Dec 2018 19:56:44 +0100 In-Reply-To: (Andy Lutomirski's message of "Thu, 6 Dec 2018 10:54:02 -0800") Message-ID: <87y392h4b7.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 06 Dec 2018 18:56:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski: >> I suppose that's fine. Or alternatively, when thread group support is >> added, introduce a flag that applications have to use to enable it, so >> that they can probe for support by checking support for the flag. >> >> I wouldn't be opposed to a new system call like this either: >> >> int procfd_open (pid_t thread_group, pid_t thread_id, unsigned flags); >> >> But I think this is frowned upon on the kernel side. > > I have no problem with it, except that I think it shouldn’t return an > fd that can be used for proc filesystem access. Oh no, my intention was that it would just be used with *_send_signal and related functions. Thanks, Florian