Beginning to write sd_check_access()