[PATCH v2 06/10] man/man2/statmount.2: Document STATMOUNT_OPT_SEC_ARRAY
From: Bhavik Sachdev <hidden>
Date: 2026-02-22 14:52:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
Document STATMOUNT_OPT_SEC_ARRAY flag and the corresponding fields introduced by it. This text is based this commit message [1]. Retrieves only security options separated by null bytes. Link [1]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aefff51e1c2986e16f2780ca8e4c97b784800ab5> Signed-off-by: Bhavik Sachdev <redacted> --- man/man2/statmount.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/man/man2/statmount.2 b/man/man2/statmount.2
index c238a3d9f..c4200d76e 100644
--- a/man/man2/statmount.2
+++ b/man/man2/statmount.2@@ -54,6 +54,8 @@ .SH SYNOPSIS .B " __u32 sb_source;" .B " __u32 opt_num;" .B " __u32 opt_array;" +.B " __u32 opt_sec_num;" +.B " __u32 opt_sec_array;" .B " char str[];" .B }; .EE
@@ -117,6 +119,7 @@ .SS The mnt_id_req structure STATMOUNT_FS_SUBTYPE /* Want/got fs_subtype */ STATMOUNT_SB_SOURCE /* Want/got sb_source */ STATMOUNT_OPT_ARRAY /* Want/got opt_... */ +STATMOUNT_OPT_SEC_ARRAY /* Want/got opt_sec... */ .TE .in .P
@@ -289,6 +292,16 @@ .SS The returned information buffer that contains file system options separated by null bytes. They can be iterated over with the help of .IR smbuf.opt_num . +.TP +.IR smbuf.opt_sec_num " (since Linux 6.13)" +The number of security options set on the mount. +.TP +.IR smbuf.opt_sec_array " (since Linux 6.13)" +The offset to the location in the +.I smbuf.str +buffer that contains security options separated by null bytes. +They can be iterated over with the help of +.IR smbuf.opt_sec_num . .SH RETURN VALUE On success, zero is returned. On error, \-1 is returned, and
--
2.53.0