/linux-3.4.99/include/linux/ |
D | user_namespace.h | 12 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()
|
D | utsname.h | 48 struct user_namespace; 49 extern struct user_namespace init_user_ns; 54 struct user_namespace *user_ns;
|
D | capability.h | 378 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);
|
D | ipc_namespace.h | 19 struct user_namespace; 67 struct user_namespace *user_ns;
|
D | cred.h | 149 struct user_namespace *user_ns; /* cached user->user_ns */ 364 extern struct user_namespace init_user_ns;
|
D | security.h | 65 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()
|
D | sched.h | 368 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);
|
D | fs.h | 1536 extern struct user_namespace init_user_ns;
|
/linux-3.4.99/kernel/ |
D | user_namespace.c | 27 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()
|
D | user.c | 24 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()
|
D | capability.c | 301 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()
|
D | Makefile | 63 obj-$(CONFIG_USER_NS) += user_namespace.o
|
D | ptrace.c | 214 static int ptrace_has_cap(struct user_namespace *ns, unsigned int mode) in ptrace_has_cap()
|
D | signal.c | 1024 struct user_namespace *ns) in map_cred_ns()
|
/linux-3.4.99/fs/ecryptfs/ |
D | messaging.c | 119 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()
|
D | ecryptfs_kernel.h | 399 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);
|
D | miscdev.c | 393 uid_t euid, struct user_namespace *user_ns, in ecryptfs_miscdev_response()
|
/linux-3.4.99/security/keys/ |
D | internal.h | 55 struct user_namespace *user_ns; 65 struct user_namespace *user_ns);
|
D | proc.c | 93 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()
|
D | key.c | 55 struct key_user *key_user_lookup(uid_t uid, struct user_namespace *user_ns) in key_user_lookup()
|
/linux-3.4.99/security/ |
D | commoncap.c | 76 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
|
D | security.c | 160 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/ |
D | lsm.c | 139 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
|
/linux-3.4.99/fs/ |
D | inode.c | 1735 struct user_namespace *ns = inode_userns(inode); in inode_owner_or_capable()
|
/linux-3.4.99/net/core/ |
D | sock.c | 823 struct user_namespace *current_ns = current_user_ns(); in cred_to_ucred()
|