From patchwork Fri Aug 25 02:31:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kir Kolyshkin X-Patchwork-Id: 74692 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82E113858C53 for ; Fri, 25 Aug 2023 02:32:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82E113858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692930734; bh=iqh6ltekgL5kkFD7P/Frs1H3UlLdgMX39+GO1keBP3M=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=GdslPwkUYBFGZrSOUs+a5qlFMHp0n+VicTMccSOqo2zwcrzeCk9kB1s/uhR3ItOvt idm9N4qnBbkHd5X7eS2G1YU496ZbTyQJc0rA0W3v+Sg5GyrOpnWMp2skXX+UvI7yzg XJ+sdKTDZ6VSS13h3QjlivlWAkAEnvYyWxHhnhPM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id B0EC43858C53 for ; Fri, 25 Aug 2023 02:31:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B0EC43858C53 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-68bed28cb22so386543b3a.2 for ; Thu, 24 Aug 2023 19:31:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692930708; x=1693535508; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iqh6ltekgL5kkFD7P/Frs1H3UlLdgMX39+GO1keBP3M=; b=GasIJvriKghyGvSTd5fcjdUoiByBGb5sKpYo5Tp4k7cHZl8Y9TKyoJdv5ekHq9RTWi shNZTBJgW4Rpv4GW4E+i21f/jFFa5It0hAfGV60VUTJyocHRZ36emVOlF6eeszbv+zUF MdeseKNkUVv8gucjjEA3UQH82ehNSXD9OaK0RPwNJTLOKVvnWRl37lWwDXfuj3wBYEKS eLp3c3D6C1BMsUspbn3HQoD0O9ux174HskJVR1w9jXqs+zR7kp2Ep8PVwW7QYc3xLNCT hAWOALsAm0r2bgAqCGqzMEvm53p6dqnikuW8WhjUcdWZK2/qc25Yyx+guBAJTRap6A30 Nh/w== X-Gm-Message-State: AOJu0YydaXcWdJG0LwzQNrE+ersta4lDwvijnAp8eElmRH0wuJ3Hp6hG y+1u3VvZVCEX1PWl8BMdSofhEocCRB8= X-Google-Smtp-Source: AGHT+IH2R4xqQtKyJ6RZQpsb2+oZHxZfS3Leiqw9zIok0sTxGqBcscUP5lWwGRKVFkhSPaTIjmu7TQ== X-Received: by 2002:a05:6a20:1609:b0:132:cb65:b47c with SMTP id l9-20020a056a20160900b00132cb65b47cmr15847120pzj.43.1692930708226; Thu, 24 Aug 2023 19:31:48 -0700 (PDT) Received: from kir-rhat.lan (c-76-104-243-248.hsd1.wa.comcast.net. [76.104.243.248]) by smtp.gmail.com with ESMTPSA id a10-20020a170902900a00b001b850c9d7b3sm391905plp.249.2023.08.24.19.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 19:31:47 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Kir Kolyshkin Subject: [PATCH v2] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h. Date: Thu, 24 Aug 2023 19:31:40 -0700 Message-ID: <20230825023140.1384486-1-kolyshkin@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230824203625.1343061-1-kolyshkin@gmail.com> References: <20230824203625.1343061-1-kolyshkin@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Kir Kolyshkin via Libc-alpha From: Kir Kolyshkin Reply-To: Kir Kolyshkin Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" 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. [v2: fix comment] Signed-off-by: Kir Kolyshkin Reviewed-by: Adhemerval Zanella Reviewed-by: Francis Laniel --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 + 1 file changed, 1 insertion(+) 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 #ifdef __USE_GNU