/linux-master/kernel/ |
H A D | ucount.c | 11 struct ucounts init_ucounts = { 131 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashent) 133 struct ucounts *ucounts; local 135 hlist_for_each_entry(ucounts, hashent, node) { 136 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) 137 return ucounts; 142 static void hlist_add_ucounts(struct ucounts *ucounts) argument 150 get_ucounts_or_wrap(struct ucounts *ucounts) argument 156 get_ucounts(struct ucounts *ucounts) argument 168 struct ucounts *ucounts, *new; local 204 put_ucounts(struct ucounts *ucounts) argument 233 struct ucounts *ucounts, *iter, *bad; local 253 dec_ucount(struct ucounts *ucounts, enum ucount_type type) argument 263 inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v) argument 280 dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v) argument 293 do_dec_rlimit_put_ucounts(struct ucounts *ucounts, struct ucounts *last, enum rlimit_type type) argument 306 dec_rlimit_put_ucounts(struct ucounts *ucounts, enum rlimit_type type) argument 311 inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type) argument 343 is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) argument [all...] |
H A D | utsname.c | 20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) 25 static void dec_uts_namespaces(struct ucounts *ucounts) argument 27 dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES); 49 struct ucounts *ucounts; local 53 ucounts = inc_uts_namespaces(user_ns); 54 if (!ucounts) 66 ns->ucounts = ucounts; [all...] |
H A D | pid_namespace.c | 63 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) 68 static void dec_pid_namespaces(struct ucounts *ucounts) argument 70 dec_ucount(ucounts, UCOUNT_PID_NAMESPACES); 78 struct ucounts *ucounts; local 88 ucounts = inc_pid_namespaces(user_ns); 89 if (!ucounts) 112 ns->ucounts = ucounts; [all...] |
H A D | cred.c | 62 .ucounts = &init_ucounts, 86 if (cred->ucounts) 87 put_ucounts(cred->ucounts); 238 new->ucounts = get_ucounts(new->ucounts); 239 if (!new->ucounts) 437 inc_rlimit_ucounts(new->ucounts, UCOUNT_RLIMIT_NPROC, 1); 441 dec_rlimit_ucounts(old->ucounts, UCOUNT_RLIMIT_NPROC, 1); 585 struct ucounts *new_ucounts, *old_ucounts = new->ucounts; [all...] |
H A D | user_namespace.c | 33 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) 38 static void dec_user_namespaces(struct ucounts *ucounts) argument 40 return dec_ucount(ucounts, UCOUNT_USER_NAMESPACES); 87 struct ucounts *ucounts; local 94 ucounts = inc_user_namespaces(parent_ns, owner); 95 if (!ucounts) 146 ns->ucounts = ucounts; 202 struct ucounts *ucounts = ns->ucounts; local [all...] |
/linux-master/fs/notify/inotify/ |
H A D | inotify.h | 55 static inline void dec_inotify_instances(struct ucounts *ucounts) argument 57 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); 60 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) argument 62 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); 65 static inline void dec_inotify_watches(struct ucounts *ucounts) argument [all...] |
H A D | inotify_fsnotify.c | 183 if (group->inotify_data.ucounts) 184 dec_inotify_instances(group->inotify_data.ucounts);
|
H A D | inotify_user.c | 533 dec_inotify_watches(group->inotify_data.ucounts); 613 if (!inc_inotify_watches(group->inotify_data.ucounts)) { 680 group->inotify_data.ucounts = inc_ucount(current_user_ns(), 684 if (!group->inotify_data.ucounts) {
|
/linux-master/include/linux/ |
H A D | user_namespace.h | 38 struct ucounts; 106 struct ucounts *ucounts; member in struct:user_namespace 115 struct ucounts { struct 125 extern struct ucounts init_ucounts; 129 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); 130 void dec_ucount(struct ucounts *ucounts, enum ucount_type type); 131 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid); 132 struct ucounts * __must_chec 135 get_rlimit_value(struct ucounts *ucounts, enum rlimit_type type) argument [all...] |
H A D | signal_types.h | 16 struct ucounts; 26 struct ucounts *ucounts; member in struct:sigqueue
|
H A D | utsname.h | 27 struct ucounts *ucounts; member in struct:uts_namespace
|
H A D | pid_namespace.h | 38 struct ucounts *ucounts; member in struct:pid_namespace
|
H A D | ipc_namespace.h | 76 struct ucounts *ucounts; member in struct:ipc_namespace
|
H A D | cred.h | 140 struct ucounts *ucounts; member in struct:cred 365 #define task_ucounts(task) (task_cred_xxx((task), ucounts)) 382 #define current_ucounts() (current_cred_xxx(ucounts))
|
H A D | time_namespace.h | 24 struct ucounts *ucounts; member in struct:time_namespace
|
H A D | shmem_fs.h | 98 extern int shmem_lock(struct file *file, int lock, struct ucounts *ucounts);
|
/linux-master/kernel/cgroup/ |
H A D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) 17 static void dec_cgroup_namespaces(struct ucounts *ucounts) argument 19 dec_ucount(ucounts, UCOUNT_CGROUP_NAMESPACES); 43 dec_cgroup_namespaces(ns->ucounts); 55 struct ucounts *ucounts; local 69 ucounts = inc_cgroup_namespaces(user_ns); 70 if (!ucounts) 82 dec_cgroup_namespaces(ucounts); [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | quotacheck.h | 41 struct xfarray *ucounts; member in struct:xqcheck 65 return xqc->ucounts;
|
H A D | quotacheck.c | 235 if (!xqc->ucounts) 330 counts = xqc->ucounts; 437 if (xqc->ucounts) { 439 error = xqcheck_update_incore_counts(xqc, xqc->ucounts, id, 1, 724 if (xqc->ucounts) { 725 xfarray_destroy(xqc->ucounts); 726 xqc->ucounts = NULL; 761 sizeof(struct xqcheck_dquot), &xqc->ucounts); 846 if (xqc->ucounts) {
|
/linux-master/ipc/ |
H A D | namespace.c | 28 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) 33 static void dec_ipc_namespaces(struct ucounts *ucounts) argument 35 dec_ucount(ucounts, UCOUNT_IPC_NAMESPACES); 42 struct ucounts *ucounts; local 47 ucounts = inc_ipc_namespaces(user_ns); 48 if (!ucounts) { 71 ns->ucounts = ucounts; [all...] |
H A D | mqueue.c | 148 struct ucounts *ucounts; /* user who created, for accounting */ member in struct:mqueue_inode_info 322 info->ucounts = NULL; /* set when all is ok */ 372 info->ucounts = get_ucounts(current_ucounts()); 373 if (info->ucounts) { 377 msgqueue = inc_rlimit_ucounts(info->ucounts, UCOUNT_RLIMIT_MSGQUEUE, mq_bytes); 379 dec_rlimit_ucounts(info->ucounts, UCOUNT_RLIMIT_MSGQUEUE, mq_bytes); 381 put_ucounts(info->ucounts); 382 info->ucounts = NULL; 537 if (info->ucounts) { [all...] |
/linux-master/kernel/time/ |
H A D | namespace.c | 59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) 64 static void dec_time_namespaces(struct ucounts *ucounts) argument 66 dec_ucount(ucounts, UCOUNT_TIME_NAMESPACES); 82 struct ucounts *ucounts; local 86 ucounts = inc_time_namespaces(user_ns); 87 if (!ucounts) 105 ns->ucounts = ucounts; [all...] |
/linux-master/mm/ |
H A D | mlock.c | 799 int user_shm_lock(size_t size, struct ucounts *ucounts) argument 810 memlock = inc_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); 813 dec_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); 816 if (!get_ucounts(ucounts)) { 817 dec_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); 827 void user_shm_unlock(size_t size, struct ucounts *ucounts) argument 830 dec_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, (size + PAGE_SIZE - 1) >> PAGE_SHIFT); 832 put_ucounts(ucounts); [all...] |
/linux-master/fs/ |
H A D | mount.h | 13 struct ucounts *ucounts; member in struct:mnt_namespace
|
/linux-master/net/core/ |
H A D | net_namespace.c | 409 static struct ucounts *inc_net_namespaces(struct user_namespace *ns) 414 static void dec_net_namespaces(struct ucounts *ucounts) argument 416 dec_ucount(ucounts, UCOUNT_NET_NAMESPACES); 479 struct ucounts *ucounts; local 486 ucounts = inc_net_namespaces(user_ns); 487 if (!ucounts) 498 net->ucounts = ucounts; [all...] |