commit | 45362d95d4803c811604be10dffd892f2eae293e | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Mon Mar 21 19:27:26 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Mar 21 19:27:28 2016 +0000 |
tree | e723903aabb2919439f46ffb29d45ce332262eeb | |
parent | 144c72f18cacb1a045430c4a540039db2335441b [diff] | |
parent | c928a6e0a9bf804cb207ca57cd5431e781ae6a95 [diff] |
Merge "Update BacktraceOffline for LLVM rebase to r256229." into nyc-dev
diff --git a/run-as/package.c b/run-as/package.c index aea89e5..86824c2 100644 --- a/run-as/package.c +++ b/run-as/package.c
@@ -182,6 +182,10 @@ if (ret < 0) return -1; + /* /data/user/0 is a known safe symlink */ + if (strcmp("/data/user/0", path) == 0) + return 0; + /* must be a real directory, not a symlink */ if (!S_ISDIR(st.st_mode)) goto BAD;