summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp/mprotect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/seccomp/mprotect.cc')
-rw-r--r--sandbox/linux/seccomp/mprotect.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/linux/seccomp/mprotect.cc b/sandbox/linux/seccomp/mprotect.cc
index d079104..548199d 100644
--- a/sandbox/linux/seccomp/mprotect.cc
+++ b/sandbox/linux/seccomp/mprotect.cc
@@ -7,7 +7,7 @@
namespace playground {
-int Sandbox::sandbox_mprotect(const void *addr, size_t len, int prot) {
+long Sandbox::sandbox_mprotect(const void *addr, size_t len, int prot) {
long long tm;
Debug::syscall(&tm, __NR_mprotect, "Executing handler");
struct {
@@ -29,7 +29,7 @@ int Sandbox::sandbox_mprotect(const void *addr, size_t len, int prot) {
die("Failed to forward mprotect() request [sandbox]");
}
Debug::elapsed(tm, __NR_mprotect);
- return static_cast<int>(rc);
+ return rc;
}
bool Sandbox::process_mprotect(int parentMapsFd, int sandboxFd,