sysmaster/backport-fix-don-t-mount-all-subsystem-to-every-sys-fs-cgroup.patch
licunlong 0c7d548f94 sync patches from upstream
(cherry picked from commit e23ebb83bd7672e4dc8da68a9a8c73fe6e016341)
2023-06-19 10:39:49 +08:00

27 lines
872 B
Diff

From a2563cafd9b64d0703b69bc4dddc653d5c092bf3 Mon Sep 17 00:00:00 2001
From: licunlong <licunlong1@huawei.com>
Date: Tue, 13 Jun 2023 20:21:31 +0800
Subject: [PATCH] fix: don't mount all subsystem to every /sys/fs/cgroup
directory
---
core/bin/mount/setup.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/bin/mount/setup.rs b/core/bin/mount/setup.rs
index ccc6a25..6a13626 100644
--- a/core/bin/mount/setup.rs
+++ b/core/bin/mount/setup.rs
@@ -428,7 +428,7 @@ pub fn mount_cgroup_controllers() -> Result<()> {
} else {
(controllers[index].to_string(), "".to_string())
};
-
+ m_point.options = Some(target.to_string());
let target_dir = Path::new(CG_BASE_DIR).join(target);
let target = target_dir.to_str().expect("invalid cgroup path");
m_point.set_target(target);
--
2.30.2