Skip to content

qapi: last minute improvements/changes to -compat insecure-types

Daniel P. Berrangé qemu-devel 2 versions – Applied

Status from this message: Applied. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 4 repliesApplied
  2. v18 patches 13 repliesSuperseded

Changes in v2 from the cover letter

* Expand docs to state 'warn' occurs repeatedly
* Various docs rephrasing changes
* Add error hint for security check

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8qapi: make 'CompatPolicy' the first arg in compat_policy_input_okinclude/qapi/compat-policy.h qapi/qapi-util.c qapi/qapi-visit-core.c +2 more+14 -140 replies
2/8qapi: add 'warn' option to CompatPolicyInputqapi/compat.json qapi/qapi-util.c qemu-options.hx+20 -50 replies
3/8qapi: rename 'insecure-types' to 'insecure-input'docs/system/security.rst qapi/compat.json qapi/qapi-util.c+4 -40 replies
4/8qapi: drop CompatPolicySecurity and use CompatPolicyInputqapi/compat.json qapi/qapi-util.c+12 -321 reply
5/8qapi: rename compat_policy_check_security methodinclude/qapi/compat-policy.h qapi/qapi-util.c qom/object.c+12 -120 replies
6/8qapi: reverse arg order in compat_policy_security_okinclude/qapi/compat-policy.h qapi/qapi-util.c qom/object.c+3 -30 replies
7/8qemu-options: document -compat insecure-input parameterqemu-options.hx+22 -11 reply
8/8qapi: print a message before aborting for -compat violationsqapi/qapi-util.c+3 -00 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc-André LureauMarkus Armbruster
SeriesR-b R-b
1/8
2/8
3/8
4/8R-b
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] qapi: last minute improvements/changes to -compat insecure-types

This addresses various points raised by Markus about the current impl/design, that would need to be addressed before this is included in the release.

NB, the 'warn' option will repeatedly warn on every violation which can be somewhat unpleasant. Figuring out a mechanism to make it a one-time warning is an exercise for the future, given limited time before release.

Changed in v2:

* Expand docs to state 'warn' occurs repeatedly
* Various docs rephrasing changes
* Add error hint for security check

Daniel P. Berrangé (8):
qapi: make 'CompatPolicy' the first arg in compat_policy_input_ok
qapi: add 'warn' option to CompatPolicyInput
qapi: rename 'insecure-types' to 'insecure-input'
qapi: drop CompatPolicySecurity and use CompatPolicyInput
qapi: rename compat_policy_check_security method
qapi: reverse arg order in compat_policy_security_ok
qemu-options: document -compat insecure-input parameter
qapi: print a message before aborting for -compat violations

 docs/system/security.rst     |  2 +-
 include/qapi/compat-policy.h | 12 ++++----
 qapi/compat.json             | 27 +++++------------
 qapi/qapi-util.c             | 57 +++++++++++++++++++-----------------
 qapi/qapi-visit-core.c       |  4 +--
 qapi/qmp-dispatch.c          |  2 +-
 qapi/qobject-input-visitor.c |  2 +-
 qemu-options.hx              | 37 +++++++++++++++++++----
 qom/object.c                 |  8 ++---
 9 files changed, 85 insertions(+), 66 deletions(-)
Signature · 1 line
2.56.0