`open` should be enough to determine if permissions are ok by checking errno (or maybe I misunderstand this TODO?).