commit | ebd58cae06d8e19d084ec938d5f89fa7f981cbed | [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 | 870737f35522a815955437a4cf1f8875ac0cb90f [diff] | |
parent | 05f694d6b0cec60bf2a9cb5b77e190ded13f6cb8 [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)"; } }