Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp907652ybg; Wed, 3 Jun 2020 17:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR8WCxl1O+z5ZH2TagNxX2pYJnO6nSvoX5Vrw4EIxInuaUu/slqWqwOCbkBBiAH2UnuCPY X-Received: by 2002:a17:906:c155:: with SMTP id dp21mr1642794ejc.92.1591230774254; Wed, 03 Jun 2020 17:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591230774; cv=none; d=google.com; s=arc-20160816; b=I1k+nV9YLoEsNrJCB0IOu3DihmWRuuOjIXU6jhxlWSfjDw1rdpmsxbnVLd8Mog0BgS McQQVaxP93Oa8L25L7I8TQB8uoJqiaNB8EHbmvdqXYhXHKeqAZYViA18D9sDcelirWpI +HBsBYpAcLjSVkiKUAPPShJz677u6dnYntbYI2T+uJ09IN0N8aDuN2KpSSBSh7qxOuw/ P3HWZlNg7OP51Yc+jMTHvnwKqyWr7rf4cZDlB8eDGYsuLI/QhvvkBc8v71rXat4J+taO NiZQqTrpZmfyxVh/VzUQkSqTQTn2z2yuLggr+4bYl1gG5XL+ilGxttOsuGZkTPvcdqFW 2uKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b2mOQDo3SZaN/Rw+KcRuMiA15KwU/mOHQn3QZXLxbJg=; b=J8XO3QPM48TBrEaERJGOlB5Fu8luzEiPzKFh5SHLVQdYPgKEKhKndhuiG6aZtVzIwQ F9e/jAPm0zcSqLkotemE79QvUkjlPyABFv8krM+OxqoN62xH5j/eMaJtFj7Znu2uyZd2 QVuXBA9zQbGwVC9/I6CfuC/QOdD54S7+zUNmWeAqQYKYGUoPPMwfZZ6RV1X7PKrKlAw7 om3LRTIjp5ddZrr1FCWd23hzCSvpvBzyWbWoL4xhX+xW097+c5TVILLMmWeVd3sFRssg E7OAdNBz2hnblz4mCcx8Q4K7D3WMcMKuO/2EeWNWpHFnNIzJJqhCA82+aKhej2TQh2v+ fkiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RycEdWpJ; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh17si607690ejb.672.2020.06.03.17.32.31; Wed, 03 Jun 2020 17:32:54 -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=@chromium.org header.s=google header.b=RycEdWpJ; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbgFCXmO (ORCPT + 99 others); Wed, 3 Jun 2020 19:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgFCXmN (ORCPT ); Wed, 3 Jun 2020 19:42:13 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5DFC08C5C0 for ; Wed, 3 Jun 2020 16:42:13 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id g12so1375704pll.10 for ; Wed, 03 Jun 2020 16:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=b2mOQDo3SZaN/Rw+KcRuMiA15KwU/mOHQn3QZXLxbJg=; b=RycEdWpJjs6aQR35gSfW6hNn9bIP1Lv/qGy/dAmbZ66xCycKCJOwLsDOD1pBxbDNvP pFeyI1V0zJgyZdHfAHqY7tEF3G2WGkP8/Pz02lYvK6n6vdZkpaepsFg+VJbq5uF8craw AGki2c1Qa+eIWB9r1S5XqHIYyuFmY6Q8DtBA8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=b2mOQDo3SZaN/Rw+KcRuMiA15KwU/mOHQn3QZXLxbJg=; b=KLjtyL8KOL48UjMUR3UPh5NZQW0tM/kctIQ59fd+jvHqmjq0raS74Ob+v77hnDsBEE hnobuijw+UuN7arhjMd5GbE3ezJCTqWx5CA3lZqUkkCDU77BDFI2h12CzsN7dZB7NriA pQyi7SM774GW7KdsldjfBK4xsY+Y5gxG4jSjD5K9y2EDqz6xmvc2G97X78L/JzG9F9QJ ZJ4JQ1Tb4vXI4zTC3/34qU659HFYzZnK4D46K7NzgmUM/XXw6YhokvIbyPcSppcbORQf HdmMt0i2lcRJRj0YYyyZdx1aZRlKYuw9MIJrlc1dOHHzq4Rw0imlU+z+Qrup4ke2QXM6 Aqnw== X-Gm-Message-State: AOAM530QKojV+kCbLw3Y7lV+ivW1z6pPxz4FyNuJaaNQRbL4zRvPKqjr 0crMrNN6cLab/k+o+WJO3LQnzw== X-Received: by 2002:a17:90a:6546:: with SMTP id f6mr2615658pjs.55.1591227732906; Wed, 03 Jun 2020 16:42:12 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j7sm2747835pfh.154.2020.06.03.16.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 16:42:11 -0700 (PDT) Date: Wed, 3 Jun 2020 16:42:10 -0700 From: Kees Cook To: Sargun Dhillon Cc: linux-kernel@vger.kernel.org, Tycho Andersen , Matt Denton , Jann Horn , Chris Palmer , Aleksa Sarai , Robert Sesek , Christian Brauner , containers@lists.linux-foundation.org, Giuseppe Scrivano , Greg Kroah-Hartman Subject: Re: [PATCH v3 0/4] Add seccomp notifier ioctl that enables adding fds Message-ID: <202006031639.E053742@keescook> References: <20200603011044.7972-1-sargun@sargun.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200603011044.7972-1-sargun@sargun.me> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 06:10:40PM -0700, Sargun Dhillon wrote: > Sargun Dhillon (4): > fs, net: Standardize on file_receive helper to move fds across > processes > pid: Use file_receive helper to copy FDs The fixes (that should add open-coded cgroups stuff) should be separate patches so they can be backported. The helper doesn't take the __user pointer I thought we'd agreed it should to avoid changing any SCM_RIGHTS behaviors? > seccomp: Introduce addfd ioctl to seccomp user notifier > selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD Otherwise, yeah, this should be good. -- Kees Cook