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 X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A36DDC433EB for ; Wed, 15 Jul 2020 20:39:05 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id F17FC2065F for ; Wed, 15 Jul 2020 20:39:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ijKpH2WT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F17FC2065F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-19333-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 31929 invoked by uid 550); 15 Jul 2020 20:38:59 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 31906 invoked from network); 15 Jul 2020 20:38:58 -0000 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=qTkObtIP1JOxTsAafQAu4JRP/2PqoQenw/nsfCYT+XA=; b=ijKpH2WTKasm1SeJa7YfW41RoND4SGhxfWW8WIrBUyWAJo5mncDz3F6DsdpLNbN9yM zimIQJdAwdsoIuaoAmdGi8bqgFGbI1ImDdJTj84SXvxwzifKGWR/ToGmegNpJJRYxabz 0Mzoe5AOfjDlUoukmWy/DGwdgH+42OpxYqawc= 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:content-transfer-encoding :in-reply-to; bh=qTkObtIP1JOxTsAafQAu4JRP/2PqoQenw/nsfCYT+XA=; b=fBalP0p4PfurVq+nNLSPEOOknuZj6sg2V2AAauYQuNMNukbFRuet/+VRZfCw+sC6ue 8Hi0LpMzCcxkbTKQ/q3bMG9gOm1Qp3x+YJ91bnqoNSMwg+lkkzz3RzhVH79+URpwBel+ oMoCmUTey7Bn9WwRukDVp77nS8aFyt37SqhCtsj9/7vINK0tL72ELBbBoB2XC2WO5OLo 2ZqeV7rEt3k62BAGz3eWeZkq/GHU62q+fzGN8CamGSFy8rD5e4+Huu72oucRbSeZCvkA r3Ba0Wrtl1bQ/qr6a9LVu6TB9hh+YROCdbT/WRITGcqYwW26E557g3iC/wD2FZZdnQFv FAzQ== X-Gm-Message-State: AOAM532pj9J3WAW7bAAxGUE0eTc80IYyuowHVYb+ci1Przw1DbblsVdu 2Vqi49QEypwwxxBC1nqs+pa7Ng== X-Google-Smtp-Source: ABdhPJyOe9mUdiu/xb+eBR+7MVDzMD0v9uEBAElvlLK4fUJtk8fgRzbG6NWh1tQpT587gudq9JBjRg== X-Received: by 2002:a62:cdc4:: with SMTP id o187mr922387pfg.200.1594845526528; Wed, 15 Jul 2020 13:38:46 -0700 (PDT) Date: Wed, 15 Jul 2020 13:38:44 -0700 From: Kees Cook To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: linux-kernel@vger.kernel.org, Aleksa Sarai , Alexei Starovoitov , Al Viro , Andrew Morton , Andy Lutomirski , Christian Brauner , Christian Heimes , Daniel Borkmann , Deven Bowers , Dmitry Vyukov , Eric Biggers , Eric Chiang , Florian Weimer , James Morris , Jan Kara , Jann Horn , Jonathan Corbet , Lakshmi Ramasubramanian , Matthew Garrett , Matthew Wilcox , Michael Kerrisk , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Mimi Zohar , Philippe =?iso-8859-1?Q?Tr=E9buchet?= , Scott Shell , Sean Christopherson , Shuah Khan , Steve Dower , Steve Grubb , Tetsuo Handa , Thibaut Sautereau , Vincent Strubel , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v6 6/7] selftest/openat2: Add tests for O_MAYEXEC enforcing Message-ID: <202007151337.2A113F8C@keescook> References: <20200714181638.45751-1-mic@digikod.net> <20200714181638.45751-7-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: <20200714181638.45751-7-mic@digikod.net> On Tue, Jul 14, 2020 at 08:16:37PM +0200, Mickaël Salaün wrote: > Test propagation of noexec mount points or file executability through > files open with or without O_MAYEXEC, thanks to the > fs.open_mayexec_enforce sysctl. > > Signed-off-by: Mickaël Salaün > Reviewed-by: Thibaut Sautereau > Cc: Aleksa Sarai > Cc: Al Viro > Cc: Kees Cook > Cc: Shuah Khan Yay variants! :) Reviewed-by: Kees Cook -- Kees Cook