Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2600075ybt; Tue, 16 Jun 2020 10:00:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Lo8uEK21ZGocl4SAP1IS3jNAhERoZESjlb92lWdJSi9ByHVCwOR7C9qchfibuz921iC4 X-Received: by 2002:a17:907:2118:: with SMTP id qn24mr3839849ejb.252.1592326844950; Tue, 16 Jun 2020 10:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592326844; cv=none; d=google.com; s=arc-20160816; b=R5+2CSb5zDsXnuZNBCy+g68XQ8hbq7bb1ZKaOPqa4KZEshDjbE3gNTtR/c+yVG2+2i 2c+icLfN7m49ZaGhl82l3M2R4mA2O7i4NbZy3+wE1AEry5KVAnptyq19NOvL0rCepxSR r5emxpyfGZnSGYSxtU5bQ7LZtKXJCxN9WRpP8fxdhDxmZhaHp/Ln8TCRcloGpxVPyGd+ l6KWGwRMwAAZ1+DaI7xjwEHWLGXIx7op9AAGvJC1fjKZ8C71yjchNaCtOR1pz3sVoLqq UMOwEW8+4/pf0ig+yNo88QEwsD8HmEMo95fiPA2QhtugrmrmtdzjKY60Ultj73tOQQ37 Y0RA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Hwa2L1ImB15dIKmz7yLgrRrD9ZoRLynU8SCNI5jmVrA=; b=j4QAy9cRu29P9QKSPuCTXILdKQrchcy4L07ECAeVWsG7w95WmZyvxM6KFGtx+YJKri W7lmoqqjA/XFAoj1nfPgYBhoF4l+Alr/BbYPIjG0NPSizxq4nXaNj8vFc8HrIKBCwTvw EbI5Pz5bouq/aqgue/6k3RsdZ5g501elOUf4JroWDbx2JZdvNgps6EN4XikXP3WD1Bah 8DOnwqr7xLXJur32ECDWdMB5NhdNoI3iDr4SLUICXoo7Sq3O16hXkAd0Hh/bw1oJhJ3C Il4F2x0kdXV8i3uREAussfS0qJ0BIZWQUL91iM8aXXllkXo10yXi8hntoQIbYGBV5cGJ q7zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=pBngrVW0; 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 p16si11112587ejj.708.2020.06.16.10.00.21; Tue, 16 Jun 2020 10:00:44 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=pBngrVW0; 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 S1730107AbgFPQ4c (ORCPT + 99 others); Tue, 16 Jun 2020 12:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728861AbgFPQ4c (ORCPT ); Tue, 16 Jun 2020 12:56:32 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F266CC06174E for ; Tue, 16 Jun 2020 09:56:30 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id c3so21487747wru.12 for ; Tue, 16 Jun 2020 09:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hwa2L1ImB15dIKmz7yLgrRrD9ZoRLynU8SCNI5jmVrA=; b=pBngrVW0fXgxGsUIB6iI6b9pR1mda14Neyp1D17D1rL+Hqqb3DpCGo4eohRlSyVnzp uvF3VYCjFeCCj0VsPcT6xwM8ISHlqv4N5ntmdzKgH4vComcnzC9on7c3xslUejjFZWGM hXigSpz86luPhPTAC1e4heu2+L7XscKr5Q3H30PhoXE+OzrYjT1a5miTd3j9fMF9b3iy IfDUsBdSDAtFknCr4P442lz/V/lJ7q39XCwc5W9Er4R5wuYuKbb2U0YDZkPJJ+BElZ1L 11ngbe3M814XPzBZu6XvpnCwnqVyASlReBROo1HnYGUcuy3HkB4Ia68i5OwT7Jz11zxs F+5g== 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=Hwa2L1ImB15dIKmz7yLgrRrD9ZoRLynU8SCNI5jmVrA=; b=Qe8a4/zDqXlhlO5nPikSTmvcMuuNM+A1BALRUw9P7zZJ+F3JhfD3OxU/b78NRDEEAP 2k8GoayhRau4XogXd112LpNvbbXKUtitN0kifxtlOXPD3L5rr4xmHSIeZBxEqci9xhqt 0mE+2/nWS9SC9jFgvQJmutvHf8sVhTwQGgB8B6pkKElCAq7DUycLrf9Q8juCGq5wBdlZ TnwEYd6HSBbrkIyF/UtMqQPf40dKq1nKDuzeCm/1PrV2Bwy3lm2PuNbf9LDbBS0vjCYp 0TMQEQpsG04kHKi3+7CdHuA4GF5XXaiYRO9FKqUErcUqh+MPZZdSOX8FEsKK18h5a303 P/Hg== X-Gm-Message-State: AOAM532RXgIAe+rNo7mo82BXq6pNupzeziw5Jj4VIULsqWumUOA4VWJH 3621wrgUvS+9rr/u0HHePZhs2GTo2iorwv5GncYFIg== X-Received: by 2002:adf:e387:: with SMTP id e7mr3978360wrm.70.1592326589637; Tue, 16 Jun 2020 09:56:29 -0700 (PDT) MIME-Version: 1.0 References: <20200616074934.1600036-1-keescook@chromium.org> <20200616074934.1600036-4-keescook@chromium.org> In-Reply-To: <20200616074934.1600036-4-keescook@chromium.org> From: Andy Lutomirski Date: Tue, 16 Jun 2020 09:56:18 -0700 Message-ID: Subject: Re: [PATCH 3/8] seccomp: Introduce SECCOMP_PIN_ARCHITECTURE To: Kees Cook Cc: LKML , Will Drewry , Christian Brauner , Sargun Dhillon , Tycho Andersen , Jann Horn , "zhujianwei (C)" , Dave Hansen , Matthew Wilcox , Andy Lutomirski , Shuah Khan , Matt Denton , Chris Palmer , Jeffrey Vander Stoep , Aleksa Sarai , Hehuazhen , X86 ML , Linux Containers , LSM List , Linux API 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 Tue, Jun 16, 2020 at 12:49 AM Kees Cook wrote: > > For systems that provide multiple syscall maps based on architectures > (e.g. AUDIT_ARCH_X86_64 and AUDIT_ARCH_I386 via CONFIG_COMPAT), allow > a fast way to pin the process to a specific syscall mapping, instead of > needing to generate all filters with an architecture check as the first > filter action. Can you allow specification of the reject action? I can see people wanting TRAP instead, for example.