Remove uneeded read-only remount

Caused failures if root is mounted as nodev, nosuid etc.
Root is pivoted and unmounted right after this anyhow.

PiperOrigin-RevId: 273707731
Change-Id: I75f1edaf2877c096e4f5bb7dc1b2bb8eb5c437a3
This commit is contained in:
Wiktor Garbacz 2019-10-09 02:47:13 -07:00 committed by Copybara-Service
parent 78824353d1
commit a7cfbb92a6

View File

@ -73,10 +73,6 @@ void PrepareChroot(const Mounts& mounts) {
// Walk the tree and perform all the mount operations.
mounts.CreateMounts(kSandbox2ChrootPath);
SAPI_RAW_PCHECK(
mount("/", "/", "", MS_BIND | MS_REMOUNT | MS_RDONLY, nullptr) != -1,
"Remounting / RO failed");
}
void TryDenySetgroups() {