Searched refs:user_ns (Results 1 – 7 of 7) sorted by relevance
/ipc/ |
D | namespace.c | 32 static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, in create_ipc_ns() argument 40 ucounts = inc_ipc_namespaces(user_ns); in create_ipc_ns() 55 ns->user_ns = get_user_ns(user_ns); in create_ipc_ns() 69 put_user_ns(ns->user_ns); in create_ipc_ns() 80 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() argument 84 return create_ipc_ns(user_ns, ns); in copy_ipcs() 129 put_user_ns(ns->user_ns); in free_ipc_ns() 204 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in ipcns_install() 205 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in ipcns_install() 215 return to_ipc_ns(ns)->user_ns; in ipcns_owner()
|
D | msg.c | 1324 struct user_namespace *user_ns = seq_user_ns(s); in sysvipc_msg_proc_show() local 1337 from_kuid_munged(user_ns, msq->q_perm.uid), in sysvipc_msg_proc_show() 1338 from_kgid_munged(user_ns, msq->q_perm.gid), in sysvipc_msg_proc_show() 1339 from_kuid_munged(user_ns, msq->q_perm.cuid), in sysvipc_msg_proc_show() 1340 from_kgid_munged(user_ns, msq->q_perm.cgid), in sysvipc_msg_proc_show()
|
D | mqueue.c | 456 put_user_ns(fc->user_ns); in mqueue_init_fs_context() 457 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); in mqueue_init_fs_context() 481 put_user_ns(fc->user_ns); in mq_create_mount() 482 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); in mq_create_mount()
|
D | shm.c | 1185 if (!ns_capable(ns->user_ns, CAP_IPC_LOCK)) { in shmctl_do_lock() 1837 struct user_namespace *user_ns = seq_user_ns(s); in sysvipc_shm_proc_show() local 1862 from_kuid_munged(user_ns, shp->shm_perm.uid), in sysvipc_shm_proc_show() 1863 from_kgid_munged(user_ns, shp->shm_perm.gid), in sysvipc_shm_proc_show() 1864 from_kuid_munged(user_ns, shp->shm_perm.cuid), in sysvipc_shm_proc_show() 1865 from_kgid_munged(user_ns, shp->shm_perm.cgid), in sysvipc_shm_proc_show()
|
D | msgutil.c | 30 .user_ns = &init_user_ns,
|
D | util.c | 534 !ns_capable(ns->user_ns, CAP_IPC_OWNER)) in ipcperms() 709 ns_capable(ns->user_ns, CAP_SYS_ADMIN)) in ipcctl_obtain_check()
|
D | sem.c | 2432 struct user_namespace *user_ns = seq_user_ns(s); in sysvipc_sem_proc_show() local 2453 from_kuid_munged(user_ns, sma->sem_perm.uid), in sysvipc_sem_proc_show() 2454 from_kgid_munged(user_ns, sma->sem_perm.gid), in sysvipc_sem_proc_show() 2455 from_kuid_munged(user_ns, sma->sem_perm.cuid), in sysvipc_sem_proc_show() 2456 from_kgid_munged(user_ns, sma->sem_perm.cgid), in sysvipc_sem_proc_show()
|