From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 70A55205E1 for ; Thu, 18 Jan 2024 01:06:27 +0100 (CET) Received: (qmail 8134 invoked by uid 550); 18 Jan 2024 00:04:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 8080 invoked from network); 18 Jan 2024 00:04:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtone.fr; s=google; t=1705536356; x=1706141156; darn=lists.openwall.com; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GHD7Ue/O6rYuXjBR+c1OWkzCqPClmJYGkTENEupvx+g=; b=N665RM+wb7zBVrcylTLCZxQskaLOhiWiEmvbjwvUZHj+P2n+c+ckt589629xbbP0y9 t3E8hHK0DtHs6qwGhnz4uq2pm3YF9R3Snr2YgoCoTDBmfCXLHeyu2YVqJU1v6Tm0CXQc LRG6VhUTl773tynTN3HSpbBs95Qz1WFthZ5k4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705536356; x=1706141156; 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=GHD7Ue/O6rYuXjBR+c1OWkzCqPClmJYGkTENEupvx+g=; b=UNpWj2pf56fs6WCoq10MxO3OoM9PgyI+QdkVJK/kl7ekcxuXSxdEE7iDFxSiialCrX DphN7djdj5dyoyolaLKYidJASynmIBaRshK635qT+NLc79tlSwY60KEtwvbdCEjY2ZM+ 7GA6IOEfPtaMT9x33Oyt3RSws85jxS/rfIL1RGU4oFy7VMB/T7UTN7K5xmhlixElGBxc FanbjU2wxFbVKZkbVro07H/2P1n9r8xtBQ0vu7u334+ZrQDt/Au6Z2vUORG5CAMnoV0Q wOQTiQ4WjYSzNH3oDJMpeeeY8HLIG6hnx2rOa7VZO7UrmpD2l1s0B9yZsYCZpPvTFt2K Fr7g== X-Gm-Message-State: AOJu0Yx/exQ3QYLle5zAL4TU/BxZ5rEiiK+Sxs6cEx9YS4iSrGBvij2y 7XpzPhOKN7bxwC/ie9RPUi9Yqf9Sbfc+c2/saFJqLuj9EX8EWk4H4vU0+c170LBOh7ou/jCnIEB d X-Google-Smtp-Source: AGHT+IFg280W0j0pbS7TwJCFcbsbk/l+FDAHVCzXxE9Q2bMQdU0DT8/PJI1IQLOLKc0svzmyc/sAlg== X-Received: by 2002:a05:600c:8a4:b0:40e:8999:6c45 with SMTP id l36-20020a05600c08a400b0040e89996c45mr1859wmp.83.1705536356597; Wed, 17 Jan 2024 16:05:56 -0800 (PST) From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= To: musl@lists.openwall.com Cc: gael.portay@rtone.fr Date: Thu, 18 Jan 2024 01:05:39 +0100 Message-ID: <20240118000540.369070-3-gael.portay@rtone.fr> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240118000540.369070-1-gael.portay@rtone.fr> References: <20240118000540.369070-1-gael.portay@rtone.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH 2/3] bits/syscall.h: add __NR_fchmodat2 from linux v6.6 the linux fchmodat syscall lacks a flag argument that is necessary to implement the posix api, see linux commit 09da082b07bbae1c11d9560c8502800039aebcea fs: Add fchmodat2() linux commit 78252deb023cf0879256fcfbafe37022c390762b arch: Register fchmodat2, usually as syscall 452 --- arch/arm/bits/syscall.h.in | 1 + arch/i386/bits/syscall.h.in | 1 + arch/m68k/bits/syscall.h.in | 1 + arch/microblaze/bits/syscall.h.in | 1 + arch/mips/bits/syscall.h.in | 1 + arch/mips64/bits/syscall.h.in | 1 + arch/mipsn32/bits/syscall.h.in | 1 + arch/or1k/bits/syscall.h.in | 1 + arch/powerpc/bits/syscall.h.in | 1 + arch/powerpc64/bits/syscall.h.in | 1 + arch/riscv64/bits/syscall.h.in | 1 + arch/s390x/bits/syscall.h.in | 1 + arch/sh/bits/syscall.h.in | 1 + arch/x32/bits/syscall.h.in | 1 + arch/x86_64/bits/syscall.h.in | 1 + 15 files changed, 15 insertions(+) diff --git a/arch/arm/bits/syscall.h.in b/arch/arm/bits/syscall.h.in index 048fdea7..e5b9ca9d 100644 --- a/arch/arm/bits/syscall.h.in +++ b/arch/arm/bits/syscall.h.in @@ -399,6 +399,7 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 #define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_cacheflush 0x0f0002 diff --git a/arch/i386/bits/syscall.h.in b/arch/i386/bits/syscall.h.in index 46ffe1d9..e746d58c 100644 --- a/arch/i386/bits/syscall.h.in +++ b/arch/i386/bits/syscall.h.in @@ -436,4 +436,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/m68k/bits/syscall.h.in b/arch/m68k/bits/syscall.h.in index a0c63323..43030eea 100644 --- a/arch/m68k/bits/syscall.h.in +++ b/arch/m68k/bits/syscall.h.in @@ -416,3 +416,4 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/microblaze/bits/syscall.h.in b/arch/microblaze/bits/syscall.h.in index 931d7919..48669e4f 100644 --- a/arch/microblaze/bits/syscall.h.in +++ b/arch/microblaze/bits/syscall.h.in @@ -437,4 +437,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/mips/bits/syscall.h.in b/arch/mips/bits/syscall.h.in index 63e3503a..eaba97c6 100644 --- a/arch/mips/bits/syscall.h.in +++ b/arch/mips/bits/syscall.h.in @@ -418,4 +418,5 @@ #define __NR_landlock_create_ruleset 4444 #define __NR_landlock_add_rule 4445 #define __NR_landlock_restrict_self 4446 +#define __NR_fchmodat2 4452 diff --git a/arch/mips64/bits/syscall.h.in b/arch/mips64/bits/syscall.h.in index b89965d1..c1f8f399 100644 --- a/arch/mips64/bits/syscall.h.in +++ b/arch/mips64/bits/syscall.h.in @@ -348,4 +348,5 @@ #define __NR_landlock_create_ruleset 5444 #define __NR_landlock_add_rule 5445 #define __NR_landlock_restrict_self 5446 +#define __NR_fchmodat2 5452 diff --git a/arch/mipsn32/bits/syscall.h.in b/arch/mipsn32/bits/syscall.h.in index bb2d04a8..9d952459 100644 --- a/arch/mipsn32/bits/syscall.h.in +++ b/arch/mipsn32/bits/syscall.h.in @@ -372,4 +372,5 @@ #define __NR_landlock_create_ruleset 6444 #define __NR_landlock_add_rule 6445 #define __NR_landlock_restrict_self 6446 +#define __NR_fchmodat2 6452 diff --git a/arch/or1k/bits/syscall.h.in b/arch/or1k/bits/syscall.h.in index 2b5f2052..b24fd784 100644 --- a/arch/or1k/bits/syscall.h.in +++ b/arch/or1k/bits/syscall.h.in @@ -321,4 +321,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/powerpc/bits/syscall.h.in b/arch/powerpc/bits/syscall.h.in index b1605a58..5dcab5a1 100644 --- a/arch/powerpc/bits/syscall.h.in +++ b/arch/powerpc/bits/syscall.h.in @@ -425,4 +425,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/powerpc64/bits/syscall.h.in b/arch/powerpc64/bits/syscall.h.in index b3a8fba0..4a6d7e3c 100644 --- a/arch/powerpc64/bits/syscall.h.in +++ b/arch/powerpc64/bits/syscall.h.in @@ -397,4 +397,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in index b534afe8..1e610e53 100644 --- a/arch/riscv64/bits/syscall.h.in +++ b/arch/riscv64/bits/syscall.h.in @@ -299,6 +299,7 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 #define __NR_sysriscv __NR_arch_specific_syscall #define __NR_riscv_flush_icache (__NR_sysriscv + 15) diff --git a/arch/s390x/bits/syscall.h.in b/arch/s390x/bits/syscall.h.in index dfc38479..6c0cdf93 100644 --- a/arch/s390x/bits/syscall.h.in +++ b/arch/s390x/bits/syscall.h.in @@ -362,4 +362,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/sh/bits/syscall.h.in b/arch/sh/bits/syscall.h.in index ff14f54d..5e5d5ff0 100644 --- a/arch/sh/bits/syscall.h.in +++ b/arch/sh/bits/syscall.h.in @@ -409,4 +409,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 diff --git a/arch/x32/bits/syscall.h.in b/arch/x32/bits/syscall.h.in index 5d22fa17..69bd42d5 100644 --- a/arch/x32/bits/syscall.h.in +++ b/arch/x32/bits/syscall.h.in @@ -308,6 +308,7 @@ #define __NR_landlock_create_ruleset (0x40000000 + 444) #define __NR_landlock_add_rule (0x40000000 + 445) #define __NR_landlock_restrict_self (0x40000000 + 446) +#define __NR_fchmodat2 (0x40000000 + 452) #define __NR_rt_sigaction (0x40000000 + 512) diff --git a/arch/x86_64/bits/syscall.h.in b/arch/x86_64/bits/syscall.h.in index c3882de7..f83a0987 100644 --- a/arch/x86_64/bits/syscall.h.in +++ b/arch/x86_64/bits/syscall.h.in @@ -355,4 +355,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_fchmodat2 452 -- 2.43.0