mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
security: improve security driver error message
Currently, when security driver is not available users are informed that it wasn't found which can be confusing. 1. Update error message 2. Add comment to domain doc Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by Sebastian Mitterle <smitterl@redhat.com>
This commit is contained in:
parent
c0236d1c84
commit
97c7f3ead4
@ -9011,7 +9011,8 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
</dd>
|
||||
<dt><code>model</code></dt>
|
||||
<dd>A valid security model name, matching the currently
|
||||
activated security model
|
||||
activated security model. Model <code>dac</code> is not available
|
||||
when guest is run by unprivileged user.
|
||||
</dd>
|
||||
<dt><code>relabel</code></dt>
|
||||
<dd>Either <code>yes</code> or <code>no</code>. This must always
|
||||
|
@ -769,7 +769,7 @@ static int virSecurityManagerCheckModel(virSecurityManagerPtr mgr,
|
||||
}
|
||||
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Unable to find security driver for model %s"),
|
||||
_("Security driver model '%s' is not available"),
|
||||
secmodel);
|
||||
cleanup:
|
||||
VIR_FREE(sec_managers);
|
||||
|
Loading…
Reference in New Issue
Block a user