Home
last modified time | relevance | path

Searched refs:gid_map (Results 1 – 5 of 5) sorted by relevance

/linux-6.15/fs/
H A Dmnt_idmapping.c22 struct uid_gid_map gid_map; member
135 return VFSGIDT_INIT_RAW(map_id_down(&idmap->gid_map, gid)); in make_vfsgid()
188 gid = map_id_up(&idmap->gid_map, __vfsgid_val(vfsgid)); in from_vfsgid()
280 if (idmap->gid_map.nr_extents > UID_GID_MAP_MAX_BASE_EXTENTS) { in free_mnt_idmap()
281 kfree(idmap->gid_map.forward); in free_mnt_idmap()
282 kfree(idmap->gid_map.reverse); in free_mnt_idmap()
299 ret = copy_mnt_idmap(&mnt_userns->gid_map, &idmap->gid_map); in alloc_mnt_idmap()
355 map = &idmap->gid_map; in statmount_mnt_idmap()
356 map_up = &current_user_ns()->gid_map; in statmount_mnt_idmap()
/linux-6.15/kernel/
H A Duser_namespace.c204 if (ns->gid_map.nr_extents > UID_GID_MAP_MAX_BASE_EXTENTS) { in free_user_ns()
205 kfree(ns->gid_map.forward); in free_user_ns()
206 kfree(ns->gid_map.reverse); in free_user_ns()
490 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid()
509 return map_id_up(&targ->gid_map, __kgid_val(kgid)); in from_kgid()
700 return m_start(seq, ppos, &ns->gid_map); in gid_m_start()
1149 &ns->gid_map, &ns->parent->gid_map); in proc_gid_map_write()
1274 if (ns->gid_map.nr_extents != 0) in proc_setgroups_write()
1298 allowed = ns->gid_map.nr_extents != 0; in userns_may_setgroups()
H A Duser.c48 .gid_map = {
/linux-6.15/tools/testing/selftests/filesystems/
H A Dutils.c313 struct id_map gid_map = { in get_userns_fd() local
322 gid_mapl.elem = &gid_map; in get_userns_fd()
/linux-6.15/include/linux/
H A Duser_namespace.h78 struct uid_gid_map gid_map; member