Merge "init: actually remount /sys when changing network namespaces"

am: a8df2b95cb

Change-Id: I00330bacd9fd7bcb825298ef72ca54d134206c99
This commit is contained in:
Tom Cherry 2018-07-13 13:09:53 -07:00 committed by android-build-merger
commit f4657d4b80

View file

@ -130,7 +130,7 @@ Result<Success> 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)";
}
}