sys_getrlimit: modified to return mcexec's RLIMIT_STACK
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
|
||||
#include <waitq.h>
|
||||
#include <futex.h>
|
||||
#include <rlimit.h>
|
||||
|
||||
struct vm_range {
|
||||
struct list_head list;
|
||||
@@ -90,6 +91,7 @@ struct process {
|
||||
char sigstack[512];
|
||||
// TODO: backup FR and MMX regs
|
||||
unsigned long sigrc; // return code of rt_sigreturn (x86_64: rax reg.)
|
||||
struct rlimit rlimit_stack;
|
||||
};
|
||||
|
||||
struct process_vm {
|
||||
|
||||
@@ -107,6 +107,8 @@ struct program_load_desc {
|
||||
unsigned long args_len;
|
||||
char *envs;
|
||||
unsigned long envs_len;
|
||||
unsigned long rlimit_stack_cur;
|
||||
unsigned long rlimit_stack_max;
|
||||
struct program_image_section sections[0];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user