Lines Matching refs:unshare_flags
1539 static int unshare_thread(unsigned long unshare_flags)
1541 if (unshare_flags & CLONE_THREAD)
1550 static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp)
1554 if (!(unshare_flags & CLONE_FS) || !fs)
1571 static int unshare_sighand(unsigned long unshare_flags, struct sighand_struct **new_sighp)
1575 if ((unshare_flags & CLONE_SIGHAND) && atomic_read(&sigh->count) > 1)
1584 static int unshare_vm(unsigned long unshare_flags, struct mm_struct **new_mmp)
1588 if ((unshare_flags & CLONE_VM) &&
1599 static int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp)
1604 if ((unshare_flags & CLONE_FILES) &&
1622 SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
1632 check_unshare_flags(&unshare_flags);
1636 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND|
1646 if (unshare_flags & (CLONE_NEWIPC|CLONE_SYSVSEM))
1648 if ((err = unshare_thread(unshare_flags)))
1650 if ((err = unshare_fs(unshare_flags, &new_fs)))
1652 if ((err = unshare_sighand(unshare_flags, &new_sigh)))
1654 if ((err = unshare_vm(unshare_flags, &new_mm)))
1656 if ((err = unshare_fd(unshare_flags, &new_fd)))
1658 if ((err = unshare_nsproxy_namespaces(unshare_flags, &new_nsproxy,