Expanding sd_check_access() somewhat