CLONE_NEWUTS
case CLONE_NEWUTS:
case CLONE_NEWUTS:
struct uts_namespace *: CLONE_NEWUTS)
if (flags & CLONE_NEWUTS)
CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET|
case CLONE_NEWUTS:
if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC |
if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC |
if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC |
if (flags & CLONE_NEWUTS)
if (flags & CLONE_NEWUTS) {
case CLONE_NEWUTS:
if (!(flags & CLONE_NEWUTS))
if (unshare(CLONE_NEWUTS | CLONE_NEWUSER))
#ifndef CLONE_NEWUTS
ret = unshare(CLONE_NEWUTS);
unshare(CLONE_NEWUTS);
if (unshare(CLONE_NEWUTS) < 0) {
unshare(CLONE_NEWUTS);
.ns_type = CLONE_NEWNET | CLONE_NEWUTS, /* Network and UTS */
if (unshare(CLONE_NEWUTS) < 0) {
if (unshare(CLONE_NEWUTS) < 0) {
ret = unshare(CLONE_NEWUTS);
ret = setns(pidfd, CLONE_NEWUTS | CLONE_NEWIPC);
if (unshare(CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWNET | CLONE_NEWUSER) < 0) {
ret = setns(pidfd, CLONE_NEWUTS | CLONE_NEWIPC);
child_pid = create_child(&pidfd, CLONE_NEWUSER | CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWNET);
if (unshare(CLONE_NEWUTS) < 0)
.ns_type = CLONE_NEWUSER | CLONE_NEWNET | CLONE_NEWUTS,
if (unshare(CLONE_NEWUTS) < 0)
ret = unshare(CLONE_NEWUTS);
ret = setns(original_ns, CLONE_NEWUTS);
if (self->nsfds[PIDFD_NS_UTS] >= 0 && unshare(CLONE_NEWUTS) < 0) {
if (self->nsfds[PIDFD_NS_UTS] >= 0 && unshare(CLONE_NEWUTS) < 0) {
[PIDFD_NS_UTS] = { "uts", CLONE_NEWUTS, PIDFD_GET_UTS_NAMESPACE, },