fs/autofs/waitq.c
138
struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns;
fs/binfmt_misc.c
184
const struct user_namespace *user_ns;
fs/binfmt_misc.c
914
struct user_namespace *user_ns = sb->s_fs_info;
fs/binfmt_misc.c
929
struct user_namespace *user_ns = sb->s_user_ns;
fs/exec.c
1317
struct user_namespace *old, *user_ns;
fs/fcntl.c
310
struct user_namespace *user_ns = current_user_ns();
fs/fhandle.c
202
struct user_namespace *user_ns = current_user_ns();
fs/fuse/fuse_i.h
1061
struct user_namespace *user_ns, struct fuse_chan *fch);
fs/fuse/fuse_i.h
448
struct user_namespace *user_ns;
fs/fuse/inode.c
957
struct user_namespace *user_ns, struct fuse_chan *fch)
fs/inode.c
2757
struct user_namespace *ns;
fs/internal.h
328
struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns);
fs/mnt_idmapping.c
121
struct user_namespace *fs_userns, kgid_t kgid)
fs/mnt_idmapping.c
151
struct user_namespace *fs_userns, vfsuid_t vfsuid)
fs/mnt_idmapping.c
180
struct user_namespace *fs_userns, vfsgid_t vfsgid)
fs/mnt_idmapping.c
287
struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns)
fs/mnt_idmapping.c
54
static inline bool initial_idmapping(const struct user_namespace *ns)
fs/mnt_idmapping.c
81
struct user_namespace *fs_userns,
fs/mount.h
19
struct user_namespace *user_ns;
fs/namespace.c
111
struct user_namespace *mnt_userns;
fs/namespace.c
2295
static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *, bool);
fs/namespace.c
2567
struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns;
fs/namespace.c
3040
struct user_namespace *user_ns = mnt_ns->user_ns;
fs/namespace.c
3103
struct user_namespace *user_ns = current_user_ns();
fs/namespace.c
4177
static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns)
fs/namespace.c
4195
static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool anon)
fs/namespace.c
4233
struct user_namespace *user_ns, struct fs_struct *new_fs)
fs/namespace.c
4802
struct user_namespace *fs_userns = m->mnt_sb->s_user_ns;
fs/namespace.c
4991
struct user_namespace *mnt_userns;
fs/namespace.c
5036
mnt_userns = container_of(ns, struct user_namespace, ns);
fs/namespace.c
6484
struct user_namespace *user_ns = nsset->cred->user_ns;
fs/namespace.c
6523
static struct user_namespace *mntns_owner(struct ns_common *ns)
fs/nfs/nfs2xdr.c
263
struct user_namespace *userns)
fs/nfs/nfs2xdr.c
337
struct user_namespace *userns)
fs/nfs/nfs2xdr.c
463
struct user_namespace *userns)
fs/nfs/nfs2xdr.c
511
struct user_namespace *userns)
fs/nfs/nfs2xdr.c
524
struct user_namespace *userns)
fs/nfs/nfs2xdr.c
76
static struct user_namespace *rpc_userns(const struct rpc_clnt *clnt)
fs/nfs/nfs2xdr.c
83
static struct user_namespace *rpc_rqst_userns(const struct rpc_rqst *rqstp)
fs/nfs/nfs3xdr.c
1017
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
107
static struct user_namespace *rpc_userns(const struct rpc_clnt *clnt)
fs/nfs/nfs3xdr.c
1076
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
1121
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
1129
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
114
static struct user_namespace *rpc_rqst_userns(const struct rpc_rqst *rqstp)
fs/nfs/nfs3xdr.c
1472
struct user_namespace *userns = rpc_rqst_userns(req);
fs/nfs/nfs3xdr.c
1753
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
1778
struct user_namespace *userns = rpc_rqst_userns(req);
fs/nfs/nfs3xdr.c
1862
struct user_namespace *userns = rpc_rqst_userns(req);
fs/nfs/nfs3xdr.c
1907
struct user_namespace *userns = rpc_rqst_userns(req);
fs/nfs/nfs3xdr.c
1967
struct user_namespace *userns = rpc_userns(entry->server->client);
fs/nfs/nfs3xdr.c
2065
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
2360
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
534
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
621
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
675
struct user_namespace *userns)
fs/nfs/nfs3xdr.c
745
struct user_namespace *userns)
fs/nfs/nfs4idmap.c
73
struct user_namespace *user_ns;
fs/nfs/nfs4idmap.c
76
static struct user_namespace *idmap_userns(const struct idmap *idmap)
fs/nfs/super.c
1225
const struct user_namespace *oldns = &init_user_ns;
fs/nfs/super.c
1226
const struct user_namespace *newns = &init_user_ns;
fs/nfsd/export.c
2129
struct user_namespace *userns = m->file->f_cred->user_ns;
fs/nfsd/nfs3xdr.c
338
struct user_namespace *userns = nfsd_user_namespace(rqstp);
fs/nfsd/nfs4xdr.c
824
struct user_namespace *userns = nfsd_user_namespace(argp->rqstp);
fs/nfsd/nfsd.h
165
static inline struct user_namespace *
fs/nfsd/nfsxdr.c
217
struct user_namespace *userns = nfsd_user_namespace(rqstp);
fs/notify/fanotify/fanotify_user.c
1584
struct user_namespace *user_ns = current_user_ns();
fs/notify/fanotify/fanotify_user.c
1863
struct user_namespace *user_ns = NULL;
fs/nsfs.c
216
struct user_namespace *user_ns;
fs/nsfs.c
244
user_ns = container_of(ns, struct user_namespace, ns);
fs/nsfs.c
523
struct user_namespace *owning_ns = NULL;
fs/ntfs3/ntfs_fs.h
37
struct user_namespace;
fs/ntfs3/super.c
758
struct user_namespace *user_ns = seq_user_ns(m);
fs/open.c
742
struct user_namespace *fs_userns;
fs/overlayfs/inode.c
345
struct user_namespace *fs_userns = i_user_ns(realinode);
fs/pidfs.c
372
struct user_namespace *user_ns;
fs/pidfs.c
633
struct user_namespace *user_ns;
fs/posix_acl.c
1063
struct user_namespace *fs_userns,
fs/posix_acl.c
243
posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl)
fs/posix_acl.c
385
struct user_namespace *fs_userns = i_user_ns(inode);
fs/posix_acl.c
780
struct posix_acl *posix_acl_from_xattr(struct user_namespace *userns,
fs/posix_acl.c
840
posix_acl_to_xattr(struct user_namespace *user_ns, const struct posix_acl *acl,
fs/posix_acl.c
902
struct user_namespace *fs_userns, *caller_userns;
fs/proc/array.c
152
struct user_namespace *user_ns = seq_user_ns(m);
fs/proc/base.c
3070
struct user_namespace *ns = NULL;
fs/proc/base.c
3102
struct user_namespace *ns = seq->private;
fs/proc/base.c
3148
struct user_namespace *ns = NULL;
fs/proc/base.c
3183
struct user_namespace *ns = seq->private;
fs/proc/root.c
228
struct user_namespace *user_ns)
fs/quota/kqid.c
101
qid_t from_kqid_munged(struct user_namespace *targ, struct kqid kqid)
fs/quota/kqid.c
68
qid_t from_kqid(struct user_namespace *targ, struct kqid kqid)
fs/super.c
318
struct user_namespace *user_ns)
fs/super.c
741
struct user_namespace *user_ns = fc->global ? &init_user_ns : fc->user_ns;
fs/xfs/xfs_itable.c
71
struct user_namespace *sb_userns = mp->m_super->s_user_ns;
fs/xfs/xfs_qm.c
1858
struct user_namespace *user_ns = inode->i_sb->s_user_ns;
include/linux/binfmts.h
30
struct user_namespace *user_ns;
include/linux/bpf.h
2040
struct user_namespace *userns;
include/linux/bpf.h
63
struct user_namespace;
include/linux/capability.h
143
struct user_namespace *ns, int cap);
include/linux/capability.h
146
struct user_namespace *ns, int cap);
include/linux/capability.h
148
extern bool ns_capable(struct user_namespace *ns, int cap);
include/linux/capability.h
149
extern bool ns_capable_noaudit(struct user_namespace *ns, int cap);
include/linux/capability.h
150
extern bool ns_capable_setid(struct user_namespace *ns, int cap);
include/linux/capability.h
153
struct user_namespace *ns, int cap)
include/linux/capability.h
162
struct user_namespace *ns, int cap)
include/linux/capability.h
170
static inline bool ns_capable(struct user_namespace *ns, int cap)
include/linux/capability.h
174
static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap)
include/linux/capability.h
178
static inline bool ns_capable_setid(struct user_namespace *ns, int cap)
include/linux/capability.h
183
bool privileged_wrt_inode_uidgid(struct user_namespace *ns,
include/linux/capability.h
188
extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
include/linux/capability.h
189
extern bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns);
include/linux/capability.h
200
static inline bool checkpoint_restore_ns_capable(struct user_namespace *ns)
include/linux/capability.h
206
static inline bool checkpoint_restore_ns_capable_noaudit(struct user_namespace *ns)
include/linux/capability.h
41
struct user_namespace;
include/linux/cgroup_namespace.h
26
struct user_namespace *user_ns,
include/linux/cgroup_namespace.h
47
copy_cgroup_ns(u64 flags, struct user_namespace *user_ns,
include/linux/cgroup_namespace.h
9
struct user_namespace *user_ns;
include/linux/cred.h
143
struct user_namespace *user_ns; /* user_ns the caps and keyrings are relative to. */
include/linux/cred.h
394
extern struct user_namespace init_user_ns;
include/linux/cred.h
398
static inline struct user_namespace *current_user_ns(void)
include/linux/fs.h
1404
static inline struct user_namespace *i_user_ns(const struct inode *inode)
include/linux/fs.h
1580
struct user_namespace *fs_userns = sb->s_user_ns;
include/linux/fs/super_types.h
249
struct user_namespace *s_user_ns;
include/linux/fs/super_types.h
34
struct user_namespace;
include/linux/fs_context.h
25
struct user_namespace;
include/linux/fs_context.h
97
struct user_namespace *user_ns; /* The user namespace for this mount */
include/linux/fsnotify_backend.h
253
struct user_namespace *user_ns; /* user ns where group was created */
include/linux/inet_diag.h
77
struct user_namespace *user_ns, bool net_admin);
include/linux/ipc_namespace.h
138
struct user_namespace *user_ns, struct ipc_namespace *ns);
include/linux/ipc_namespace.h
16
struct user_namespace;
include/linux/ipc_namespace.h
160
struct user_namespace *user_ns, struct ipc_namespace *ns)
include/linux/ipc_namespace.h
75
struct user_namespace *user_ns;
include/linux/key.h
454
extern void key_free_user_ns(struct user_namespace *);
include/linux/lsm_hook_defs.h
44
LSM_HOOK(int, 0, capable, const struct cred *cred, struct user_namespace *ns,
include/linux/mnt_idmapping.h
128
struct user_namespace *fs_userns, kuid_t kuid);
include/linux/mnt_idmapping.h
13
extern struct user_namespace init_user_ns;
include/linux/mnt_idmapping.h
131
struct user_namespace *fs_userns, kgid_t kgid);
include/linux/mnt_idmapping.h
134
struct user_namespace *fs_userns, vfsuid_t vfsuid);
include/linux/mnt_idmapping.h
137
struct user_namespace *fs_userns, vfsgid_t vfsgid);
include/linux/mnt_idmapping.h
152
struct user_namespace *fs_userns,
include/linux/mnt_idmapping.h
158
static inline bool vfsuid_has_mapping(struct user_namespace *userns,
include/linux/mnt_idmapping.h
190
struct user_namespace *fs_userns,
include/linux/mnt_idmapping.h
196
static inline bool vfsgid_has_mapping(struct user_namespace *userns,
include/linux/mnt_idmapping.h
229
struct user_namespace *fs_userns)
include/linux/mnt_idmapping.h
248
struct user_namespace *fs_userns)
include/linux/mnt_idmapping.h
9
struct user_namespace;
include/linux/mnt_namespace.h
11
struct user_namespace;
include/linux/mnt_namespace.h
17
struct user_namespace *, struct fs_struct *);
include/linux/mount.h
18
struct user_namespace;
include/linux/netlink.h
354
struct user_namespace *ns, int cap);
include/linux/netlink.h
356
struct user_namespace *ns, int cap);
include/linux/ns/ns_common_types.h
139
struct user_namespace *: &(__ns)->ns, \
include/linux/ns/ns_common_types.h
140
const struct user_namespace *: &(__ns)->ns, \
include/linux/ns/ns_common_types.h
152
struct user_namespace *: USER_NS_INIT_INO, \
include/linux/ns/ns_common_types.h
163
struct user_namespace *: &init_user_ns, \
include/linux/ns/ns_common_types.h
174
struct user_namespace *: USER_NS_INIT_ID, \
include/linux/ns/ns_common_types.h
185
struct user_namespace *: (IS_ENABLED(CONFIG_USER_NS) ? &userns_operations : NULL), \
include/linux/ns/ns_common_types.h
20
struct user_namespace;
include/linux/ns/ns_common_types.h
205
X(user_namespace, CLONE_NEWUSER) \
include/linux/ns/ns_common_types.h
29
extern struct user_namespace init_user_ns;
include/linux/nsfs.h
35
struct user_namespace *: current_user_ns(), \
include/linux/nstree.h
41
struct user_namespace *: &(user_ns_tree), \
include/linux/pid_namespace.h
108
struct user_namespace *user_ns, struct pid_namespace *ns)
include/linux/pid_namespace.h
45
struct user_namespace *user_ns;
include/linux/pid_namespace.h
86
struct user_namespace *user_ns, struct pid_namespace *ns);
include/linux/posix_acl.h
18
struct user_namespace;
include/linux/posix_acl.h
98
int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
include/linux/posix_acl_xattr.h
36
struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns,
include/linux/posix_acl_xattr.h
40
posix_acl_from_xattr(struct user_namespace *user_ns, const void *value,
include/linux/posix_acl_xattr.h
47
extern void *posix_acl_to_xattr(struct user_namespace *user_ns, const struct posix_acl *acl,
include/linux/proc_ns.h
23
struct user_namespace *(*owner)(struct ns_common *ns);
include/linux/projid.h
17
struct user_namespace;
include/linux/projid.h
18
extern struct user_namespace init_user_ns;
include/linux/projid.h
53
extern kprojid_t make_kprojid(struct user_namespace *from, projid_t projid);
include/linux/projid.h
55
extern projid_t from_kprojid(struct user_namespace *to, kprojid_t projid);
include/linux/projid.h
56
extern projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t projid);
include/linux/projid.h
58
static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid)
include/linux/projid.h
65
static inline kprojid_t make_kprojid(struct user_namespace *from, projid_t projid)
include/linux/projid.h
70
static inline projid_t from_kprojid(struct user_namespace *to, kprojid_t kprojid)
include/linux/projid.h
75
static inline projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t kprojid)
include/linux/projid.h
83
static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid)
include/linux/quota.h
187
static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid)
include/linux/quota.h
79
extern qid_t from_kqid(struct user_namespace *to, struct kqid qid);
include/linux/quota.h
80
extern qid_t from_kqid_munged(struct user_namespace *to, struct kqid qid);
include/linux/quota.h
97
static inline struct kqid make_kqid(struct user_namespace *from,
include/linux/sched/exec_state.h
15
struct user_namespace *user_ns;
include/linux/sched/exec_state.h
21
struct task_exec_state *alloc_task_exec_state(struct user_namespace *user_ns);
include/linux/security.h
174
extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
include/linux/security.h
350
struct user_namespace *ns,
include/linux/security.h
697
struct user_namespace *ns,
include/linux/security.h
83
struct user_namespace;
include/linux/seq_file.h
248
static inline struct user_namespace *seq_user_ns(struct seq_file *seq)
include/linux/seq_file.h
253
extern struct user_namespace init_user_ns;
include/linux/time_namespace.h
13
struct user_namespace;
include/linux/time_namespace.h
130
struct user_namespace *user_ns,
include/linux/time_namespace.h
14
extern struct user_namespace init_user_ns;
include/linux/time_namespace.h
25
struct user_namespace *user_ns;
include/linux/time_namespace.h
52
struct user_namespace *user_ns,
include/linux/tsacct_kern.h
14
extern void bacct_add_tsk(struct user_namespace *user_ns,
include/linux/tsacct_kern.h
18
static inline void bacct_add_tsk(struct user_namespace *user_ns,
include/linux/uidgid.h
115
extern kuid_t make_kuid(struct user_namespace *from, uid_t uid);
include/linux/uidgid.h
116
extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
include/linux/uidgid.h
118
extern uid_t from_kuid(struct user_namespace *to, kuid_t uid);
include/linux/uidgid.h
119
extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
include/linux/uidgid.h
120
extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid);
include/linux/uidgid.h
121
extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
include/linux/uidgid.h
123
static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid)
include/linux/uidgid.h
128
static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid)
include/linux/uidgid.h
139
static inline kuid_t make_kuid(struct user_namespace *from, uid_t uid)
include/linux/uidgid.h
144
static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid)
include/linux/uidgid.h
149
static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid)
include/linux/uidgid.h
154
static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid)
include/linux/uidgid.h
159
static inline uid_t from_kuid_munged(struct user_namespace *to, kuid_t kuid)
include/linux/uidgid.h
167
static inline gid_t from_kgid_munged(struct user_namespace *to, kgid_t kgid)
include/linux/uidgid.h
175
static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid)
include/linux/uidgid.h
18
struct user_namespace;
include/linux/uidgid.h
180
static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid)
include/linux/uidgid.h
19
extern struct user_namespace init_user_ns;
include/linux/user_namespace.h
121
struct user_namespace *ns;
include/linux/user_namespace.h
129
extern struct user_namespace init_user_ns;
include/linux/user_namespace.h
132
bool setup_userns_sysctls(struct user_namespace *ns);
include/linux/user_namespace.h
133
void retire_userns_sysctls(struct user_namespace *ns);
include/linux/user_namespace.h
134
struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
include/linux/user_namespace.h
136
struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
include/linux/user_namespace.h
158
static inline long get_userns_rlimit_max(struct user_namespace *ns, enum rlimit_type type)
include/linux/user_namespace.h
163
static inline void set_userns_rlimit_max(struct user_namespace *ns,
include/linux/user_namespace.h
169
static inline struct user_namespace *to_user_ns(struct ns_common *ns)
include/linux/user_namespace.h
171
return container_of(ns, struct user_namespace, ns);
include/linux/user_namespace.h
176
static inline struct user_namespace *get_user_ns(struct user_namespace *ns)
include/linux/user_namespace.h
185
extern void __put_user_ns(struct user_namespace *ns);
include/linux/user_namespace.h
187
static inline void put_user_ns(struct user_namespace *ns)
include/linux/user_namespace.h
202
extern bool userns_may_setgroups(const struct user_namespace *ns);
include/linux/user_namespace.h
203
extern bool in_userns(const struct user_namespace *ancestor,
include/linux/user_namespace.h
204
const struct user_namespace *child);
include/linux/user_namespace.h
205
extern bool current_in_userns(const struct user_namespace *target_ns);
include/linux/user_namespace.h
209
static inline struct user_namespace *get_user_ns(struct user_namespace *ns)
include/linux/user_namespace.h
227
static inline void put_user_ns(struct user_namespace *ns)
include/linux/user_namespace.h
231
static inline bool userns_may_setgroups(const struct user_namespace *ns)
include/linux/user_namespace.h
236
static inline bool in_userns(const struct user_namespace *ancestor,
include/linux/user_namespace.h
237
const struct user_namespace *child)
include/linux/user_namespace.h
242
static inline bool current_in_userns(const struct user_namespace *target_ns)
include/linux/user_namespace.h
80
struct user_namespace *parent;
include/linux/uts_namespace.h
13
struct user_namespace *user_ns;
include/linux/uts_namespace.h
32
struct user_namespace *user_ns, struct uts_namespace *old_ns);
include/linux/uts_namespace.h
52
struct user_namespace *user_ns, struct uts_namespace *old_ns)
include/linux/uts_namespace.h
8
struct user_namespace;
include/linux/uts_namespace.h
9
extern struct user_namespace init_user_ns;
include/net/net_namespace.h
212
struct net *copy_net_ns(u64 flags, struct user_namespace *user_ns,
include/net/net_namespace.h
227
struct user_namespace *user_ns, struct net *old_net)
include/net/net_namespace.h
48
struct user_namespace;
include/net/net_namespace.h
93
struct user_namespace *user_ns; /* Owning user namespace */
include/net/sock.h
1779
bool sockopt_ns_capable(struct user_namespace *ns, int cap);
include/net/sock.h
3069
struct user_namespace *user_ns, int cap);
include/net/sock.h
981
static inline struct user_namespace *sk_user_ns(const struct sock *sk)
include/trace/events/capability.h
28
TP_PROTO(const struct cred *cred, struct user_namespace *target_ns,
include/trace/events/capability.h
29
const struct user_namespace *capable_ns, int cap, int ret),
include/trace/events/capability.h
35
__field(struct user_namespace *, target_ns)
include/trace/events/capability.h
36
__field(const struct user_namespace *, capable_ns)
ipc/mqueue.c
146
struct user_namespace *notify_user_ns;
ipc/msg.c
1344
struct user_namespace *user_ns = seq_user_ns(s);
ipc/namespace.c
112
struct user_namespace *user_ns, struct ipc_namespace *ns)
ipc/namespace.c
246
static struct user_namespace *ipcns_owner(struct ns_common *ns)
ipc/namespace.c
29
static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns)
ipc/namespace.c
39
static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
ipc/sem.c
2451
struct user_namespace *user_ns = seq_user_ns(s);
ipc/shm.c
1845
struct user_namespace *user_ns = seq_user_ns(s);
kernel/bpf/token.c
116
struct user_namespace *userns;
kernel/bpf/token.c
12
static bool bpf_ns_capable(struct user_namespace *ns, int cap)
kernel/bpf/token.c
19
struct user_namespace *userns;
kernel/capability.c
277
struct user_namespace *ns, int cap)
kernel/capability.c
302
struct user_namespace *ns, int cap)
kernel/capability.c
331
static bool ns_capable_common(struct user_namespace *ns,
kernel/capability.c
361
bool ns_capable(struct user_namespace *ns, int cap)
kernel/capability.c
379
bool ns_capable_noaudit(struct user_namespace *ns, int cap)
kernel/capability.c
398
bool ns_capable_setid(struct user_namespace *ns, int cap)
kernel/capability.c
433
bool file_ns_capable(const struct file *file, struct user_namespace *ns,
kernel/capability.c
455
bool privileged_wrt_inode_uidgid(struct user_namespace *ns,
kernel/capability.c
476
struct user_namespace *ns = current_user_ns();
kernel/capability.c
491
bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns)
kernel/cgroup/namespace.c
12
static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns)
kernel/cgroup/namespace.c
133
static struct user_namespace *cgroupns_owner(struct ns_common *ns)
kernel/cgroup/namespace.c
49
struct user_namespace *user_ns,
kernel/cred.c
331
const struct user_namespace *set_ns = set->user_ns;
kernel/cred.c
332
const struct user_namespace *subset_ns = subset->user_ns;
kernel/exec_state.c
29
struct task_exec_state *alloc_task_exec_state(struct user_namespace *user_ns)
kernel/groups.c
187
struct user_namespace *user_ns = current_user_ns();
kernel/groups.c
40
struct user_namespace *user_ns = current_user_ns();
kernel/groups.c
57
struct user_namespace *user_ns = current_user_ns();
kernel/nscommon.c
99
struct user_namespace *owner;
kernel/nsproxy.c
172
struct user_namespace *user_ns = task_cred_xxx(tsk, user_ns);
kernel/nsproxy.c
214
struct user_namespace *user_ns;
kernel/nsproxy.c
402
struct user_namespace *user_ns = NULL;
kernel/nsproxy.c
89
struct task_struct *tsk, struct user_namespace *user_ns,
kernel/nstree.c
214
struct user_namespace *user_ns;
kernel/nstree.c
236
struct user_namespace *user_ns;
kernel/nstree.c
409
struct user_namespace *user_ns;
kernel/pid_namespace.c
176
struct user_namespace *user_ns, struct pid_namespace *old_ns)
kernel/pid_namespace.c
436
static struct user_namespace *pidns_owner(struct ns_common *ns)
kernel/pid_namespace.c
64
static struct ucounts *inc_pid_namespaces(struct user_namespace *ns)
kernel/pid_namespace.c
76
static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns,
kernel/ptrace.c
286
static bool ptrace_has_cap(struct user_namespace *ns, unsigned int mode)
kernel/signal.c
1195
struct user_namespace *t_user_ns;
kernel/sys.c
415
struct user_namespace *ns = current_user_ns();
kernel/sys.c
481
struct user_namespace *ns = current_user_ns();
kernel/sys.c
572
struct user_namespace *ns = current_user_ns();
kernel/sys.c
653
struct user_namespace *ns = current_user_ns();
kernel/sys.c
710
struct user_namespace *ns = current_user_ns();
kernel/sys.c
812
struct user_namespace *ns = current_user_ns();
kernel/taskstats.c
174
static void fill_stats(struct user_namespace *user_ns,
kernel/time/namespace.c
135
struct user_namespace *user_ns, struct time_namespace *old_ns)
kernel/time/namespace.c
229
static struct user_namespace *timens_owner(struct ns_common *ns)
kernel/time/namespace.c
62
static struct ucounts *inc_time_namespaces(struct user_namespace *ns)
kernel/time/namespace.c
81
static struct time_namespace *clone_time_ns(struct user_namespace *user_ns,
kernel/tsacct.c
20
void bacct_add_tsk(struct user_namespace *user_ns,
kernel/ucount.c
120
void retire_userns_sysctls(struct user_namespace *ns)
kernel/ucount.c
132
static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid,
kernel/ucount.c
157
struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid)
kernel/ucount.c
214
struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid,
kernel/ucount.c
218
struct user_namespace *tns;
kernel/ucount.c
45
struct user_namespace *user_ns =
kernel/ucount.c
46
container_of(head->set, struct user_namespace, set);
kernel/ucount.c
95
bool setup_userns_sysctls(struct user_namespace *ns)
kernel/uid16.c
117
struct user_namespace *user_ns = current_user_ns();
kernel/uid16.c
135
struct user_namespace *user_ns = current_user_ns();
kernel/user.c
37
struct user_namespace init_user_ns = {
kernel/user_namespace.c
1124
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
1125
struct user_namespace *seq_ns = seq_user_ns(seq);
kernel/user_namespace.c
1141
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
1142
struct user_namespace *seq_ns = seq_user_ns(seq);
kernel/user_namespace.c
1158
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
1159
struct user_namespace *seq_ns = seq_user_ns(seq);
kernel/user_namespace.c
1173
struct user_namespace *ns, int cap_setid,
kernel/user_namespace.c
1216
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
1229
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
1292
bool userns_may_setgroups(const struct user_namespace *ns)
kernel/user_namespace.c
1312
bool in_userns(const struct user_namespace *ancestor,
kernel/user_namespace.c
1313
const struct user_namespace *child)
kernel/user_namespace.c
1315
const struct user_namespace *ns;
kernel/user_namespace.c
1321
bool current_in_userns(const struct user_namespace *target_ns)
kernel/user_namespace.c
1329
struct user_namespace *user_ns;
kernel/user_namespace.c
1345
struct user_namespace *user_ns = to_user_ns(ns);
kernel/user_namespace.c
1379
struct user_namespace *my_user_ns = current_user_ns();
kernel/user_namespace.c
1380
struct user_namespace *owner, *p;
kernel/user_namespace.c
1395
static struct user_namespace *userns_owner(struct ns_common *ns)
kernel/user_namespace.c
1411
user_ns_cachep = KMEM_CACHE(user_namespace, SLAB_PANIC | SLAB_ACCOUNT);
kernel/user_namespace.c
199
struct user_namespace *parent, *ns =
kernel/user_namespace.c
200
container_of(work, struct user_namespace, work);
kernel/user_namespace.c
231
void __put_user_ns(struct user_namespace *ns)
kernel/user_namespace.c
30
struct user_namespace *ns, int cap_setid,
kernel/user_namespace.c
34
static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid)
kernel/user_namespace.c
422
kuid_t make_kuid(struct user_namespace *ns, uid_t uid)
kernel/user_namespace.c
44
static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns)
kernel/user_namespace.c
441
uid_t from_kuid(struct user_namespace *targ, kuid_t kuid)
kernel/user_namespace.c
466
uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid)
kernel/user_namespace.c
490
kgid_t make_kgid(struct user_namespace *ns, gid_t gid)
kernel/user_namespace.c
509
gid_t from_kgid(struct user_namespace *targ, kgid_t kgid)
kernel/user_namespace.c
533
gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid)
kernel/user_namespace.c
557
kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid)
kernel/user_namespace.c
576
projid_t from_kprojid(struct user_namespace *targ, kprojid_t kprojid)
kernel/user_namespace.c
601
projid_t from_kprojid_munged(struct user_namespace *targ, kprojid_t kprojid)
kernel/user_namespace.c
615
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
617
struct user_namespace *lower_ns;
kernel/user_namespace.c
636
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
638
struct user_namespace *lower_ns;
kernel/user_namespace.c
657
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
659
struct user_namespace *lower_ns;
kernel/user_namespace.c
694
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
701
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
708
struct user_namespace *ns = seq->private;
kernel/user_namespace.c
85
struct user_namespace *ns, *parent_ns = new->user_ns;
kernel/user_namespace.c
891
struct user_namespace *map_ns,
kernel/user_namespace.c
895
const struct user_namespace *file_ns = file->f_cred->user_ns;
kernel/user_namespace.c
939
struct user_namespace *map_ns = seq->private;
kernel/utsname.c
142
static struct user_namespace *utsns_owner(struct ns_common *ns)
kernel/utsname.c
21
static struct ucounts *inc_uts_namespaces(struct user_namespace *ns)
kernel/utsname.c
36
static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns,
kernel/utsname.c
80
struct user_namespace *user_ns, struct uts_namespace *old_ns)
lib/kobject_uevent.c
348
struct user_namespace *owning_user_ns = sock_net(usk)->user_ns;
net/core/net_namespace.c
1543
static struct user_namespace *netns_owner(struct ns_common *ns)
net/core/net_namespace.c
402
static __net_init int preinit_net(struct net *net, struct user_namespace *user_ns)
net/core/net_namespace.c
468
static struct ucounts *inc_net_namespaces(struct user_namespace *ns)
net/core/net_namespace.c
550
struct user_namespace *user_ns, struct net *old_net)
net/core/scm.c
514
struct user_namespace *current_ns = current_user_ns();
net/core/sock.c
1167
bool sockopt_ns_capable(struct user_namespace *ns, int cap)
net/core/sock.c
1710
struct user_namespace *current_ns = current_user_ns();
net/core/sock.c
1719
struct user_namespace *user_ns = current_user_ns();
net/core/sock.c
172
struct user_namespace *user_ns, int cap)
net/ipv4/inet_diag.c
99
struct user_namespace *user_ns,
net/ipv4/sysctl_net_ipv4.c
170
struct user_namespace *user_ns = current_user_ns();
net/netfilter/nfnetlink_log.c
170
u32 portid, struct user_namespace *user_ns)
net/netfilter/nfnetlink_log.c
643
struct user_namespace *user_ns = inst->peer_user_ns;
net/netfilter/nfnetlink_log.c
70
struct user_namespace *peer_user_ns; /* User namespace of the peer process */
net/netlink/af_netlink.c
849
struct user_namespace *user_ns, int cap)
net/netlink/af_netlink.c
868
struct user_namespace *user_ns, int cap)
net/packet/diag.c
132
struct user_namespace *user_ns,
net/sctp/diag.c
130
struct user_namespace *user_ns,
net/smc/smc_diag.c
62
struct user_namespace *user_ns)
net/smc/smc_diag.c
79
struct user_namespace *user_ns;
net/sunrpc/auth_gss/auth_gss.c
410
struct user_namespace *userns = cred->user_ns;
net/sunrpc/auth_gss/auth_gss.c
437
struct user_namespace *userns = cred->user_ns;
net/sunrpc/auth_unix.c
118
struct user_namespace *userns = clnt->cl_cred ?
net/sunrpc/svcauth.c
190
struct user_namespace *userns = clnt->cl_cred ?
net/sunrpc/svcauth_unix.c
1190
struct user_namespace *userns;
net/sunrpc/svcauth_unix.c
565
struct user_namespace *user_ns = m->file->f_cred->user_ns;
net/unix/diag.c
112
struct user_namespace *user_ns)
net/unix/diag.c
119
struct user_namespace *user_ns,
net/xdp/xsk_diag.c
94
struct user_namespace *user_ns,
rust/helpers/task.c
37
__rust_helper uid_t rust_helper_from_kuid(struct user_namespace *to, kuid_t uid)
rust/helpers/task.c
53
__rust_helper struct user_namespace *rust_helper_current_user_ns(void)
security/apparmor/lsm.c
197
static int apparmor_capable(const struct cred *cred, struct user_namespace *ns,
security/apparmor/policy.c
871
struct user_namespace *userns, int cap)
security/apparmor/policy.c
897
struct user_namespace *user_ns = subj_cred->user_ns;
security/apparmor/policy.c
917
struct user_namespace *user_ns = subj_cred->user_ns;
security/commoncap.c
1028
struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
security/commoncap.c
1069
struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
security/commoncap.c
124
int cap_capable(const struct cred *cred, struct user_namespace *target_ns,
security/commoncap.c
127
const struct user_namespace *cred_ns = cred->user_ns;
security/commoncap.c
368
static bool kuid_root_in_ns(kuid_t kuid, struct user_namespace *ns)
security/commoncap.c
433
struct user_namespace *fs_ns;
security/commoncap.c
534
struct user_namespace *task_ns)
security/commoncap.c
577
struct user_namespace *task_ns = current_user_ns(),
security/commoncap.c
686
struct user_namespace *fs_ns;
security/commoncap.c
69
struct user_namespace *target_ns,
security/commoncap.c
70
const struct user_namespace *cred_ns,
security/commoncap.c
73
struct user_namespace *ns = target_ns;
security/commoncap_test.c
115
struct user_namespace *init_ns;
security/commoncap_test.c
136
static struct user_namespace *create_test_user_ns_with_mapping(struct kunit *test,
security/commoncap_test.c
137
struct user_namespace *parent_ns,
security/commoncap_test.c
140
struct user_namespace *ns;
security/commoncap_test.c
201
struct user_namespace *test_ns;
security/commoncap_test.c
202
struct user_namespace *parent_ns;
security/commoncap_test.c
237
struct user_namespace *ns1, *ns2, *ns3;
security/commoncap_test.c
95
struct user_namespace *init_ns;
security/keys/keyring.c
109
struct user_namespace *ns = current_user_ns();
security/keys/keyring.c
1149
struct user_namespace *ns = current_user_ns();
security/keys/keyring.c
57
void key_free_user_ns(struct user_namespace *ns)
security/keys/persistent.c
131
struct user_namespace *ns = current_user_ns();
security/keys/persistent.c
20
static int key_create_persistent_register(struct user_namespace *ns)
security/keys/persistent.c
40
static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid,
security/keys/persistent.c
73
static long key_get_persistent(struct user_namespace *ns, kuid_t uid,
security/keys/proc.c
252
static struct rb_node *__key_user_next(struct user_namespace *user_ns, struct rb_node *n)
security/keys/proc.c
263
static struct rb_node *key_user_next(struct user_namespace *user_ns, struct rb_node *n)
security/keys/proc.c
268
static struct rb_node *key_user_first(struct user_namespace *user_ns, struct rb_root *r)
security/keys/proc.c
66
struct user_namespace *user_ns = seq_user_ns(p);
security/keys/proc.c
80
struct user_namespace *user_ns = seq_user_ns(p);
security/keys/process_keys.c
38
static struct key *get_user_register(struct user_namespace *user_ns)
security/keys/process_keys.c
78
struct user_namespace *user_ns = current_user_ns();
security/safesetid/lsm.c
92
struct user_namespace *ns,
security/security.c
656
struct user_namespace *ns,
security/selinux/hooks.c
2186
static int selinux_capable(const struct cred *cred, struct user_namespace *ns,