FPII-1813: Merge conflict --Use resolved path for both checking and opening.

Merge conflict --Use resolved path for both checking and opening.

This avoids a race condition where someone can change a symlink
target after the security checks have passed.

Bug: 26211054
Change-Id: I7fcbcbd709119f0825f494d5f07286961d2ee3db
2 files changed