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: Iebb5d5e9c637c2ef3da5d5674f73babf094af131
1 file changed