Skip to content

Commit 6151b46

Browse files
Sandboxed API Teamcopybara-github
authored andcommitted
Fix forward issue with missing default argument for memfd file name
PiperOrigin-RevId: 875158885 Change-Id: I9e84e766abdb832161fedb5a159641085b169db7
1 parent b502782 commit 6151b46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sandboxed_api/sandbox2/util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ pid_t ForkWithFlags(int flags);
111111
// Creates a new memfd. The memfd will be created with the following default
112112
// memfd flags: MFD_CLOEXEC | MFD_ALLOW_SEALING.
113113
absl::StatusOr<sapi::file_util::fileops::FDCloser> CreateMemFd(
114-
const char* name, uintptr_t flag = kMfdCloseOnExec | kMfdAllowSealing);
114+
const char* name = "buffer_file",
115+
uintptr_t flag = kMfdCloseOnExec | kMfdAllowSealing);
115116

116117
ABSL_DEPRECATED("Use absl::StatusOr<FDCloser> version instead.")
117118
inline bool CreateMemFd(int* fd, const char* name = "buffer_file") {

0 commit comments

Comments
 (0)