Home
last modified time | relevance | path

Searched refs:CLONE_NEWIPC (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/namespaces/
H A Dregression_pidfd_setns_test.c52 if (unshare(CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWNET | CLONE_NEWUSER) < 0) { in TEST()
74 ret = setns(pidfd, CLONE_NEWUTS | CLONE_NEWIPC); in TEST()
95 child_pid = create_child(&pidfd, CLONE_NEWUSER | CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWNET); in TEST()
108 ret = setns(pidfd, CLONE_NEWUTS | CLONE_NEWIPC); in TEST()
H A Dstress_test.c252 if (unshare(CLONE_NEWIPC) < 0) in TEST()
H A Dlistns_permissions_test.c189 unshare(CLONE_NEWIPC); in TEST()
H A Dnsid_test.c305 ret = unshare(CLONE_NEWIPC); in TEST_F()
H A Dfile_handle_test.c764 ret = unshare(CLONE_NEWIPC); in TEST()
/linux/tools/testing/selftests/proc/
H A Dsetns-sysvipc.c53 if (unshare(CLONE_NEWIPC) == -1) { in main()
74 if (unshare(CLONE_NEWIPC) == -1) { in main()
103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/linux/kernel/
H A Dnsproxy.c173 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces()
191 if ((flags & (CLONE_NEWIPC | CLONE_SYSVSEM)) == in copy_namespaces()
192 (CLONE_NEWIPC | CLONE_SYSVSEM)) in copy_namespaces()
217 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces()
295 if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in check_setns_flags()
313 if (flags & CLONE_NEWIPC) in check_setns_flags()
471 if (flags & CLONE_NEWIPC) { in validate_nsset()
549 if (flags & CLONE_NEWIPC) in commit_nsset()
H A Dnscommon.c20 case CLONE_NEWIPC: in ns_debug()
H A Dnstree.c291 case CLONE_NEWIPC: in ns_tree_from_type()
H A Dfork.c3050 CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET| in check_unshare_flags()
3162 if (unshare_flags & (CLONE_NEWIPC|CLONE_SYSVSEM)) in ksys_unshare()
3191 if (unshare_flags & CLONE_NEWIPC) { in ksys_unshare()
/linux/tools/include/uapi/linux/
H A Dsched.h
/linux/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c25 #ifndef CLONE_NEWIPC
26 # define CLONE_NEWIPC 0x08000000 macro
/linux/include/uapi/linux/
H A Dsched.h30 #define CLONE_NEWIPC 0x08000000 /* New ipc namespace */ macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dsched.h30 #define CLONE_NEWIPC 0x08000000 /* New ipc namespace */ macro
/linux/include/linux/
H A Dipc_namespace.h162 if (flags & CLONE_NEWIPC) in copy_ipcs()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c46 …[PIDFD_NS_IPC] = { "ipc", CLONE_NEWIPC, PIDFD_GET_IPC_NAMESPACE, …
180 if (self->nsfds[PIDFD_NS_IPC] >= 0 && unshare(CLONE_NEWIPC) < 0) { in FIXTURE_SETUP()
234 if (self->nsfds[PIDFD_NS_IPC] >= 0 && unshare(CLONE_NEWIPC) < 0) { in FIXTURE_SETUP()
/linux/ipc/
H A Dnamespace.c114 if (!(flags & CLONE_NEWIPC)) in copy_ipcs()
/linux/fs/
H A Dnsfs.c487 case CLONE_NEWIPC: in is_current_namespace()
583 case CLONE_NEWIPC: in nsfs_fh_to_dentry()