Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CLONE_NEWTIME flag for Linux #2576

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/sched.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ mod sched_linux_like {
CLONE_NEWNET;
/// The new process shares an I/O context with the calling process.
CLONE_IO;
/// Unshare the time namespace, so that the calling process has a
/// new time namespace for its children which is not shared with
/// any previously existing process. The calling process is not
/// moved into the new namespace. Use of `CLONE_NEWTIME` requires
/// the `CAP_SYS_ADMIN` capability. For further information, see
/// [`time_namespaces(7)`](https://man7.org/linux/man-pages/man7/time_namespaces.7.html).
#[cfg(all(target_os = "linux", target_env = "gnu"))]
CLONE_NEWTIME;
}
}

Expand Down
Loading