Home
last modified time | relevance | path

Searched refs:user_namespace (Results 1 – 25 of 26) sorted by relevance

12

/linux-3.4.99/include/linux/
Duser_namespace.h12 struct user_namespace { struct
19 extern struct user_namespace init_user_ns; argument
23 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
33 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
39 uid_t user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid);
40 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid);
44 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
54 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
58 static inline uid_t user_ns_map_uid(struct user_namespace *to, in user_ns_map_uid()
63 static inline gid_t user_ns_map_gid(struct user_namespace *to, in user_ns_map_gid()
Dutsname.h48 struct user_namespace;
49 extern struct user_namespace init_user_ns;
54 struct user_namespace *user_ns;
Dcapability.h378 struct user_namespace;
380 struct user_namespace *current_user_ns(void);
544 struct user_namespace *ns, int cap);
547 struct user_namespace *ns, int cap);
549 extern bool ns_capable(struct user_namespace *ns, int cap);
Dipc_namespace.h19 struct user_namespace;
67 struct user_namespace *user_ns;
Dcred.h149 struct user_namespace *user_ns; /* cached user->user_ns */
364 extern struct user_namespace init_user_ns;
Dsecurity.h65 struct user_namespace;
72 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
1394 int (*capable) (const struct cred *cred, struct user_namespace *ns,
1677 int security_capable(const struct cred *cred, struct user_namespace *ns,
1679 int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns,
1874 struct user_namespace *ns, int cap) in security_capable()
1880 struct user_namespace *ns, int cap) { in security_capable_noaudit()
Dsched.h368 struct user_namespace;
737 struct user_namespace *user_ns;
2197 extern struct user_struct * alloc_uid(struct user_namespace *, uid_t);
2204 extern void release_uids(struct user_namespace *ns);
Dfs.h1536 extern struct user_namespace init_user_ns;
/linux-3.4.99/kernel/
Duser_namespace.c27 struct user_namespace *ns; in create_user_ns()
73 struct user_namespace *ns = in free_user_ns_work()
74 container_of(work, struct user_namespace, destroyer); in free_user_ns_work()
81 struct user_namespace *ns = in free_user_ns()
82 container_of(kref, struct user_namespace, kref); in free_user_ns()
89 uid_t user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid) in user_ns_map_uid()
91 struct user_namespace *tmp; in user_ns_map_uid()
111 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid) in user_ns_map_gid()
113 struct user_namespace *tmp; in user_ns_map_gid()
134 user_ns_cachep = KMEM_CACHE(user_namespace, SLAB_PANIC); in user_namespaces_init()
Duser.c24 struct user_namespace init_user_ns = {
117 struct user_namespace *ns = current_user_ns(); in find_user()
139 struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid) in alloc_uid()
Dcapability.c301 struct user_namespace *ns, int cap) in has_ns_capability()
341 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
380 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
DMakefile63 obj-$(CONFIG_USER_NS) += user_namespace.o
Dptrace.c214 static int ptrace_has_cap(struct user_namespace *ns, unsigned int mode) in ptrace_has_cap()
Dsignal.c1024 struct user_namespace *ns) in map_cred_ns()
/linux-3.4.99/fs/ecryptfs/
Dmessaging.c119 struct user_namespace *user_ns) in ecryptfs_find_daemon_by_euid()
151 struct user_namespace *user_ns, struct pid *pid) in ecryptfs_spawn_daemon()
229 int ecryptfs_process_quit(uid_t euid, struct user_namespace *user_ns, in ecryptfs_process_quit()
274 struct user_namespace *user_ns, struct pid *pid, in ecryptfs_process_response()
281 struct user_namespace *tsk_user_ns; in ecryptfs_process_response()
Decryptfs_kernel.h399 struct user_namespace *user_ns;
626 int ecryptfs_process_helo(uid_t euid, struct user_namespace *user_ns,
628 int ecryptfs_process_quit(uid_t euid, struct user_namespace *user_ns,
631 struct user_namespace *user_ns, struct pid *pid,
678 struct user_namespace *user_ns);
691 struct user_namespace *user_ns, struct pid *pid);
Dmiscdev.c393 uid_t euid, struct user_namespace *user_ns, in ecryptfs_miscdev_response()
/linux-3.4.99/security/keys/
Dinternal.h55 struct user_namespace *user_ns;
65 struct user_namespace *user_ns);
Dproc.c93 struct user_namespace *user_ns = current_user_ns(); in key_serial_next()
112 struct user_namespace *user_ns = current_user_ns(); in find_ge_key()
Dkey.c55 struct key_user *key_user_lookup(uid_t uid, struct user_namespace *user_ns) in key_user_lookup()
/linux-3.4.99/security/
Dcommoncap.c76 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
Dsecurity.c160 int security_capable(const struct cred *cred, struct user_namespace *ns, in security_capable()
166 int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns, in security_capable_noaudit()
/linux-3.4.99/security/apparmor/
Dlsm.c139 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
/linux-3.4.99/fs/
Dinode.c1735 struct user_namespace *ns = inode_userns(inode); in inode_owner_or_capable()
/linux-3.4.99/net/core/
Dsock.c823 struct user_namespace *current_ns = current_user_ns(); in cred_to_ucred()

12