Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1292985imm; Fri, 28 Sep 2018 15:49:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV630tKLAIOz3Ahpbp2T5IMSw017+WaTWpNJbcs41bv5Js9NAaA7zHlR3Tsdra/PXp/NZPBw5 X-Received: by 2002:a62:71c4:: with SMTP id m187-v6mr639036pfc.232.1538174960422; Fri, 28 Sep 2018 15:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538174960; cv=none; d=google.com; s=arc-20160816; b=aVXz+o2qqDSjVLzWheVLB7EHYccoWpPdRRAKO39So9gwPhZlgUZ2NsLOcgQovMQO8e 1cP+vUnorcZnOF9ovfyRcyNKeZbcy9oRcgegA0JMwpfVuO/uxaCZCwzmjfH/pZO6YVAG BFSDZrEMCZXRYfZQU2XVK9ZlMISX6q/KQU+3EPQAPjakp79KRkZirCYWCPJ8B+oo6eer AYASLXQr1h/xbRRsjKpGxeD7LSorfjJV0XUzu8HCPWThdHIGyjwoJoQjtDrJip4PeKkQ c9vBW48Rh7+PIDwm5MvGMWGdMjUzJuCvZqxXlLTYSkuYsmcR2BlYfvCoY4KjL1nzV8qi i2ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=kgnLYoHebAATAQhaGP2hiKypwyKQcaoDkmSi/KdyB80=; b=ah/zwxZaZBt3MMmcv78LQQZXipbMbtSk+s/boSPIbag61Yr8mz1qC5YMz6Lm1pdnPx 0cKKrjxwIrWe216PUEbzDT7sLnDKmgMpArrAr9ygwKyyWrfnNdBpgU3JY9C2h6gMH9lb VTawKKOZlt9CPVRsBK9n/m+A3p/5DXdrPG+c/ssDGwv8rn2/diObn/qyb+vt8n8EYBKj Fsgi329v+RgMTd1rsFSdIutGossWPVKikMv07X9DEKdRx7RFMoia2ZmylyeRIkKcIE42 PT9r9RZoMCKyHGLiwmladLuX8cNCMi0PMnK8d8joz1buS5feUqvU2ukGP1o4k9dNaIHD dLGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e+V+2dys; 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 j8-v6si5700806pll.493.2018.09.28.15.49.05; Fri, 28 Sep 2018 15:49:20 -0700 (PDT) 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=e+V+2dys; 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 S1727451AbeI2FNC (ORCPT + 99 others); Sat, 29 Sep 2018 01:13:02 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40209 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbeI2FNB (ORCPT ); Sat, 29 Sep 2018 01:13:01 -0400 Received: by mail-ed1-f67.google.com with SMTP id j62-v6so9447555edd.7; Fri, 28 Sep 2018 15:47:05 -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=kgnLYoHebAATAQhaGP2hiKypwyKQcaoDkmSi/KdyB80=; b=e+V+2dysWYe7nLFMEARo0mHAmSNJ1nrwBw1CpHoHH8eSO8y+YQvNWc0jPvO/+BaRI0 ipQf68jl9c42kOQ88WpXOxp6wEd1ZLf7m4yWtDlJaJn5Nl4tkQDYF4POyFDNUQt7KCJr fBEOuIHhDLsDFxE55SjkQ/m5bMaTDgzFM55GdsXavFJS+8y7xozf8cr/GMjbyl7Plnop QOLQ3OWqw1dDIALEqvQwdiuoU6q6WUyJjDQLR+Gmg8qEmNeuw7pQnvbIfqBFDSPTl5da O0IyT4AM1Q1fv1W91lPceYTnxjMAqazHegxmec6GVOvyW0e9MToHUB3+9RU7Vp2BZFAu e8fg== 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=kgnLYoHebAATAQhaGP2hiKypwyKQcaoDkmSi/KdyB80=; b=P3gEHrBNTHhpEItFsh0j551E5kfn1AkUikuFKqLZml/p01xnhlt3QtxAoxDmqgeoi4 xy2TIOJMOyHVKNvelJrckeObxo45nvIkEzTC7M3PZ7HuApNm2Ta5ZELhyVjR0SP3CTlQ ezzQctAv5eAL8Pk/4Vg0+GsRAkjmY2ycD3+/9o7KD14D5eLEA//spWv0CVTEuD6FuYAd zrlzXBVxMSF8YuUmAbgSCOBTVMC1uHI045l27XNpL8Sr2BQgnr2V9iIaW3hQdItubg4U PfUjxvxHZv4E9qGy+DUXzn1xXKc6jyTpdyhTd/WXQPdK8coWNSyNHN97BnBhebggHRmn co8g== X-Gm-Message-State: ABuFfojAEDwuWU3gHg61ChMw9RU9NabhuQs4whv3pnCjtoN7FsHNe/n/ fLZ9DV/dGjIlfTRrDzELVNTsDO49GB4lA8iKzRs= X-Received: by 2002:a50:9226:: with SMTP id i35-v6mr5443408eda.144.1538174824577; Fri, 28 Sep 2018 15:47:04 -0700 (PDT) MIME-Version: 1.0 References: <20180927151119.9989-1-tycho@tycho.ws> <686fe047-16e6-3dfc-6284-ed574d97ad2f@gmail.com> <20180928220359.GF18045@cisco.lan> In-Reply-To: Reply-To: mtk.manpages@gmail.com From: "Michael Kerrisk (man-pages)" Date: Sat, 29 Sep 2018 00:46:53 +0200 Message-ID: Subject: Re: [PATCH v7 0/6] seccomp trap to userspace To: Kees Cook Cc: Tycho Andersen , lkml , Containers , Linux API , Andy Lutomirski , Oleg Nesterov , "Eric W. Biederman" , "Serge E. Hallyn" , Christian Brauner , Tyler Hicks , Akihiro Suda , Jann Horn , "linux-fsdevel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kees, On Sat, 29 Sep 2018 at 00:35, Kees Cook wrote: > > On Fri, Sep 28, 2018 at 3:16 PM, Michael Kerrisk (man-pages) > wrote: > > Hi Tycho, > > > > On Sat, 29 Sep 2018 at 00:04, Tycho Andersen wrote: > >> > >> On Fri, Sep 28, 2018 at 11:57:40PM +0200, Michael Kerrisk (man-opages) wrote: > >> > Hi Tycho, > >> > > >> > On 09/27/2018 05:11 PM, Tycho Andersen wrote: > >> > > Hi all, > >> > > > >> > > Here's v7 of the seccomp trap to userspace set. There are various minor > >> > > changes and bug fixes, but two major changes: > >> > > > >> > > * We now pass fds to the tracee via an ioctl, and do it immediately when > >> > > the ioctl is called. For this we needed some help from the vfs, so > >> > > I've put the one patch in this series and cc'd fsdevel. This does have > >> > > the advantage that the feature is now totally decoupled from the rest > >> > > of the set, which is itself useful (thanks Andy!) > >> > > > >> > > * Instead of putting all of the notification related stuff into the > >> > > struct seccomp_filter, it now lives in its own struct notification, > >> > > which is pointed to by struct seccomp_filter. This will save a lot of > >> > > memory (thanks Tyler!) > >> > > >> > Is there a documentation (man page) patch for this API change? > >> > >> Not yet, but once we decide on a final API I'll prepare one. > > > > Honestly, the production of such documentation should be part of the > > evolution towards the final API... > > > > Documentation is not an afterthought. It's a tool for pushing you, the > > developer (and others, your reviewers) to more deeply consider your > > design. > > In Tycho's defense, he did write up documentation in Documentation/ > for the feature, so it won't be an afterthought. :) So, I missed that... How do I find this Documentation/ ? > But yes, there's > no manpage delta yet. But, really, there should be, as part of the ongoing evolution of the patch... (Apologies, Tycho. It may be that I came across a bit harshly.) Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/