[PATCH 6/9] man/man2/statmount.2: Document STATMOUNT_OPT_SEC_ARRAY
Bhavik Sachdev <[email protected]> Wed, 28 Jan 2026 19:27:35 +0530
| Newsgroups | dev.linux.lists.criu,org.kernel.vger.linux-man |
|---|---|
| Message-ID | <60fa4a70cdd5f9591a20a17f21bc26c3f208814d.1769608658.git.b.sachdev1904@gmail.com> |
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 <[email protected]> --- man/man2/statmount.2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man/man2/statmount.2 b/man/man2/statmount.2 index e9e1f28e7..4dc312ec8 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 @@ -293,6 +296,17 @@ .SS The returned information They can be iterated over the help of .IR smbuf.opt_num . .TP +.I smbuf.opt_sec_num +The number of security options set on the mount. +.TP +.TP +.I smbuf.opt_sec_array +The offset to the location in the +.I smbuf.str +buffer that contains security options separated by null bytes. +They can be iterated over the help of +.IR smbuf.opt_sec_num . +.TP .SH RETURN VALUE On success, zero is returned. On error, \-1 is returned, and -- 2.52.0