Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3209a36c authored by Mike Stroyan's avatar Mike Stroyan Committed by android-build-merger
Browse files

run-as should accept /data/user/0 symlink am: 57288ad8

am: dd63e8c6

* commit 'dd63e8c6':
  run-as should accept /data/user/0 symlink
parents 09714080 dd63e8c6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -182,6 +182,10 @@ check_directory_ownership(const char* path, uid_t uid)
    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;