Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp624825imb; Fri, 1 Mar 2019 09:30:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwX70xk8cuM6cbSH+dK6kj5CWJ8I0GTf4SLiRVIkQdVNHrgA1+eedQkuE0sQswu8PjcDuAb X-Received: by 2002:a17:902:e711:: with SMTP id co17mr6449780plb.171.1551461448098; Fri, 01 Mar 2019 09:30:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551461448; cv=none; d=google.com; s=arc-20160816; b=g6CLiZMDTUya/b3HMxSJyYGb5Q9uJQTk4qBrra74LxzLU/BU6KtXO+lkj5G0ieDI4g 3ixOeM2iz9sYtDIMHuiLzOcXGZVG1wV04a40O8EtYJzDa+OKpQrRSmvG2OM0WhWteUqo rXMw7NUB19xTTgifC+AcZ2Ml1XYAhDe5dXRAcbUwyJnavFLEDKv9m4TZUIDr2BvNLrZG ckzDylaF85CWYv9R/xU/MegpdHdWd26JB+Niu7Ttrf6Y67DMOViIwaoEEkh7AfUn+wDT niEl9Uihsw3LK+IOhuHrubAKhaIigPRf89otCSdB8SJ8M3YAr+Qdb3LNemzWqNNZSccw fb4A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=9kcnOCfI78glGSw7tQuJgFxcnNqgYzSbsdWUFrOfOhA=; b=zb3yScaH/O39DZ/JNps33AGOZh8USWkQU5S9yhfVyIVKfPuHj5Rlt4pg7iN/vSVgAw sWw11s5LqM4kx5zX+LgkRMEOk0TPdg0G9AYbBzuTfWLJKlFW0AP0i20WzYEMakE3ypGf fPP8nZ9FKPX859NHHNlh6trorL1OSC6wJ9sHDGQt0kNt5S297ZKNWP/2iWZDtlsA5PzV O3uhlD65VdjErGPINFREriL/dZlfjM+EDhmTNmAvR3IdTrGxkDxDw9lec46S0iVFJnE7 xUjYrUPDconbAq57jhKdEMAr1VC/m65BtA02WSjOijyC0kfGHJxeGcN6obeScvqzNt5z NL3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kQYj6tZu; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si21103486plq.340.2019.03.01.09.30.33; Fri, 01 Mar 2019 09:30:48 -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=@gmail.com header.s=20161025 header.b=kQYj6tZu; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388416AbfCAPQc (ORCPT + 99 others); Fri, 1 Mar 2019 10:16:32 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38081 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbfCAPQb (ORCPT ); Fri, 1 Mar 2019 10:16:31 -0500 Received: by mail-wr1-f65.google.com with SMTP id g12so14203150wrm.5; Fri, 01 Mar 2019 07:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9kcnOCfI78glGSw7tQuJgFxcnNqgYzSbsdWUFrOfOhA=; b=kQYj6tZuk1xFgt/9Ja6YVpgADxtw4p7UTbyIGnsbMZiwJpGoXPCit6cFqQSEGbomBf FX/Ih4gXwUqBknxWVtno1A4WoGnd4jx+kBPi3ES0EA7ipJ+7StZ7qjfl3sSs6S0+zMlo 2/eJrwaW4/oftIk8tP1S/MTKoiz/72WqMYINwY9nCsKj2dO+T/aJbE0E5yuJ0PTL38MG NIyCRlEjWwcIPN8cJ4GzFpfIBUd84azw7i6F+56IbzycHjEQA/r+6Bd3gY+tHMTdihlB U0+cRxGQiPP16gXi12FyiaVtmZVRyklCBzsutlCxmGvAaIii4Pnh2S7SZaZ+qFZxtNJB +Z0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9kcnOCfI78glGSw7tQuJgFxcnNqgYzSbsdWUFrOfOhA=; b=fFO+hsssYrFJ884L1bC8As0TyppWBe+eoYV90+nmwKFfxWrzbEDgLBN7PTowS+exsA UFBirDt0HV1wdocfMkaMgDBrbUxFckC4yfdOr9mXOdmWwCqbuItpjsyKSmAfXKjafCpm U1NWnvXBq5pum1qrpkMDALrvcq3eAUFOKEpYn37XSce3DyGqZ8rGobopracLjTq4klDY 5IWymFo4ZxYFDV31ZrSH5Ro+hJta8mYEHlj4ka/9kujfSmcTl4VNFW8VKim/E2WM8J6E Vltr38yz3WA3wVvBSygV/yFvB8rokgx3zo1Ke3Ku4NUkJx0FqyIvwN100qWd24Pv1df/ ccRw== X-Gm-Message-State: APjAAAX909lhbiH0zrf3dTP9DVMpXGsyHdxUjXAEvBf5LcHmYHc11Wn2 Hr2EEJNIsiAFzyNMceVh9Eg= X-Received: by 2002:a5d:6843:: with SMTP id o3mr3749740wrw.165.1551453389831; Fri, 01 Mar 2019 07:16:29 -0800 (PST) Received: from [10.0.21.20] ([95.157.63.22]) by smtp.gmail.com with ESMTPSA id 93sm66240299wrh.15.2019.03.01.07.16.28 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 07:16:28 -0800 (PST) Cc: mtk.manpages@gmail.com, "Serge E. Hallyn" , linux-man@vger.kernel.org, Kees Cook , Linux API , lkml , Andy Lutomirski , Jann Horn , Oleg Nesterov , Christian Brauner , "Eric W. Biederman" , Containers , Aleksa Sarai , Tyler Hicks , Akihiro Suda Subject: Re: [PATCH 2/2] seccomp.2: document userspace notification To: Tycho Andersen References: <20181213001106.15268-1-tycho@tycho.ws> <20181213001106.15268-3-tycho@tycho.ws> <2cea5fec-e73e-5749-18af-15c35a4bd23c@gmail.com> <20190301145310.GC7413@cisco> From: "Michael Kerrisk (man-pages)" Message-ID: <052d73e2-c786-a760-f03a-a07b5772de5a@gmail.com> Date: Fri, 1 Mar 2019 16:16:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190301145310.GC7413@cisco> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Tycho, On 3/1/19 3:53 PM, Tycho Andersen wrote: > On Thu, Feb 28, 2019 at 01:52:19PM +0100, Michael Kerrisk (man-pages) wrote: >>> +a notification will be sent to this fd. See "Userspace Notification" below for >> >> s/fd/file descriptor/ throughout please. > > Will do. > >>> +more details. >> >> I think the description here could be better worded as something like: >> >> SECCOMP_FILTER_FLAG_NEW_LISTENER >> Register a new filter, as usual, but on success return a >> new file descriptor that provides user-space notifications. >> When the filter returns SECCOMP_RET_USER_NOTIF, a notification >> will be provided via this file descriptor. The close-on-exec >> flag is automatically set on the new file descriptor. ... >> >>> .RE >>> .TP >>> .BR SECCOMP_GET_ACTION_AVAIL " (since Linux 4.14)" >>> @@ -606,6 +613,17 @@ file. >>> .TP >>> .BR SECCOMP_RET_ALLOW >>> This value results in the system call being executed. >>> +.TP >>> +.BR SECCOMP_RET_USER_NOTIF " (since Linux 4.21)" >> >> Please see the start of this hanging list in the manual page. >> Can you confirm that SECCOMP_RET_USER_NOTIF really is the lowest >> in the precedence order of all of the filter return values? > > Oh, no, I didn't realize it was in a particular order. I'll switch it. Just for my immediate education (I'm experimenting right now), where/how does it fit in the precedence order? Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/