From 9bb0a4de46374d242953bc9a733646502bc1e9fe Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Fri, 13 Jul 2018 11:07:11 -0700 Subject: [PATCH] init: actually remount /sys when changing network namespaces Fix a typo from before. Bug: 73334854 Test: build Change-Id: I66631a6f251960be0e02d8a119fa0ff7a00fb24c --- init/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/service.cpp b/init/service.cpp index 95b37abe2..4c2747e64 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -130,7 +130,7 @@ Result Service::SetUpMountNamespace() const { if (umount2("/sys", MNT_DETACH) == -1) { return ErrnoError() << "Could not umount(/sys)"; } - if (mount("", "/sys", "sys", kSafeFlags, "") == -1) { + if (mount("", "/sys", "sysfs", kSafeFlags, "") == -1) { return ErrnoError() << "Could not mount(/sys)"; } }