From: Karel Zak Date: Thu, 21 Aug 2025 08:16:14 +0000 (+0200) Subject: include/mount-api-utils: update to recent kernel X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56b0d544cfd0751a8338c302a287f21786d4721e;p=thirdparty%2Futil-linux.git include/mount-api-utils: update to recent kernel Signed-off-by: Karel Zak --- diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h index e35524168..e77db0655 100644 --- a/include/mount-api-utils.h +++ b/include/mount-api-utils.h @@ -293,7 +293,12 @@ struct ul_statmount { uint32_t opt_array; /* [str] Array of nul terminated fs options */ uint32_t opt_sec_num; /* Number of security options */ uint32_t opt_sec_array; /* [str] Array of nul terminated security options */ - uint64_t __spare2[46]; + uint64_t supported_mask; /* Mask flags that this kernel supports */ + uint32_t mnt_uidmap_num; /* Number of uid mappings */ + uint32_t mnt_uidmap; /* [str] Array of uid mappings (as seen from callers namespace) */ + uint32_t mnt_gidmap_num; /* Number of gid mappings */ + uint32_t mnt_gidmap; /* [str] Array of gid mappings (as seen from callers namespace) */ + uint64_t __spare2[43]; char str[]; /* Variable size part containing strings */ }; @@ -355,8 +360,15 @@ struct ul_statmount { #ifndef STATMOUNT_OPT_SEC_ARRAY # define STATMOUNT_OPT_SEC_ARRAY 0x00000800U /* Want/got opt_sec... */ #endif - - +#ifndef STATMOUNT_SUPPORTED_MASK +# define STATMOUNT_SUPPORTED_MASK 0x00001000U /* Want/got supported mask flags */ +#endif +#ifndef STATMOUNT_MNT_UIDMAP +# define STATMOUNT_MNT_UIDMAP 0x00002000U /* Want/got uidmap... */ +#endif +#ifndef STATMOUNT_MNT_GIDMAP +# define STATMOUNT_MNT_GIDMAP 0x00004000U /* Want/got gidmap... */ +#endif /* * Special @mnt_id values that can be passed to listmount */