/dports/multimedia/v4l_compat/linux-5.13-rc2/kernel/ |
H A D | ucount.c | 123 struct ucounts *ucounts; in find_ucounts() local 126 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) in find_ucounts() 135 struct ucounts *ucounts, *new; in get_ucounts() local 139 if (!ucounts) { in get_ucounts() 152 if (ucounts) { in get_ucounts() 164 return ucounts; in get_ucounts() 167 static void put_ucounts(struct ucounts *ucounts) in put_ucounts() argument 199 struct ucounts *ucounts, *iter, *bad; in inc_ucount() local 202 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 212 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() [all …]
|
H A D | utsname.c | 20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() 25 static void dec_uts_namespaces(struct ucounts *ucounts) in dec_uts_namespaces() argument 27 dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES); in dec_uts_namespaces() 49 struct ucounts *ucounts; in clone_uts_ns() local 53 ucounts = inc_uts_namespaces(user_ns); in clone_uts_ns() 54 if (!ucounts) in clone_uts_ns() 66 ns->ucounts = ucounts; in clone_uts_ns() 78 dec_uts_namespaces(ucounts); in clone_uts_ns() 108 dec_uts_namespaces(ns->ucounts); in free_uts_ns()
|
H A D | pid_namespace.c | 60 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() 65 static void dec_pid_namespaces(struct ucounts *ucounts) in dec_pid_namespaces() argument 67 dec_ucount(ucounts, UCOUNT_PID_NAMESPACES); in dec_pid_namespaces() 75 struct ucounts *ucounts; in create_pid_namespace() local 85 ucounts = inc_pid_namespaces(user_ns); in create_pid_namespace() 86 if (!ucounts) in create_pid_namespace() 109 ns->ucounts = ucounts; in create_pid_namespace() 118 dec_pid_namespaces(ucounts); in create_pid_namespace() 127 dec_pid_namespaces(ns->ucounts); in delayed_free_pidns()
|
H A D | user_namespace.c | 32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() 37 static void dec_user_namespaces(struct ucounts *ucounts) in dec_user_namespaces() argument 39 return dec_ucount(ucounts, UCOUNT_USER_NAMESPACES); in dec_user_namespaces() 74 struct ucounts *ucounts; in create_user_ns() local 81 ucounts = inc_user_namespaces(parent_ns, owner); in create_user_ns() 82 if (!ucounts) in create_user_ns() 125 ns->ucounts = ucounts; in create_user_ns() 150 dec_user_namespaces(ucounts); in create_user_ns() 181 struct ucounts *ucounts = ns->ucounts; in free_user_ns() local 199 dec_user_namespaces(ucounts); in free_user_ns()
|
/dports/multimedia/libv4l/linux-5.13-rc2/kernel/ |
H A D | ucount.c | 123 struct ucounts *ucounts; in find_ucounts() local 126 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) in find_ucounts() 135 struct ucounts *ucounts, *new; in get_ucounts() local 139 if (!ucounts) { in get_ucounts() 152 if (ucounts) { in get_ucounts() 164 return ucounts; in get_ucounts() 167 static void put_ucounts(struct ucounts *ucounts) in put_ucounts() argument 199 struct ucounts *ucounts, *iter, *bad; in inc_ucount() local 202 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 212 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() [all …]
|
H A D | utsname.c | 20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() 25 static void dec_uts_namespaces(struct ucounts *ucounts) in dec_uts_namespaces() argument 27 dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES); in dec_uts_namespaces() 49 struct ucounts *ucounts; in clone_uts_ns() local 53 ucounts = inc_uts_namespaces(user_ns); in clone_uts_ns() 54 if (!ucounts) in clone_uts_ns() 66 ns->ucounts = ucounts; in clone_uts_ns() 78 dec_uts_namespaces(ucounts); in clone_uts_ns() 108 dec_uts_namespaces(ns->ucounts); in free_uts_ns()
|
H A D | pid_namespace.c | 60 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() 65 static void dec_pid_namespaces(struct ucounts *ucounts) in dec_pid_namespaces() argument 67 dec_ucount(ucounts, UCOUNT_PID_NAMESPACES); in dec_pid_namespaces() 75 struct ucounts *ucounts; in create_pid_namespace() local 85 ucounts = inc_pid_namespaces(user_ns); in create_pid_namespace() 86 if (!ucounts) in create_pid_namespace() 109 ns->ucounts = ucounts; in create_pid_namespace() 118 dec_pid_namespaces(ucounts); in create_pid_namespace() 127 dec_pid_namespaces(ns->ucounts); in delayed_free_pidns()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/kernel/ |
H A D | ucount.c | 123 struct ucounts *ucounts; in find_ucounts() local 126 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) in find_ucounts() 135 struct ucounts *ucounts, *new; in get_ucounts() local 139 if (!ucounts) { in get_ucounts() 152 if (ucounts) { in get_ucounts() 164 return ucounts; in get_ucounts() 167 static void put_ucounts(struct ucounts *ucounts) in put_ucounts() argument 199 struct ucounts *ucounts, *iter, *bad; in inc_ucount() local 202 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 212 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() [all …]
|
H A D | utsname.c | 20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() 25 static void dec_uts_namespaces(struct ucounts *ucounts) in dec_uts_namespaces() argument 27 dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES); in dec_uts_namespaces() 49 struct ucounts *ucounts; in clone_uts_ns() local 53 ucounts = inc_uts_namespaces(user_ns); in clone_uts_ns() 54 if (!ucounts) in clone_uts_ns() 66 ns->ucounts = ucounts; in clone_uts_ns() 78 dec_uts_namespaces(ucounts); in clone_uts_ns() 108 dec_uts_namespaces(ns->ucounts); in free_uts_ns()
|
H A D | pid_namespace.c | 60 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() 65 static void dec_pid_namespaces(struct ucounts *ucounts) in dec_pid_namespaces() argument 67 dec_ucount(ucounts, UCOUNT_PID_NAMESPACES); in dec_pid_namespaces() 75 struct ucounts *ucounts; in create_pid_namespace() local 85 ucounts = inc_pid_namespaces(user_ns); in create_pid_namespace() 86 if (!ucounts) in create_pid_namespace() 109 ns->ucounts = ucounts; in create_pid_namespace() 118 dec_pid_namespaces(ucounts); in create_pid_namespace() 127 dec_pid_namespaces(ns->ucounts); in delayed_free_pidns()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/fs/notify/inotify/ |
H A D | inotify.h | 36 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument 38 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances() 41 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument 43 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches() 46 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument 48 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
|
/dports/multimedia/libv4l/linux-5.13-rc2/fs/notify/inotify/ |
H A D | inotify.h | 36 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument 38 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances() 41 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument 43 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches() 46 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument 48 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/fs/notify/inotify/ |
H A D | inotify.h | 36 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument 38 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances() 41 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument 43 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches() 46 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument 48 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/kernel/cgroup/ |
H A D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() 17 static void dec_cgroup_namespaces(struct ucounts *ucounts) in dec_cgroup_namespaces() argument 19 dec_ucount(ucounts, UCOUNT_CGROUP_NAMESPACES); in dec_cgroup_namespaces() 43 dec_cgroup_namespaces(ns->ucounts); in free_cgroup_ns() 55 struct ucounts *ucounts; in copy_cgroup_ns() local 69 ucounts = inc_cgroup_namespaces(user_ns); in copy_cgroup_ns() 70 if (!ucounts) in copy_cgroup_ns() 82 dec_cgroup_namespaces(ucounts); in copy_cgroup_ns() 87 new_ns->ucounts = ucounts; in copy_cgroup_ns()
|
/dports/multimedia/libv4l/linux-5.13-rc2/kernel/cgroup/ |
H A D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() 17 static void dec_cgroup_namespaces(struct ucounts *ucounts) in dec_cgroup_namespaces() argument 19 dec_ucount(ucounts, UCOUNT_CGROUP_NAMESPACES); in dec_cgroup_namespaces() 43 dec_cgroup_namespaces(ns->ucounts); in free_cgroup_ns() 55 struct ucounts *ucounts; in copy_cgroup_ns() local 69 ucounts = inc_cgroup_namespaces(user_ns); in copy_cgroup_ns() 70 if (!ucounts) in copy_cgroup_ns() 82 dec_cgroup_namespaces(ucounts); in copy_cgroup_ns() 87 new_ns->ucounts = ucounts; in copy_cgroup_ns()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/kernel/cgroup/ |
H A D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() 17 static void dec_cgroup_namespaces(struct ucounts *ucounts) in dec_cgroup_namespaces() argument 19 dec_ucount(ucounts, UCOUNT_CGROUP_NAMESPACES); in dec_cgroup_namespaces() 43 dec_cgroup_namespaces(ns->ucounts); in free_cgroup_ns() 55 struct ucounts *ucounts; in copy_cgroup_ns() local 69 ucounts = inc_cgroup_namespaces(user_ns); in copy_cgroup_ns() 70 if (!ucounts) in copy_cgroup_ns() 82 dec_cgroup_namespaces(ucounts); in copy_cgroup_ns() 87 new_ns->ucounts = ucounts; in copy_cgroup_ns()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/ipc/ |
H A D | namespace.c | 22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() 27 static void dec_ipc_namespaces(struct ucounts *ucounts) in dec_ipc_namespaces() argument 29 dec_ucount(ucounts, UCOUNT_IPC_NAMESPACES); in dec_ipc_namespaces() 36 struct ucounts *ucounts; in create_ipc_ns() local 40 ucounts = inc_ipc_namespaces(user_ns); in create_ipc_ns() 41 if (!ucounts) in create_ipc_ns() 56 ns->ucounts = ucounts; in create_ipc_ns() 74 dec_ipc_namespaces(ucounts); in create_ipc_ns() 128 dec_ipc_namespaces(ns->ucounts); in free_ipc_ns()
|
/dports/multimedia/libv4l/linux-5.13-rc2/ipc/ |
H A D | namespace.c | 22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() 27 static void dec_ipc_namespaces(struct ucounts *ucounts) in dec_ipc_namespaces() argument 29 dec_ucount(ucounts, UCOUNT_IPC_NAMESPACES); in dec_ipc_namespaces() 36 struct ucounts *ucounts; in create_ipc_ns() local 40 ucounts = inc_ipc_namespaces(user_ns); in create_ipc_ns() 41 if (!ucounts) in create_ipc_ns() 56 ns->ucounts = ucounts; in create_ipc_ns() 74 dec_ipc_namespaces(ucounts); in create_ipc_ns() 128 dec_ipc_namespaces(ns->ucounts); in free_ipc_ns()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/ipc/ |
H A D | namespace.c | 22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() 27 static void dec_ipc_namespaces(struct ucounts *ucounts) in dec_ipc_namespaces() argument 29 dec_ucount(ucounts, UCOUNT_IPC_NAMESPACES); in dec_ipc_namespaces() 36 struct ucounts *ucounts; in create_ipc_ns() local 40 ucounts = inc_ipc_namespaces(user_ns); in create_ipc_ns() 41 if (!ucounts) in create_ipc_ns() 56 ns->ucounts = ucounts; in create_ipc_ns() 74 dec_ipc_namespaces(ucounts); in create_ipc_ns() 128 dec_ipc_namespaces(ns->ucounts); in free_ipc_ns()
|
/dports/multimedia/libv4l/linux-5.13-rc2/include/linux/ |
H A D | user_namespace.h | 38 struct ucounts; 94 struct ucounts *ucounts; member 98 struct ucounts { struct 110 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); argument 111 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/linux/ |
H A D | user_namespace.h | 38 struct ucounts; 94 struct ucounts *ucounts; member 98 struct ucounts { struct 110 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); argument 111 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/linux/ |
H A D | user_namespace.h | 38 struct ucounts; 94 struct ucounts *ucounts; member 98 struct ucounts { struct 110 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); argument 111 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/kernel/time/ |
H A D | namespace.c | 59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() 64 static void dec_time_namespaces(struct ucounts *ucounts) in dec_time_namespaces() argument 66 dec_ucount(ucounts, UCOUNT_TIME_NAMESPACES); in dec_time_namespaces() 82 struct ucounts *ucounts; in clone_time_ns() local 86 ucounts = inc_time_namespaces(user_ns); in clone_time_ns() 87 if (!ucounts) in clone_time_ns() 105 ns->ucounts = ucounts; in clone_time_ns() 117 dec_time_namespaces(ucounts); in clone_time_ns() 231 dec_time_namespaces(ns->ucounts); in free_time_ns()
|
/dports/multimedia/libv4l/linux-5.13-rc2/kernel/time/ |
H A D | namespace.c | 59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() 64 static void dec_time_namespaces(struct ucounts *ucounts) in dec_time_namespaces() argument 66 dec_ucount(ucounts, UCOUNT_TIME_NAMESPACES); in dec_time_namespaces() 82 struct ucounts *ucounts; in clone_time_ns() local 86 ucounts = inc_time_namespaces(user_ns); in clone_time_ns() 87 if (!ucounts) in clone_time_ns() 105 ns->ucounts = ucounts; in clone_time_ns() 117 dec_time_namespaces(ucounts); in clone_time_ns() 231 dec_time_namespaces(ns->ucounts); in free_time_ns()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/kernel/time/ |
H A D | namespace.c | 59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() 64 static void dec_time_namespaces(struct ucounts *ucounts) in dec_time_namespaces() argument 66 dec_ucount(ucounts, UCOUNT_TIME_NAMESPACES); in dec_time_namespaces() 82 struct ucounts *ucounts; in clone_time_ns() local 86 ucounts = inc_time_namespaces(user_ns); in clone_time_ns() 87 if (!ucounts) in clone_time_ns() 105 ns->ucounts = ucounts; in clone_time_ns() 117 dec_time_namespaces(ucounts); in clone_time_ns() 231 dec_time_namespaces(ns->ucounts); in free_time_ns()
|