From f7e841c2cede357c4cbd6117605e3f3d54f1961c Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Mon, 15 Mar 2021 20:12:40 -0700 Subject: Turn sys_thread constants into variables. PiperOrigin-RevId: 363092268 --- pkg/sentry/syscalls/linux/sys_thread.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pkg/sentry') diff --git a/pkg/sentry/syscalls/linux/sys_thread.go b/pkg/sentry/syscalls/linux/sys_thread.go index 44738c40c..b5f920949 100644 --- a/pkg/sentry/syscalls/linux/sys_thread.go +++ b/pkg/sentry/syscalls/linux/sys_thread.go @@ -31,6 +31,11 @@ import ( ) const ( + // exitSignalMask is the signal mask to be sent at exit. Same as CSIGNAL in linux. + exitSignalMask = 0xff +) + +var ( // ExecMaxTotalSize is the maximum length of all argv and envv entries. // // N.B. The behavior here is different than Linux. Linux provides a limit on @@ -42,9 +47,6 @@ const ( // ExecMaxElemSize is the maximum length of a single argv or envv entry. ExecMaxElemSize = 32 * usermem.PageSize - - // exitSignalMask is the signal mask to be sent at exit. Same as CSIGNAL in linux. - exitSignalMask = 0xff ) // Getppid implements linux syscall getppid(2). -- cgit v1.2.3