Skip to content

Commit

Permalink
Fix rootless-containers#161: don't return if remount of "/" fails in …
Browse files Browse the repository at this point in the history
…create_sandbox
  • Loading branch information
rohrschacht committed Dec 3, 2019
1 parent 21fdece commit 995bfc4
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 995bfc4

Please sign in to comment.