From 285f1cf8b12bb7e816dd7319e23b164bb3e2aa77 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 9 May 2018 01:23:12 +0200 Subject: [PATCH] Partially implement chroot(2) Really this return EPERM (permission denied), which seems to be absolutely fine since a non-privileged user is currently assumed. This is what would normally be returned in this scenario. --- manticore/platforms/linux.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manticore/platforms/linux.py b/manticore/platforms/linux.py index a74fa21..e7da805 100644 --- a/manticore/platforms/linux.py +++ b/manticore/platforms/linux.py @@ -2621,6 +2621,9 @@ class SLinux(Linux): return super(SLinux, self).sys_getrandom(buf, size, flags) + def sys_chroot(self, buf): + return -errno.EPERM + def generate_workspace_files(self): def solve_to_fd(data, fd): try: