commit | efb697a502dea78f25b56121954683cd3229a6d3 | [log] [tgz] |
---|---|---|
author | Jorge Lucangeli Obes <jorgelo@google.com> | Tue Oct 13 04:34:54 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Oct 13 04:34:54 2015 +0000 |
tree | f579adfadc01bf978078c4b51b21a342d7756dad | |
parent | 46a550989f7b2c934dfdf43ef28e9018ad60bd31 [diff] | |
parent | 805be39fcbce5eb1c827d8a9d59d0aa3748a1fd8 [diff] |
Merge "Make Minijail work correctly with shared mounts."
diff --git a/libminijail.c b/libminijail.c index 7eba3ac..2497115 100644 --- a/libminijail.c +++ b/libminijail.c
@@ -800,6 +800,9 @@ return -errno; if (chroot("/")) return -errno; + /* Set correct CWD for getcwd(3). */ + if (chdir("/")) + return -errno; return 0; }