r17142: Ensure we record the correct can_read/can_write