From patchwork Thu Aug 24 20:36:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kir Kolyshkin X-Patchwork-Id: 74684 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 0B43F385843E for ; Thu, 24 Aug 2023 20:36:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B43F385843E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692909417; bh=PXOS+rFEv4SBM3n2/4co3QVs1Gc+0tGlOkhWjyj9P9c=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=rbkac+SmUtjd0Os4yhmrG9879beIj+JtzifjAikzozLj9jqf37Nu5DGcLYVW886Zb fm3jGtFwgf29vyltaayV7EASEqz2JEu1Ek2zRrjEPCINQWH64DEHx1rzqHfVCC9v8m BwcWMZgMVKn79V6U2RXAxqxjQrMogr/QoOzs0bE0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id 8483F3858C53 for ; Thu, 24 Aug 2023 20:36:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8483F3858C53 Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5654051b27fso112672a12.0 for ; Thu, 24 Aug 2023 13:36:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692909392; x=1693514192; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PXOS+rFEv4SBM3n2/4co3QVs1Gc+0tGlOkhWjyj9P9c=; b=U+hQC66SYi951fod7c6ZXAzpTJ5EHDXjvxTs0BWvXoZWhxDyv1+zK9VjymYKtDoCT+ a9QnBfa2w9mKFulKceeqhp8WJK5D6N/soPqZuikALonO5zZMMS9I9HggIKvU0jPVvW7F y2dPwL66QzYo+Ld+Gx8+MjQnjqqoRvLyOv7QEuTncUo6bZVSoq0ZhPMOUoQbikv7NB5k kf1Rg7CUDiXM930CA+OsWmkOyS5ugdnrvWHqDpg55IzCRh6H+5bdPdOQjzzrs+BUbIbS QsRlfpCci/CO13y5YQYKP56CcPiJpNktJ211dkhwDRbYSOvQqw8jFduKSZSZbcxv10cD pqVw== X-Gm-Message-State: AOJu0Yz3C+5khVicFqrVd9/O/FAxcHnFJsYH5xg3FZtjTRMMjxX7Hs8n yGERtfR2iRMq45a/aMp800d6axrzad8= X-Google-Smtp-Source: AGHT+IF5+mLrPZOR0/8tg9FnUxHBsGpCZvAfR0C0tRtFFt4j+TqZx84Bax3jJvQcn1BqTgamMIsNXQ== X-Received: by 2002:a17:90a:4dc6:b0:26d:2fe5:ff2a with SMTP id r6-20020a17090a4dc600b0026d2fe5ff2amr14931329pjl.29.1692909392037; Thu, 24 Aug 2023 13:36:32 -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 8-20020a17090a034800b00262d662c9adsm2119528pjf.53.2023.08.24.13.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 13:36:31 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Kir Kolyshkin Subject: [PATCH] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h. Date: Thu, 24 Aug 2023 13:36:25 -0700 Message-ID: <20230824203625.1343061-1-kolyshkin@gmail.com> X-Mailer: git-send-email 2.41.0 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. Signed-off-by: Kir Kolyshkin --- 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..ce3b560cbc 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