qapi: reverse arg order in compat_policy_security_ok
Match the compat_policy_input_ok design more closely by having the "relevant facts" being checked as the 2nd argument. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20261030141713.2841710-7-berrange@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
1 parent
b32e68d38b
commit
7f61d1eb7f
3 files changed
+3
-3
No files matched your search
@@ -25,8 +25,8 @@ bool compat_policy_input_ok(const CompatPolicy *policy,
|
||||
Error **errp);
|
||||
|
||||
bool compat_policy_security_ok(const CompatPolicy *policy,
|
||||
const char *typename,
|
||||
bool is_secure,
|
||||
const char *typename,
|
||||
Error **errp);
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -65,8 +65,8 @@ bool compat_policy_input_ok(const CompatPolicy *policy,
|
||||
}
|
||||
|
||||
bool compat_policy_security_ok(const CompatPolicy *policy,
|
||||
const char *typename,
|
||||
bool is_secure,
|
||||
const char *typename,
|
||||
Error **errp)
|
||||
{
|
||||
ERRP_GUARD();
|
||||
|
||||
+1
-1
@@ -3277,8 +3277,8 @@ void object_class_property_set_description(ObjectClass *klass,
|
||||
bool object_class_check_security(ObjectClass *klass, Error **errp)
|
||||
{
|
||||
return compat_policy_security_ok(&compat_policy,
|
||||
object_class_get_name(klass),
|
||||
object_class_is_secure(klass),
|
||||
object_class_get_name(klass),
|
||||
errp);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user