diff --git a/sandboxed_api/sandbox2/util.cc b/sandboxed_api/sandbox2/util.cc index 584566c..79a3cd1 100644 --- a/sandboxed_api/sandbox2/util.cc +++ b/sandboxed_api/sandbox2/util.cc @@ -251,9 +251,8 @@ bool CreateMemFd(int* fd, const char* name) { // Usually defined in linux/memfd.h. Define it here to avoid dependency on // UAPI headers. constexpr uintptr_t MFD_CLOEXEC = 0x0001; - constexpr uintptr_t MFD_ALLOW_SEALING = 0x0002; int tmp_fd = Syscall(__NR_memfd_create, reinterpret_cast(name), - MFD_CLOEXEC | MFD_ALLOW_SEALING); + MFD_CLOEXEC); if (tmp_fd < 0) { if (errno == ENOSYS) { SAPI_RAW_LOG(ERROR,