Linux: add ST_NOSYMFOLLOW
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 27 Sep 2023 22:37:12 +0000 (15:37 -0700)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 2 Oct 2023 13:54:27 +0000 (10:54 -0300)
Linux v5.10 added a mount option MS_NOSYMFOLLOW, which was added to
glibc in commit 0ca21427d950755b.

Add the corresponding statfs/statvfs flag bit, ST_NOSYMFOLLOW.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/bits/statvfs.h

index cf98460..ed965f2 100644 (file)
@@ -105,7 +105,9 @@ enum
 # define ST_NOATIME    ST_NOATIME
   ST_NODIRATIME = 2048,                /* Do not update directory access times.  */
 # define ST_NODIRATIME ST_NODIRATIME
-  ST_RELATIME = 4096           /* Update atime relative to mtime/ctime.  */
+  ST_RELATIME = 4096,          /* Update atime relative to mtime/ctime.  */
 # define ST_RELATIME   ST_RELATIME
+  ST_NOSYMFOLLOW = 8192                /* Do not follow symlinks.  */
+# define ST_NOSYMFOLLOW        ST_NOSYMFOLLOW
 #endif /* Use GNU.  */
 };