From 94ec02bd09d66bfc3276dd5de1c2382e0f659308 Mon Sep 17 00:00:00 2001 From: Oliver Kunz Date: Thu, 31 Oct 2024 08:52:44 -0700 Subject: [PATCH] Internal Change. PiperOrigin-RevId: 691819995 Change-Id: Ib2fcda53766c60d8b5eba2c2420641916688e294 --- sandboxed_api/sandbox2/namespace.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sandboxed_api/sandbox2/namespace.cc b/sandboxed_api/sandbox2/namespace.cc index 96cdf9e8..318b1774 100644 --- a/sandboxed_api/sandbox2/namespace.cc +++ b/sandboxed_api/sandbox2/namespace.cc @@ -237,9 +237,10 @@ void Namespace::InitializeNamespaces(uid_t uid, gid_t gid, int32_t clone_flags, SAPI_RAW_PCHECK(chdir("/") != -1, "chdir / after chrooting real root"); } - SAPI_RAW_PCHECK(mount("", "/proc", "proc", MS_NODEV | MS_NOEXEC | MS_NOSUID, - nullptr) != -1, - "Could not mount a new /proc" + SAPI_RAW_PCHECK( + mount("", "/proc", "proc", MS_NODEV | MS_NOEXEC | MS_NOSUID, nullptr) != + -1, + "Could not mount a new /proc" ); if (clone_flags & CLONE_NEWNET) {