eCryptfs: Add getattr function