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.
This commit is contained in:
Pierre Pronchery 2018-05-09 01:23:12 +02:00
parent 44ef97ec6c
commit 285f1cf8b1

View File

@ -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: