Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp393819pxx; Mon, 26 Oct 2020 10:53:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz77ChqR3Q/ZGLy7/ZC0AbGShhcOtAo3oJAJYHZUOitg/8dy/LmITywH/K4ede7wzBHMWnr X-Received: by 2002:a17:906:3ada:: with SMTP id z26mr16359126ejd.151.1603734827966; Mon, 26 Oct 2020 10:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603734827; cv=none; d=google.com; s=arc-20160816; b=wR+rAE711Ae2wuDfAYUUetDaM15S5qg3x2ciVgi09wZzgWbH1XFn+5N61ZWQIRdZpb gOt0oTiIjnOoHoMsOSGPjxyrVpd7tC1q95Fv7IE+PoIgjgd1LBg11J2a4qkKP+VMHS5+ SCz+bcm/fVTeXVi+MTGQ6ceCnOJHYUQ8IaiA0Xmpxk+SDUCnBC2Gf5CiVcQabdKAnoJi eYZ26lyN+5i85h/f6J/by1Z15BL+ETjYHO7jkBGggVwLcMdgIn4ulIYHfQBYgmH1OFvV cXeUNV9Yz85gUeK/uvAid49qqV0xGZKMZdDvW2nmID3Qp947EthSaRqNxzWGorYPLLzn z+2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=+62REvLl90oSoyuDks7xdfiXCVRonn7cl65cbO1ln/E=; b=h3th6g3eNT+0f/DZg7ccVI5UaNcPbgFnZ0clpTR3saaB+XK7jQ+1rVixoO/m3qgs9z 7LETqFvqkvDX5ysVsUYlS3JkZuCb45MbdzIyAwnBYuNryxKeqFrW/2H65FYSupF60BfJ z3sUIRs++BudOmhYb2A+E27n99/Gap8cHS/7x/5rDQUUZDhtnzpcaTgQuNwgEBpOQ6Va MaHF4B72tiARqj26Zjq+cfOtlTJ5BLflAF0jN5V4t6W9RRXyQdLpcpif7h5H9eyi8Sjs f3B0XnXs7jNdPahvFOpYoRGIg5+/WPQ6kjWVcCRcYRipKyPPuJtEQTezaoAtDUBmHonR Ersg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JnQ0MIpC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si6558959edj.323.2020.10.26.10.53.19; Mon, 26 Oct 2020 10:53:47 -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=@gmail.com header.s=20161025 header.b=JnQ0MIpC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1781519AbgJZOan (ORCPT + 99 others); Mon, 26 Oct 2020 10:30:43 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43911 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1781510AbgJZOan (ORCPT ); Mon, 26 Oct 2020 10:30:43 -0400 Received: by mail-ot1-f65.google.com with SMTP id k68so8129752otk.10; Mon, 26 Oct 2020 07:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=+62REvLl90oSoyuDks7xdfiXCVRonn7cl65cbO1ln/E=; b=JnQ0MIpC39NGj7T4hBFlbdnbI8BIWOudxMb9DwRB+2vErYWqGaeDk6rew3qbtnq6zE xTQK3COatM2HRhx7Xj9lHlrGrcm71hnK8BNlqHvJIskesC/YoT/AlMOcjB5nyYP/qEr5 nGqst5eVhCd7URgCMzm/Z1ajkuwlpxD5SqPAKMFSs8E/vhjMV8gwqMpNkgRp9Bp6Xpn4 RRyiGkWI03aSsA5qqbLzT5bAviyyV57u+uzzZa6LYP23zz1MUbbGQTIEtIrCFOljySFY 9LUzk5kBx9rPqA30qiWylDiDgAPXMjP9b5T3y/ZQo5jB7TcU7uUb3usgvmVod9XA6i/4 aeSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=+62REvLl90oSoyuDks7xdfiXCVRonn7cl65cbO1ln/E=; b=iMxpJoL3xGlJWe9fCAkw24Z183mbIYd+7RyuQdsh6cPdOspTKXn1hCDi2vp1rWUyAy e8rd8yiNDtMp9Df9KMNJxunQ02g2ONkTN3e/fkhMG37Td8RL/0sGY9BUj+n6gbKy6EGl z7A2cDAO5+Dm2la8NgQK6WvHN3lTDG76+x+kPlNeaQ1HcK7ooPXvFKRItsgE2wGGlpFw 20HpOGYoE2acRxVruARID/EaZKvxBA8AJyWytISZpmq767jNGUeKuJw4w7tmU1cFD4uU 69RxQO50mFc+rw/y/iSHtPW3OVeyN8V80ft5/EKgXxLbacJQrFxaeSpVkTQnKL+ilRKC iLIw== X-Gm-Message-State: AOAM5316PNo3JKV79GREk3Sr8ZPa2mzYVfqSbC2UcN9L/at3LWAeD4qI AAtCm+MNej5yse5c58OWJRtw4CpFcq3Dz5T5ZuPLhkfL4gI= X-Received: by 2002:a05:6830:22eb:: with SMTP id t11mr13557647otc.114.1603722641926; Mon, 26 Oct 2020 07:30:41 -0700 (PDT) MIME-Version: 1.0 References: <63598b4f-6ce3-5a11-4552-cdfe308f68e4@gmail.com> <20201026135418.GN1884107@cisco> In-Reply-To: <20201026135418.GN1884107@cisco> Reply-To: mtk.manpages@gmail.com From: "Michael Kerrisk (man-pages)" Date: Mon, 26 Oct 2020 15:30:29 +0100 Message-ID: Subject: Re: For review: seccomp_user_notif(2) manual page [v2] To: Tycho Andersen 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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...) 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?" Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/