Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3006111imu; Mon, 19 Nov 2018 09:15:35 -0800 (PST) X-Google-Smtp-Source: AJdET5eUmkoDQSdURG9TzwcVXoCFaqVrt7GeYLmfd1uQUPq3K04O+1ILHzgwB7ajMs5zQxTTTUUS X-Received: by 2002:a62:7652:: with SMTP id r79mr23648534pfc.241.1542647735019; Mon, 19 Nov 2018 09:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647734; cv=none; d=google.com; s=arc-20160816; b=k3mK52KA5x1rNhumyV9AfFhxnhJOxNHqNEtdWrL/89vTPyKmAJWkcqcDxwQx3Nfitz tNrmTUhlTuuHj2Ii3QDzk+tOTGkCS+5nRsJeXqRdT7mbE7LIkWg9cOPsRA25M0uhvq1g IgzwQ66iVPxA1yhQGWd9a3yHVZfzugz49J3EUjgVC1qqZUejhoMHJfA/JscEJRrZIKDf x4c5trvkfbLiIJ/ef5i9hvhn9psVbtD2LOCOB69X/QhNTVFqdrT+z8opyxmktVy/5Hoi mv8WQCT5SzjqUDvzaiz2kbok5vZGuI5+zLhJTRpAVi5YxbX/if74RMc2aRET3Bot1Hd5 en3Q== 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=iorSCpK6/OdLRishw25YbSwhNNBxqZ8VRsSjlpMrlAU=; b=QRANsy1kb9Tv0oZdC8KFzIUITzZTQSbiY0c965JMbhYX1u/KqkwsuV83r5dAvKZ7vG dFHsjtf8wkkjOj9GuVtkHYEVfIy11KfMhJlWghuvakXpH9HCpWwZuFQwz6IA3+Jsh6q/ kQD+8aaJbmTR6EpdUEuBzH2h865NHMxIvY5JKs4sMIxOsygsa+d1u8TPPpZqe05wf0BZ BPEIX7W5sT42G/zUmo9CR3FZnNIBz60s94pxmRY9vgZyAiMcp60BZVLjBKhuVgNIuuxw kQA0CbHAIZo4xwUWFNp3fWWC5rfn4cM1PjR1ZzvfuNlCFLhrOD/raCuI4C62cIk752xZ rq6g== 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 g25si18268266pgm.14.2018.11.19.09.15.17; Mon, 19 Nov 2018 09:15:34 -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 S2406703AbeKTDiM (ORCPT + 99 others); Mon, 19 Nov 2018 22:38:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50610 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406333AbeKTDiM (ORCPT ); Mon, 19 Nov 2018 22:38:12 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2128E80495; Mon, 19 Nov 2018 17:13:52 +0000 (UTC) Received: from asgard.redhat.com (ovpn-200-30.brq.redhat.com [10.40.200.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3CC2860C67; Mon, 19 Nov 2018 17:13:42 +0000 (UTC) Date: Mon, 19 Nov 2018 18:14:04 +0100 From: Eugene Syromiatnikov To: Christian Brauner Cc: ebiederm@xmission.com, linux-kernel@vger.kernel.org, serge@hallyn.com, jannh@google.com, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com, cyphar@cyphar.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, dancol@google.com, timmurray@google.com, linux-man@vger.kernel.org, Kees Cook Subject: Re: [PATCH v1 2/2] signal: add procfd_signal() syscall Message-ID: <20181119171404.GB28067@asgard.redhat.com> References: <20181119103241.5229-1-christian@brauner.io> <20181119103241.5229-3-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181119103241.5229-3-christian@brauner.io> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 19 Nov 2018 17:13:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 11:32:39AM +0100, Christian Brauner wrote: > +/** > + * sys_procfd_signal - send a signal to a process through a process file > + * descriptor > + * @fd: the file descriptor of the process > + * @sig: signal to be sent > + * @info: the signal info > + * @flags: future flags to be passed > + */ > +SYSCALL_DEFINE4(procfd_signal, int, fd, int, sig, siginfo_t __user *, info, > + int, flags) It could be considered better to use an unsigned type for the "flags" argument.