mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
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:
parent
78824353d1
commit
a7cfbb92a6
|
@ -73,10 +73,6 @@ void PrepareChroot(const Mounts& mounts) {
|
||||||
|
|
||||||
// Walk the tree and perform all the mount operations.
|
// Walk the tree and perform all the mount operations.
|
||||||
mounts.CreateMounts(kSandbox2ChrootPath);
|
mounts.CreateMounts(kSandbox2ChrootPath);
|
||||||
|
|
||||||
SAPI_RAW_PCHECK(
|
|
||||||
mount("/", "/", "", MS_BIND | MS_REMOUNT | MS_RDONLY, nullptr) != -1,
|
|
||||||
"Remounting / RO failed");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TryDenySetgroups() {
|
void TryDenySetgroups() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user