-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.patch
32 lines (26 loc) · 1.09 KB
/
serverless.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 7478faef2111f692f642cee0a83cc84062c48e82 Mon Sep 17 00:00:00 2001
From: Roshan Raghupathy <[email protected]>
Date: Mon, 9 Sep 2024 18:24:28 +0530
Subject: [PATCH] do not mount cgroups, it will be handled by setup scripts
after the enclave boots up
---
init/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/init/init.c b/init/init.c
index dfef5c1..74a0183 100644
--- a/init/init.c
+++ b/init/init.c
@@ -130,7 +130,7 @@ const struct InitOp ops[] = {
// mount /sys (which should already exist)
{ OpMount, .mount = { "sysfs", "/sys", "sysfs", MS_NODEV | MS_NOSUID | MS_NOEXEC } },
- { OpMount, .mount = { "cgroup_root", "/sys/fs/cgroup", "tmpfs", MS_NODEV | MS_NOSUID | MS_NOEXEC, "mode=0755" } },
+ // { OpMount, .mount = { "cgroup_root", "/sys/fs/cgroup", "tmpfs", MS_NODEV | MS_NOSUID | MS_NOEXEC, "mode=0755" } },
};
void warn(const char *msg) {
@@ -440,7 +440,7 @@ int main() {
// as well.
init_dev();
init_fs(ops, sizeof(ops) / sizeof(ops[0]));
- init_cgroups();
+ // init_cgroups();
pid_t pid = launch(cmd, env);