Enable restorecon to properly label symlinks.

commit: 06d45512e2df93f65a51877a51549e522b4f2cf5 changed restorecon to only
operate on paths which had undergone a realpath transformation.  Unfortunately,
this made it impossible to directly restorecon a symlink, since the symlink
would be followed.  Change restorecon to only perform realpath on the directory
prefix, so that symlinks can be labeled.

Bug: 21732016
Change-Id: I95e18f9a8e9ffda8cf9ab8676052486c68216b00
1 file changed