Skip to content

Commit

Permalink
Merge pull request #163 from Rohrschacht/fix-issue-161
Browse files Browse the repository at this point in the history
don't return if remount of "/" fails in create_sandbox
  • Loading branch information
AkihiroSuda authored Dec 18, 2019
2 parents dad442a + 2a90980 commit e6b31fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ int create_sandbox()
ret = mount("tmpfs", "/", "tmpfs", MS_REMOUNT | MS_RDONLY, "size=0k");
if (ret < 0) {
fprintf(stderr, "cannot mount tmpfs on /tmp\n");
return ret;
}

ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
Expand Down

0 comments on commit e6b31fe

Please sign in to comment.