From 44c70b4e4141349722db461cffa40ca724a1a468 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 4 Aug 2026 01:36:41 +0200 Subject: [PATCH] musl1.1: backport MS_NOSYMFOLLOW --- ...-add-MS_NOSYMFOLLOW-from-linux-v5.10.patch | 29 +++++++++++++++++++ srcpkgs/musl1.1/template | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/musl1.1/patches/0001-sys-mount.h-add-MS_NOSYMFOLLOW-from-linux-v5.10.patch diff --git a/srcpkgs/musl1.1/patches/0001-sys-mount.h-add-MS_NOSYMFOLLOW-from-linux-v5.10.patch b/srcpkgs/musl1.1/patches/0001-sys-mount.h-add-MS_NOSYMFOLLOW-from-linux-v5.10.patch new file mode 100644 index 00000000000..2858552cee9 --- /dev/null +++ b/srcpkgs/musl1.1/patches/0001-sys-mount.h-add-MS_NOSYMFOLLOW-from-linux-v5.10.patch @@ -0,0 +1,29 @@ +From a7456524d7bc95db76998804c8dc4bcfbeccab22 Mon Sep 17 00:00:00 2001 +From: Szabolcs Nagy +Date: Sat, 19 Dec 2020 20:56:23 +0000 +Subject: [PATCH] sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10 + +path resolution does not follow symlinks on nosymfollow mounts (but +readlink still does), see + + linux commit dab741e0e02bd3c4f5e2e97be74b39df2523fc6e + Add a "nosymfollow" mount option. +--- + include/sys/mount.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/sys/mount.h b/include/sys/mount.h +index 57a89c09..09bd6e9d 100644 +--- a/include/sys/mount.h ++++ b/include/sys/mount.h +@@ -31,6 +31,7 @@ extern "C" { + #define MS_REMOUNT 32 + #define MS_MANDLOCK 64 + #define MS_DIRSYNC 128 ++#define MS_NOSYMFOLLOW 256 + #define MS_NOATIME 1024 + #define MS_NODIRATIME 2048 + #define MS_BIND 4096 +-- +2.55.0 + diff --git a/srcpkgs/musl1.1/template b/srcpkgs/musl1.1/template index 41a5a7f3b46..dc50eaaff21 100644 --- a/srcpkgs/musl1.1/template +++ b/srcpkgs/musl1.1/template @@ -1,7 +1,7 @@ # Template file for 'musl1.1' pkgname=musl1.1 version=1.1.24 -revision=9 +revision=10 archs="*-musl" bootstrap=yes build_style=gnu-configure