commit | a8df2b95cb47f09d2270788ac8e97c4010aaeda8 | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Fri Jul 13 19:57:52 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jul 13 19:57:52 2018 +0000 |
tree | 7b766b30912147acf7e02fca020a43455b3780a1 | |
parent | 40ad8e2ade10aff36837140c827c7d1233138994 [diff] | |
parent | 9bb0a4de46374d242953bc9a733646502bc1e9fe [diff] |
Merge "init: actually remount /sys when changing network namespaces"
diff --git a/init/service.cpp b/init/service.cpp index 95b37ab..4c2747e 100644 --- a/init/service.cpp +++ b/init/service.cpp
@@ -130,7 +130,7 @@ 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)"; } }