Skip to content

Instantly share code, notes, and snippets.

@legionus
Created June 24, 2021 10:02
Show Gist options
  • Save legionus/8df963edc0cb772443bdb108890ca503 to your computer and use it in GitHub Desktop.
Save legionus/8df963edc0cb772443bdb108890ca503 to your computer and use it in GitHub Desktop.
$ semind search -f '%m %f:%l %C \t%s' user_namespace.uid_map
def include/linux/user_namespace.h:61 struct uid_gid_map uid_map;
-w- kernel/user.c:28 init_user_ns .uid_map = {
-r- kernel/user_namespace.c:187 free_user_ns if (ns->uid_map.nr_extents > UID_GID_MAP_MAX_BASE_EXTENTS) {
-r- kernel/user_namespace.c:188 free_user_ns kfree(ns->uid_map.forward);
-r- kernel/user_namespace.c:189 free_user_ns kfree(ns->uid_map.reverse);
m-- kernel/user_namespace.c:390 make_kuid return KUIDT_INIT(map_id_down(&ns->uid_map, uid));
m-- kernel/user_namespace.c:409 from_kuid return map_id_up(&targ->uid_map, __kuid_val(kuid));
m-- kernel/user_namespace.c:661 uid_m_start return m_start(seq, ppos, &ns->uid_map);
m-- kernel/user_namespace.c:1101 proc_uid_map_write &ns->uid_map, &ns->parent->uid_map);
m-- kernel/user_namespace.c:1101 proc_uid_map_write &ns->uid_map, &ns->parent->uid_map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment