subproc: display additional clone3 flags

This commit is contained in:
Robert Swiecki 2023-08-09 18:19:37 +02:00
parent e507a64e09
commit 5e494a6a78
2 changed files with 9 additions and 1 deletions

View File

@ -98,6 +98,14 @@ static const std::string cloneFlagsToStr(uint64_t flags) {
NS_VALSTR_STRUCT(CLONE_NEWPID), NS_VALSTR_STRUCT(CLONE_NEWPID),
NS_VALSTR_STRUCT(CLONE_NEWNET), NS_VALSTR_STRUCT(CLONE_NEWNET),
NS_VALSTR_STRUCT(CLONE_IO), NS_VALSTR_STRUCT(CLONE_IO),
#if !defined(CLONE_CLEAR_SIGHAND)
#define CLONE_CLEAR_SIGHAND 0x100000000ULL
#endif /* !defined(CLONE_CLEAR_SIGHAND) */
NS_VALSTR_STRUCT(CLONE_CLEAR_SIGHAND),
#if !defined(CLONE_INTO_CGROUP)
#define CLONE_INTO_CGROUP 0x200000000ULL
#endif /* !defined(CLONE_INTO_CGROUP) */
NS_VALSTR_STRUCT(CLONE_INTO_CGROUP),
}; };
uint64_t knownFlagMask = 0; uint64_t knownFlagMask = 0;