Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1282118imm; Fri, 28 Sep 2018 15:35:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63EtYYPRMILiiTiWi7EO3yzFtaosFWAPoLbl92oOApalCCR6bds9t6/l++okKgmxctHTCeN X-Received: by 2002:a63:bd41:: with SMTP id d1-v6mr549033pgp.309.1538174106924; Fri, 28 Sep 2018 15:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538174106; cv=none; d=google.com; s=arc-20160816; b=wC/O1EUFVGBbSHBAntYK2PfkRXrh0V4VxbdXAesI33vd7fHu6703ApcRTm4tfFh+8U 3aCo76tUJBMxiXGmNV5fJUcb6xVNMNpdQeODHN3yjVBxQZwVjgmnpSQVy9jzhGchQyfn vF+PLstYPxFLcsPgnDgecOTU//nAL4dOCHQe10HnOFkrNN1S8tFHXKCcAp1G6u9BlBvD u+5YPFTeVF7ENUJgkj2OX1I8ztS3TOTGvXNzXFMR+GlnRfje1V14hpkGnBwQ15CqATMZ b6wH+QU7j3F1tk8rBI6jB2GpTD2eFh2R6Sr06KPuGiS4UpxHIWlpK4X3N4s/REOQqSba gtOQ== 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 :references:in-reply-to:mime-version:dkim-signature; bh=Kc+xotBuieQLVo8qummA7HdgBUNE8UPl/HeS/sepKgw=; b=HX0dB3L2S801hw2AmRZDaedgA3V9vA5Qi8k3Y9oEJSLOffPQ/X2rtWkPJXguHOZetH 5Gxm9bd7S8Jf1Xot8zlalpi4dMrhkvkFYvIKmrwIU2hMZsrG9Ni2MOekdCt4eV/OA+nf LfOp7MmtILMuPwWpsVOwHOuPvOaYg5xzsadCkzQjQIzWZkaSyof8bBxcyxHxpQnR32vr bQrHLN7VVu4eSGSPUh1Vxcw+Y42ZrAY+I1anyJlI9PSDOA2Q5MxILtABbz5RFwiB0HV9 Om5J09n6mOJsvCXr55lMQeb+L7I3NxTUMuarGod127SlbY3rT8sPXSxjc8CsilqLgTfl jlug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="mZojv/KE"; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11-v6si4927768pgs.377.2018.09.28.15.34.52; Fri, 28 Sep 2018 15:35:06 -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=@chromium.org header.s=google header.b="mZojv/KE"; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726943AbeI2FA0 (ORCPT + 99 others); Sat, 29 Sep 2018 01:00:26 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:41339 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbeI2FA0 (ORCPT ); Sat, 29 Sep 2018 01:00:26 -0400 Received: by mail-yb1-f195.google.com with SMTP id d14-v6so3331847ybs.8 for ; Fri, 28 Sep 2018 15:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Kc+xotBuieQLVo8qummA7HdgBUNE8UPl/HeS/sepKgw=; b=mZojv/KEZw6rscD0hNmSSUW3hAbAj4sPS6jGhaWRrPozf1phGUthK35UH17m/jvd6x UYFh4IaNVj4nCXQpiO7QVe039ih24wvbmwvfNKk8F4X5vD06lrDnOM4sNd5W8qKdaROT 90G1N+tPDeOlbHTpLQR1zqpOd9fK/SF9Bsz88= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Kc+xotBuieQLVo8qummA7HdgBUNE8UPl/HeS/sepKgw=; b=TWEFelRdN22cQ++zYoJ+psrUhPaBU5IljLQrgJm+qT8DfneaWbNRSTa22OGUu9s71y 0Y9tIwNrRec/TBYBT2nm6MzJb/z6aISqdE2i6aBcHK7tLCGHrFHX9jUKOqKuRg2OopIx kh1xM8wawCjDBMszV9vJJTnh0f2Yb1S1OiEctvKZLpsgGpm4C5evL6Ro/RuKxGm1vu+f Sr3747H2ylZEJIh8agC5jgZXGmBh7NobqOXtrd7tlseQR1zAVUh0xyhIdsYbiuUrJmO7 rx+7gzoQoyrN9k6jLSsHeCg46JrCQps0Rgtqn79C9LaT2sZkuMW6+o1gWm68MZFFD6jO dCyQ== X-Gm-Message-State: ABuFfohELDKIN4+Fbha+SHMicMlGcVTbolXRfCWjlFEfr0DkadXqs4uc noJlw8KT61U8fycAPZ7AdkIQDDPkHEs= X-Received: by 2002:a25:5406:: with SMTP id i6-v6mr408036ybb.71.1538174073604; Fri, 28 Sep 2018 15:34:33 -0700 (PDT) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id 140-v6sm2450869ywt.71.2018.09.28.15.34.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 15:34:32 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id o63-v6so3347964yba.2 for ; Fri, 28 Sep 2018 15:34:32 -0700 (PDT) X-Received: by 2002:a25:dd82:: with SMTP id u124-v6mr394175ybg.171.1538174071972; Fri, 28 Sep 2018 15:34:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:d116:0:0:0:0:0 with HTTP; Fri, 28 Sep 2018 15:34:31 -0700 (PDT) In-Reply-To: References: <20180927151119.9989-1-tycho@tycho.ws> <686fe047-16e6-3dfc-6284-ed574d97ad2f@gmail.com> <20180928220359.GF18045@cisco.lan> From: Kees Cook Date: Fri, 28 Sep 2018 15:34:31 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 0/6] seccomp trap to userspace To: Michael Kerrisk 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 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. :) But yes, there's no manpage delta yet. -Kees -- Kees Cook Pixel Security