From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 929A6C433EF for ; Fri, 8 Oct 2021 22:44:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7CDAA60200 for ; Fri, 8 Oct 2021 22:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243705AbhJHWqt (ORCPT ); Fri, 8 Oct 2021 18:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243552AbhJHWqs (ORCPT ); Fri, 8 Oct 2021 18:46:48 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 670B5C061762 for ; Fri, 8 Oct 2021 15:44:52 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id r2so4419223pgl.10 for ; Fri, 08 Oct 2021 15:44:52 -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:content-transfer-encoding:in-reply-to; bh=tZEn/oAYWz3OcPJexi2kL6PvuHBhh8RYYUTzGNKbmSU=; b=DhKhOYtI0pBL6NCNFhLl35WOj9Pbn0YptqtJC1eqqOh1krXIhDiyulLRdDnN09WxhN 4ODUUIY2goSTSm/XDlA9aerxN9TrWKJwe4C0uO6BXyJUc/M0Rb4Qo34q+wo1Cs6Kdbrx wM6E7zu705f4gxd7Ly+0oFdjD/mjV9w3i9uaQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=tZEn/oAYWz3OcPJexi2kL6PvuHBhh8RYYUTzGNKbmSU=; b=msN5q4pP+/yp+w2HgITAVWM6iSminGKoL1Sl0i7XEYny63jSYYKJ0nE4tpp0n7DG+V WDkpOxQSH+Lo6PpSvWSdZiJVzJIX7IDoP33C4H68WhTejfZM6q0R/vB9MgE2VA9oGlAb X+VeIhQdTzEN0I7sXmkIrbk5w5+HYSA5CM3kgc1wZIyJxrDt9bAxCzVxP5H11YTfoTZB JaqWn1quIyx1NpgRF0Cku0h5ndVuDJlIM6AT/Fl85RWZor+ZnGAwvNiLZMrKuYDp226j AsiOaRizTyWF0WDjVYb0u+AnAnNAuud94pW3J3HzfI9SLm9WOYcXTqYppaIj/uZ/hYv/ cs/A== X-Gm-Message-State: AOAM532h0NhcTiCs9qprMHj9M6c/gKf+QiqmuONEcAvMaBxfVlF0m5y2 cSfN8dpIEnfBuAbT7WEmsuWShw== X-Google-Smtp-Source: ABdhPJzc82UFKnEHL2nXeW/1+UZrI2+VOZcKuFOfe0n0xCQmI8hpLGTGT0H7X/rjlFKvQ2WBHiiUwA== X-Received: by 2002:a63:cc48:: with SMTP id q8mr6758353pgi.171.1633733091937; Fri, 08 Oct 2021 15:44:51 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k190sm350501pgc.11.2021.10.08.15.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 15:44:51 -0700 (PDT) Date: Fri, 8 Oct 2021 15:44:51 -0700 From: Kees Cook To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: Al Viro , Andrew Morton , Aleksa Sarai , Andy Lutomirski , Arnd Bergmann , Casey Schaufler , Christian Brauner , Christian Heimes , Deven Bowers , Dmitry Vyukov , Eric Biggers , Eric Chiang , Florian Weimer , Geert Uytterhoeven , James Morris , Jan Kara , Jann Horn , Jonathan Corbet , Lakshmi Ramasubramanian , "Madhavan T . Venkataraman" , Matthew Garrett , Matthew Wilcox , Miklos Szeredi , Mimi Zohar , Paul Moore , Philippe =?iso-8859-1?Q?Tr=E9buchet?= , Scott Shell , Shuah Khan , Steve Dower , Steve Grubb , Thibaut Sautereau , Vincent Strubel , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Subject: Re: [PATCH v14 3/3] selftest/interpreter: Add tests for trusted_for(2) policies Message-ID: <202110081544.85B7DA3@keescook> References: <20211008104840.1733385-1-mic@digikod.net> <20211008104840.1733385-4-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211008104840.1733385-4-mic@digikod.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 12:48:40PM +0200, Mickaël Salaün wrote: > From: Mickaël Salaün > > Test that checks performed by trusted_for(2) on file descriptors are > consistent with noexec mount points and file execute permissions, > according to the policy configured with the fs.trust_policy sysctl. > > Cc: Al Viro > Cc: Arnd Bergmann > Cc: Andrew Morton > Cc: Kees Cook > Cc: Shuah Khan > Signed-off-by: Mickaël Salaün Thanks for the adjustments! Reviewed-by: Kees Cook -- Kees Cook