Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp536182pxx; Mon, 26 Oct 2020 14:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxE6fTtwxSJB22Xam5mD8tRThGji+lTltCToZkH3dgd4i5XUQbRJbURWjy5jGH8MZr8KAdV X-Received: by 2002:a17:906:1a19:: with SMTP id i25mr17226282ejf.323.1603748081030; Mon, 26 Oct 2020 14:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603748081; cv=none; d=google.com; s=arc-20160816; b=k6avNtOzD2LUG5JJNCMWlLPw05gMQ4kvLSDmrc9fMNjCz4cmw5u2/JEg9RNXrFA8I/ 0iYL2aN4urFHqUV30LlBa/QNum1rFmNHrscPKnmch6IAPWyQPtwX4X3dJabbwH8NCtAy 13tcpV7gS96cQVuLIlVL/+syjEisW+/gMUDFrnLDMx6YRPFPO/s0Z5QfPHPSuRSG3mMi lUUbAXLoRdjs3yODdLwqISTt+4mxHiaLODAJT5EqnvoOErPpVqXWONFiAPKEdWCoFr04 Zifa3+uGMplIiUwFZFZjF34jE3Bqs9jAxoGYVwJYHo97wezcxPL+hBLDJSSrrNlmBdS1 Et1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=64+TAaOwh1IPJrs0ew/aA4+odj325YN8/5rfD/oYrDM=; b=0LltM/cXeA6RcMK5c3ExRTafVm8rE1S6bw8kkp083l3m4tAWMm+fIF5EF900KTCQgG K1oRAKPjUxhqNNtwZs0uMteBKxFznzqJXeluZYl+he39qErTvT0g78aENZKyavzF5cXk YVTnHH1gAWuWWOtjdae8dwL5HGG5407UhpJiM83SAuJrNoHO1cKMm+dk+HQegA+HbGpU wIT5e0/E5ZbGsghYscZdqzNU0N3DV24Rn6SQwAB36IqYsOgel4JfFOTXnF8E1TaT2uFA 9y0XrrqnC4irtUv2gktJiYiZL/qs5qigf9942CBFomW4xorlgekmWfvOYZwQH0oD6MJc qVPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm1 header.b=LT8cpr5K; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=NEUcPj6X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si7815942edy.220.2020.10.26.14.34.19; Mon, 26 Oct 2020 14:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm1 header.b=LT8cpr5K; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=NEUcPj6X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1786299AbgJZQmv (ORCPT + 99 others); Mon, 26 Oct 2020 12:42:51 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:41297 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1780057AbgJZQgH (ORCPT ); Mon, 26 Oct 2020 12:36:07 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 2244A580146; Mon, 26 Oct 2020 10:32:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 26 Oct 2020 10:32:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=64+TAaOwh1IPJrs0ew/aA4+odj3 25YN8/5rfD/oYrDM=; b=LT8cpr5Kh6K0Ro6/cKplrnfXH3isKEpTudX+6zrtaMH rLT6ENT8D6m5Ls3tAEPHkIGxwjzxn+c6bOsRXMcUR1Zn867zOOI1EG22nItmsh1J 8t6NamCrambbUlKLR+xYCCHHeIVfz6FBhleOZgrp5FiDxjn+ogGl+3lPVOs4SSqC f+uiWMyXYlmuFtaYnTUIOLYITt1twmTNLJZ+jDoobhr0H4jKXL8llE57tYGQltqK umeGNV2KvX/WGZ1IBRKhHIQDX7/IyKKARLOV8/AZtmBnkatzOKo/ZZliu0jFhlFH ArQH7A7KodlOewJHxRul/sx1zmvT3frTgVE9/iNB5gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=64+TAa Owh1IPJrs0ew/aA4+odj325YN8/5rfD/oYrDM=; b=NEUcPj6XHhh3kOzAu3ag/s nPNkkMGeXt5W27d2BLHGXr0MkuBotIoRp1sLCzdvw/bjOTkUeVcwV0J1LVyYpaAa Rc98WepKd+XaG2XU9w3WumMNLY7FnqmY7J0O2Xx1vKKODqNnDh3VTP/UU2HDRotL 9Nr8mSDPj5pFccM2hXmj8JDYqANVK9V3ck4o9yPTAzKx3ZCcHTxFgy7qGnpd3BJs LRZouGJw9Y642r/7eMLyLcECaAD7MipxSQeqQT5rJIhcopR33yLDXW3BzsiZ6u95 vPi1pU4En6jkV37PXHo1Rg190XEL0Mr0f4sooFBeK2zBnrTxs0+ePt0vKu/UKuaw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeejgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfihtghhohcu tehnuggvrhhsvghnuceothihtghhohesthihtghhohdrphhiiiiirgeqnecuggftrfgrth htvghrnhepffeukeekudejfefhjeevgeejgffhkefhffetleduvddufeekteelkeekhfef udejnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepuddvkedruddtjedrvd eguddrudejgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehthigthhhosehthigthhhordhpihiiiigr X-ME-Proxy: Received: from cisco (unknown [128.107.241.174]) by mail.messagingengine.com (Postfix) with ESMTPA id 129D53064684; Mon, 26 Oct 2020 10:32:15 -0400 (EDT) Date: Mon, 26 Oct 2020 08:32:13 -0600 From: Tycho Andersen To: "Michael Kerrisk (man-pages)" Cc: Sargun Dhillon , Christian Brauner , Kees Cook , Daniel Borkmann , Giuseppe Scrivano , Song Liu , Robert Sesek , Containers , linux-man , lkml , Aleksa Sarai , Jann Horn , Alexei Starovoitov , Will Drewry , bpf , Andy Lutomirski Subject: Re: For review: seccomp_user_notif(2) manual page [v2] Message-ID: <20201026143213.GO1884107@cisco> References: <63598b4f-6ce3-5a11-4552-cdfe308f68e4@gmail.com> <20201026135418.GN1884107@cisco> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 03:30:29PM +0100, Michael Kerrisk (man-pages) wrote: > Hi Tycho, > > Thanks for getting back to me. > > On Mon, 26 Oct 2020 at 14:54, Tycho Andersen wrote: > > > > On Mon, Oct 26, 2020 at 10:55:04AM +0100, Michael Kerrisk (man-pages) wrote: > > > Hi all (and especially Tycho and Sargun), > > > > > > Following review comments on the first draft (thanks to Jann, Kees, > > > Christian and Tycho), I've made a lot of changes to this page. > > > I've also added a few FIXMEs relating to outstanding API issues. > > > I'd like a second pass review of the page before I release it. > > > But also, this mail serves as a way of noting the outstanding API > > > issues. > > > > > > Tycho: I still have an outstanding question for you at [2]. > > > [2] https://lore.kernel.org/linux-man/8f20d586-9609-ef83-c85a-272e37e684d8@gmail.com/ > > > > I don't have that thread in my inbox any more, but I can reply here: > > no, I don't know any users of this info, but I also don't anticipate > > knowing how people will all use this feature :) > > Yes, but my questions were: > > [[ > [1] So, I think maybe I now understand what you intended with setting > POLLOUT: the notification has been received ("read") and now the > FD can be used to NOTIFY_SEND ("write") a response. Right? > > [2] If that's correct, I don't have a problem with it. I just wonder: > is it useful? IOW: are there situations where the process doing the > NOTIFY_SEND might want to test for POLLOUT because the it doesn't > know whether a NOTIFY_RECV has occurred? > ]] > > So, do I understand right in [1]? (The implication from your reply is > yes, but I want to be sure...) Yes. > For [2], my question was not about users, but *use cases*. The > question I asked myself is: why does the feature exist? Hence my > question [2] reworded: "when you designed this, did you have in mind > scenarios here the process doing the NOTIFY_SEND might need to test > for POLLOUT because it doesn't know whether a NOTIFY_RECV has > occurred?" I did not. Tycho