[PATCH 03/21] crypto: replace stat() with access() for credential checks