Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp796486pxk; Thu, 1 Oct 2020 14:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTmLXPgxO0o9r5v1izBJiD7HmWV2p10gdEYyvBG6mxbYqhbKzXnRggYykNwcQT1dLXumOy X-Received: by 2002:a17:906:6b0b:: with SMTP id q11mr10496169ejr.412.1601586621773; Thu, 01 Oct 2020 14:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601586621; cv=none; d=google.com; s=arc-20160816; b=FLqz89azOoz0ZY/6jqgDRCbb33t6hEnMdMtKdN6MmQvFYp7D0eq92rETdusuvxWVh8 rDCzgBP6++C+ryNf+W6P2HuK2/6w7fSfuRDsl0r58YI/AycdakgBBu5flhkMorhLlNOn yv8Q1r+v/7HGF5rPiKtKRkEqFifA0g5DcO+PMkw7CkZjBeaJE3FdUu20TG4ZauwSrmmc MIzr1lSxAOibIwQ9qp9lacoCbAvsifAohDhGGr0xwOF6pVGoKeFqBa3/bHQ45ZKQj0lk BCMz+PupODOtPbJoplY3wSsJsGpO5xf6BSydPNmadyyKBKjncSOfFjN3iCnao2f/xyd1 rJzg== 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:in-reply-to :references:mime-version:dkim-signature; bh=GJfQdlSGvnYX8WTWiSSvgRRMTzNs36g2ODPiTwjRAs8=; b=0lKqXjRbcci88N6HI1IIuNULiM4gVH4muX/Zt2rRw+MDJFjlQVdKi1+aIyCuZulaO/ rbVSFOEQMUD864Kkk+WQO6Vm5f0uYUqMJ+ap2A5Iolg6cpk7bZO3xFnq1i2IcDndmEeG Fm7ywGHp/tLH+hDSLI1CY8frYk12VLkC/NRV5vpzozZII2h55gAwcHwdkI0Tm1k5N8/x o4Dw4SAmwVfXLqbrUjx0oB7bmJLGYh9HfcpeGMqBXAxDazmFTC0t6QeQARcgKDe6iexK 1jlxqUKIlH5kG2plHNZB7FuPJshdEqurvLXpVx3A7UOObGwKY6zFbnjVne/bqLVnd3il Bl8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sargun.me header.s=google header.b=tkrBQe3E; 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 dp12si4630684ejc.155.2020.10.01.14.09.59; Thu, 01 Oct 2020 14:10:21 -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=@sargun.me header.s=google header.b=tkrBQe3E; 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 S1732981AbgJAVHI (ORCPT + 99 others); Thu, 1 Oct 2020 17:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbgJAVGt (ORCPT ); Thu, 1 Oct 2020 17:06:49 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E95EC0613D0 for ; Thu, 1 Oct 2020 14:06:49 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id qp15so9214934ejb.3 for ; Thu, 01 Oct 2020 14:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sargun.me; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GJfQdlSGvnYX8WTWiSSvgRRMTzNs36g2ODPiTwjRAs8=; b=tkrBQe3EU3XlxTk9RswYWhAU4d1iEgcKP+mNKsyk7QnifbEkLUVCT/Bz9HiE4WZDH9 kPwoGKUUr+ktBtCxlwk704U4nOoVOcFG4gZqxD8/WNDpZpcxtCXcBKHmqjgCOI2sZjKz RIHBYbLW3UYEy3kwlVU6CHuZOl2ouk0fj2blw= 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:from:date :message-id:subject:to:cc; bh=GJfQdlSGvnYX8WTWiSSvgRRMTzNs36g2ODPiTwjRAs8=; b=eOFXDmS79lQgEjfINjCcjo2plPs/C4RiqWYo125jZ4EgvKuvHjxAdj7omppqdg/CXN hA3h1iWUXv5kkMqMkcvlXDjNR5r8kmNiFmoEa7yvUMQc98lGPILycMaPzw4qD/ynceAo NUtG2bnwDFwYr4dZUTIL/oMNffNz07aW12d2bqUKFHeKcXFCiA+UtxrKAdfUVB90eboy giIzparBgmXu5cI2DEUVUf0X5RqE/b9/6c0rby4bODmAIU3FuNGZA58Y3ZZqe2bz2kmm ZV6fc571rmv1jypPPF1NZ+oHFRLoSiBIvFbyfCbbiZUWp685SXeFACMWDbihKlGsg4RB TCEw== X-Gm-Message-State: AOAM530eHOU3eiSqWxAKg/WEnVndjVyEUxVpDszKEKzolbD7llWO5y8c eFd7uL2gkQQYJNDV4XoAJvR49MSVpos4pDZId4k1Dg== X-Received: by 2002:a17:906:3e0c:: with SMTP id k12mr10020262eji.189.1601586407475; Thu, 01 Oct 2020 14:06:47 -0700 (PDT) MIME-Version: 1.0 References: <45f07f17-18b6-d187-0914-6f341fe90857@gmail.com> In-Reply-To: <45f07f17-18b6-d187-0914-6f341fe90857@gmail.com> From: Sargun Dhillon Date: Thu, 1 Oct 2020 14:06:10 -0700 Message-ID: Subject: Re: For review: seccomp_user_notif(2) manual page To: "Michael Kerrisk (man-pages)" Cc: Tycho Andersen , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.