From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by sourceware.org (Postfix) with ESMTP id F37743858D1E for ; Fri, 8 Sep 2023 15:07:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F37743858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from pwmachine.localnet (85-170-34-233.rev.numericable.fr [85.170.34.233]) by linux.microsoft.com (Postfix) with ESMTPSA id 04AFD212B5DC; Fri, 8 Sep 2023 08:07:22 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 04AFD212B5DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1694185643; bh=KuyTl4rJWQVemy4Cv04ppxALoMBgQn7xLTd5LBa0KmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gmcMdJFWKTPllVbgr3NzYOxtayA4ma0KVUViuG4z2P2FX2fGfMbolNYAWPY3Z/w7I dVNRHXG0AcNsSV59uNHHWg4p3zYblbGafmuz288KuFO13+O+OdT9MH7EaIkWwzN17l EWdcAaKp8SW2y3RKDku4wWqacxl2H3EDYqlpR2Lk= From: Francis Laniel To: libc-alpha@sourceware.org Cc: Kir Kolyshkin Subject: Re: [PATCH v2] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h. Date: Fri, 08 Sep 2023 17:07:20 +0200 Message-ID: <12280820.O9o76ZdvQC@pwmachine> In-Reply-To: <20230825023140.1384486-1-kolyshkin@gmail.com> References: <20230824203625.1343061-1-kolyshkin@gmail.com> <20230825023140.1384486-1-kolyshkin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-27.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi. Le vendredi 25 ao=FBt 2023, 04:31:40 CEST Kir Kolyshkin via Libc-alpha a = =E9crit : > This patch adds the new F_SEAL_EXEC constant from Linux 6.3 (see Linux > commit 6fd7353829c ("mm/memfd: add F_SEAL_EXEC") to bits/fcntl-linux.h. >=20 > [v2: fix comment] >=20 > Signed-off-by: Kir Kolyshkin > --- > sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h > b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 1babbdc84e..df378c7b89 > 100644 > --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h > +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h > @@ -286,6 +286,7 @@ struct f_owner_ex > # define F_SEAL_WRITE 0x0008 /* Prevent writes. */ > # define F_SEAL_FUTURE_WRITE 0x0010 /* Prevent future writes while > mapped. */ > +# define F_SEAL_EXEC 0x0020 /* Prevent chmod modifying exec bits. */ > #endif >=20 > #ifdef __USE_GNU Thank you for the patch! Reviewed-by: Francis Laniel Best regards.