2022-10-02 16:06:27 +08:00
|
|
|
#ifndef WOJ_SANDBOX_RESOURCE_H
|
|
|
|
#define WOJ_SANDBOX_RESOURCE_H
|
|
|
|
|
2023-12-28 00:58:15 +08:00
|
|
|
#include "launcher.h"
|
|
|
|
|
2022-10-02 16:06:27 +08:00
|
|
|
// Configuration Environment Variables
|
|
|
|
#define LIMIT_MEMORY "LIMIT_MEMORY"
|
|
|
|
#define LIMIT_TIME "LIMIT_TIME"
|
|
|
|
#define LIMIT_NPROC "LIMIT_NPROC"
|
|
|
|
|
2023-12-28 00:58:15 +08:00
|
|
|
void setup_rlimit(char *config[CFG_IS_VALID + 1]);
|
2022-10-02 16:06:27 +08:00
|
|
|
|
|
|
|
#endif // WOJ_SANDBOX_RESOURCE_H
|