]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
security: improve security driver error message
authorSebastian Mitterle <smitterl@redhat.com>
Tue, 7 Jan 2020 14:15:19 +0000 (14:15 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 7 Jan 2020 14:44:32 +0000 (14:44 +0000)
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>

docs/formatdomain.html.in
src/security/security_manager.c

index dd04a05f09a9214efe8035e954a44bfbc249b184..3040448df19d4499d91e56fb3855f4654b1f6ff4 100644 (file)
@@ -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
index 952675381d29e1b8e5351f35e069aa51f166cc8c..f229d945704b6fe3626983dc3a622a363f942696 100644 (file)
@@ -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);