Home
last modified time | relevance | path

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

/linux/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/kernel/
H A Duser_namespace.c206 if (ns->gid_map.nr_extents > UID_GID_MAP_MAX_BASE_EXTENTS) { in free_user_ns()
207 kfree(ns->gid_map.forward); in free_user_ns()
208 kfree(ns->gid_map.reverse); in free_user_ns()
493 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid()
512 return map_id_up(&targ->gid_map, __kgid_val(kgid)); in from_kgid()
703 return m_start(seq, ppos, &ns->gid_map); in gid_m_start()
1152 &ns->gid_map, &ns->parent->gid_map); in proc_gid_map_write()
1277 if (ns->gid_map.nr_extents != 0) in proc_setgroups_write()
1301 allowed = ns->gid_map.nr_extents != 0; in userns_may_setgroups()
H A Duser.c48 .gid_map = {
/linux/tools/testing/selftests/filesystems/
H A Dutils.c316 struct id_map gid_map = { in get_userns_fd() local
325 gid_mapl.elem = &gid_map; in get_userns_fd()
/linux/include/linux/
H A Duser_namespace.h78 struct uid_gid_map gid_map; member