Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp871246pxk; Thu, 1 Oct 2020 16:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqpG6XeoIitle+61AqUyj6dwpVhuBi8Y3onUVvXTuSdcbVVMdf/FdfY8IPDUz8S5tl1tBA X-Received: by 2002:a17:906:1fd5:: with SMTP id e21mr11079308ejt.349.1601594707733; Thu, 01 Oct 2020 16:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601594707; cv=none; d=google.com; s=arc-20160816; b=U+O0NpqOAj56thuVnjZ4JANWTxvOONG/8BufZiH2YxIuGVuixR3Fh83JrL2mdhHrOR TP4nMU6Ej+8c7SWh/xhAAo7Vx6eqDVhUtMnSJbYmsGZSIFjgj2er/W18yCQm2VG1H6tj Gy1GLhrmePdOQON6RW+KODmLXqsKno+2rW7SOMATgv8AzHKyAwMi6Rtu3Vrcm/wDDc1H 0ahSTTS1x9ARAWIoPNR2WhgcQVQbB1Pai1BwIT3lO1U7ngI+h4mDNa2iVyzCjxX061UO IU9RcM5IoxvbMKlk2DMT3+kNroE34uSY5chZnTpS/DNg1CfWfEzbbGmAft2mjKB25hdi cAYg== 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=Tlpv2xmpynLkoXih5aMS72+SXJrnQuj1c9PDv1ck7SY=; b=CbTukVeHtlICcv7U5gW3XnVO9ZbMwIwxl0FYMyic6fioRAqxs/ncCv/uMt/KHdU1pz Ba+3ekjPPLTalDZdMkcaGG+KkzTChHuuA+LsvfmNB2l0u8Qm93Jl1TfhEM+9nxTLFNpW clFBipEWg/nQ+BWc/Xgj6lw5127oTUvK9paMjfWgormzzmrCyiMWgehjf1O6kAPManAW X/ZGzihIfXuTXW70tgMBgSqw42EgYIj8lXL6aCuHyX5RTbSH66WxhPy/INUaeRCk9AAe gAgoR0pR04g2vdUgXswJE5lbUtrpddoLY0gukEwukImXCJn0y6P4ckl6maquMiyeDryX GZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm1 header.b=kAnlT5uG; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=YrtEbGU8; 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 md20si4480580ejb.439.2020.10.01.16.24.44; Thu, 01 Oct 2020 16:25:07 -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=kAnlT5uG; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=YrtEbGU8; 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 S1733192AbgJAXVu (ORCPT + 99 others); Thu, 1 Oct 2020 19:21:50 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:57551 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727713AbgJAXT7 (ORCPT ); Thu, 1 Oct 2020 19:19:59 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id EC59BC3C; Thu, 1 Oct 2020 19:19:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 01 Oct 2020 19:19:29 -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=Tlpv2xmpynLkoXih5aMS72+SXJr nQuj1c9PDv1ck7SY=; b=kAnlT5uGdLP7ZHMd/rvKFoooU2LN0P/lAm1T9lGIii9 PlCZZtGPEs9KopNalPJ1js1pctZjbJG4+5VJZLd8xgcuUGD0lB/o+gjOI3PoE73A nSqQ8Q2QI14dzUcuv4Hwp/f4mNOKSvcc9D+iZEFSmXXjz2Ju79+QQTCRoVI59MEK 7AyZnYv/jn1FG+eg/72B5jYTQXhk6l1OG6/5PFZQ3LB1lWqU/ngZesv0afOq9ZAF CsTk9T9YJGSpNOkdPBuDpt28Y325ugCfTNwVuV9dqB78wiXr2JqhYumstJ+GmL6c qvl6DNKFjMKNoYCK6El7NsIsEq+/eBUSSNnHpQTCIYA== 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=fm3; bh=Tlpv2x mpynLkoXih5aMS72+SXJrnQuj1c9PDv1ck7SY=; b=YrtEbGU8zOV9obkWiyW83q 2/eRqrLFuyhY7NReqTCUbwQ7+FodkpbVtxmew6Som6zYQUaIomR8EYreLV8eapAm 6eqGej3Y2c/lQ3mp+GOtMZaYOZh1dKAE9GAY91Mcpu/ZE3Gbn/trgk/Eg2ckRKQ3 u9WKLIwQqFn7UaWcFpr8q1hvzwhv3AdLOOGOJkWexZtKEP/WjJJV658CIVbvgMqr YHVIMeNYI7n+WwIQSuwqsSnZutV3t1bKVzE2kH9biteKEDTnOQMzCTYYlON9leAk kN4jD+zpv0yD+uFQanaCNkUrUsXTe9pf4CMFQrYR4OzXt//2ig8vm0kiE+XhTutQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrfeehgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfihtghhohcu tehnuggvrhhsvghnuceothihtghhohesthihtghhohdrphhiiiiirgeqnecuggftrfgrth htvghrnhepffekueefveeufefhhfelieffheeludeitdelkefhieejleeiffejvdelieeg udeunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpmhgrnhejrdhorhhgnecukfhppe duvdekrddutdejrddvgedurdduieejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepthihtghhohesthihtghhohdrphhiiiiirg X-ME-Proxy: Received: from cisco (unknown [128.107.241.167]) by mail.messagingengine.com (Postfix) with ESMTPA id A1E8A3280066; Thu, 1 Oct 2020 19:19:22 -0400 (EDT) Date: Thu, 1 Oct 2020 17:19:15 -0600 From: Tycho Andersen To: Sargun Dhillon Cc: "Michael Kerrisk (man-pages)" , Kees Cook , Christian Brauner , linux-man , lkml , Aleksa Sarai , Jann Horn , Alexei Starovoitov , Will Drewry , bpf@vger.kernel.org, Song Liu , Daniel Borkmann , Andy Lutomirski , Linux Containers , Giuseppe Scrivano , Robert Sesek Subject: Re: For review: seccomp_user_notif(2) manual page Message-ID: <20201001231915.GA16219@cisco> References: <45f07f17-18b6-d187-0914-6f341fe90857@gmail.com> 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 Thu, Oct 01, 2020 at 02:06:10PM -0700, Sargun Dhillon wrote: > On Wed, Sep 30, 2020 at 4:07 AM Michael Kerrisk (man-pages) > wrote: > > > > Hi Tycho, Sargun (and all), > > > > I knew it would be a big ask, but below is kind of the manual page > > I was hoping you might write [1] for the seccomp user-space notification > > mechanism. Since you didn't (and because 5.9 adds various new pieces > > such as SECCOMP_ADDFD_FLAG_SETFD and SECCOMP_IOCTL_NOTIF_ADDFD > > that also will need documenting [2]), I did :-). But of course I may > > have made mistakes... > > > > I've shown the rendered version of the page below, and would love > > to receive review comments from you and others, and acks, etc. > > > > There are a few FIXMEs sprinkled into the page, including one > > that relates to what appears to me to be a misdesign (possibly > > fixable) in the operation of the SECCOMP_IOCTL_NOTIF_RECV > > operation. I would be especially interested in feedback on that > > FIXME, and also of course the other FIXMEs. > > > > The page includes an extensive (albeit slightly contrived) > > example program, and I would be happy also to receive comments > > on that program. > > > > The page source currently sits in a branch (along with the text > > that you sent me for the seccomp(2) page) at > > https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/log/?h=seccomp_user_notif > > > > Thanks, > > > > Michael > > > > [1] https://lore.kernel.org/linux-man/2cea5fec-e73e-5749-18af-15c35a4bd23c@gmail.com/#t > > [2] Sargun, can you prepare something on SECCOMP_ADDFD_FLAG_SETFD > > and SECCOMP_IOCTL_NOTIF_ADDFD to be added to this page? > > > > ==== > > > > -- > > Michael Kerrisk > > Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ > > Linux/UNIX System Programming Training: http://man7.org/training/ > > Should we consider the SECCOMP_GET_NOTIF_SIZES dance to be "deprecated" at > this point, given that the extensible ioctl mechanism works? If we add > new fields to the > seccomp datastructures, we would move them from fixed-size ioctls, to > variable sized > ioctls that encode the datastructure size / length? > > -- This is mostly a question for Kees and Tycho. It will tell you how big struct seccomp_data in the currently running kernel is, so it still seems useful/necessary to me, unless there's another way to figure that out. But I agree, I don't think the intent is to add anything else to struct seccomp_notif. (I don't know that it ever was.) Tycho