pull: Verify checksums from static deltas unless gpg signed summary
Otherwise untrusted repos can lie about the commit ids.
This commit is contained in:
parent
ec56fea821
commit
598afd5030
|
|
@ -977,7 +977,8 @@ static_deltapart_fetch_on_complete (GObject *object,
|
||||||
_ostree_static_delta_part_execute_async (pull_data->repo,
|
_ostree_static_delta_part_execute_async (pull_data->repo,
|
||||||
fetch_data->objects,
|
fetch_data->objects,
|
||||||
delta_data,
|
delta_data,
|
||||||
TRUE,
|
/* Trust checksums if summary was gpg signed */
|
||||||
|
pull_data->gpg_verify_summary && pull_data->summary_data_sig,
|
||||||
pull_data->cancellable,
|
pull_data->cancellable,
|
||||||
on_static_delta_written,
|
on_static_delta_written,
|
||||||
fetch_data);
|
fetch_data);
|
||||||
|
|
@ -1629,7 +1630,8 @@ process_one_static_delta (OtPullData *pull_data,
|
||||||
_ostree_static_delta_part_execute_async (pull_data->repo,
|
_ostree_static_delta_part_execute_async (pull_data->repo,
|
||||||
fetch_data->objects,
|
fetch_data->objects,
|
||||||
delta_data,
|
delta_data,
|
||||||
TRUE,
|
/* Trust checksums if summary was gpg signed */
|
||||||
|
pull_data->gpg_verify_summary && pull_data->summary_data_sig,
|
||||||
pull_data->cancellable,
|
pull_data->cancellable,
|
||||||
on_static_delta_written,
|
on_static_delta_written,
|
||||||
fetch_data);
|
fetch_data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue