summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTom Cherry2018-07-13 13:07:11 -0500
committerTom Cherry2018-07-13 13:07:11 -0500
commit9bb0a4de46374d242953bc9a733646502bc1e9fe (patch)
treee4c7d2420f9a316593647e23b35f9cf0d214913f /init
parentbcfc8a2ab035ab085f91b59f7f6f75ee364b3363 (diff)
downloadplatform-system-core-9bb0a4de46374d242953bc9a733646502bc1e9fe.tar.gz
platform-system-core-9bb0a4de46374d242953bc9a733646502bc1e9fe.tar.xz
platform-system-core-9bb0a4de46374d242953bc9a733646502bc1e9fe.zip
init: actually remount /sys when changing network namespaces
Fix a typo from before. Bug: 73334854 Test: build Change-Id: I66631a6f251960be0e02d8a119fa0ff7a00fb24c
Diffstat (limited to 'init')
-rw-r--r--init/service.cpp2
1 files changed, 1 insertions, 1 deletions
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<Success> Service::SetUpMountNamespace() const {
130 if (umount2("/sys", MNT_DETACH) == -1) { 130 if (umount2("/sys", MNT_DETACH) == -1) {
131 return ErrnoError() << "Could not umount(/sys)"; 131 return ErrnoError() << "Could not umount(/sys)";
132 } 132 }
133 if (mount("", "/sys", "sys", kSafeFlags, "") == -1) { 133 if (mount("", "/sys", "sysfs", kSafeFlags, "") == -1) {
134 return ErrnoError() << "Could not mount(/sys)"; 134 return ErrnoError() << "Could not mount(/sys)";
135 } 135 }
136 } 136 }