mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
uidgid: add map_id_range_up()
Add map_id_range_up() to verify that the full kernel id range can be mapped up in a given idmapping. This will be used in follow-up patches. Link: https://lore.kernel.org/r/20250204-work-mnt_idmap-statmount-v2-1-007720f39f2e@kernel.org Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
@@ -132,6 +132,7 @@ static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid)
|
||||
|
||||
u32 map_id_down(struct uid_gid_map *map, u32 id);
|
||||
u32 map_id_up(struct uid_gid_map *map, u32 id);
|
||||
u32 map_id_range_up(struct uid_gid_map *map, u32 id, u32 count);
|
||||
|
||||
#else
|
||||
|
||||
@@ -186,6 +187,11 @@ static inline u32 map_id_down(struct uid_gid_map *map, u32 id)
|
||||
return id;
|
||||
}
|
||||
|
||||
static inline u32 map_id_range_up(struct uid_gid_map *map, u32 id, u32 count)
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
static inline u32 map_id_up(struct uid_gid_map *map, u32 id)
|
||||
{
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user