diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2015-10-07 16:58:39 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2015-10-12 13:15:00 +0100 |
commit | 8a6b6037f8486b4fc8a1395d03956510247fbc96 (patch) | |
tree | e33a2b5bae1c0b6b065ab9ee5d26640caab39750 /tools/virt-host-validate-common.h | |
parent | 44a96fe914064df20b016778add77f2667e65169 (diff) | |
download | libvirt-8a6b6037f8486b4fc8a1395d03956510247fbc96.tar.gz |
virt-host-validate.c: check for kernel namespaces
The LXC driver requires the uts, mnt, pid & ipc
namespaces, while net & user namespaces are
optional. Validate all these are present.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tools/virt-host-validate-common.h')
-rw-r--r-- | tools/virt-host-validate-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/virt-host-validate-common.h b/tools/virt-host-validate-common.h index 25644dca8f..9d8bceaea3 100644 --- a/tools/virt-host-validate-common.h +++ b/tools/virt-host-validate-common.h @@ -54,4 +54,9 @@ extern int virHostValidateLinuxKernel(const char *hvname, virHostValidateLevel level, const char *hint); +extern int virHostValidateNamespace(const char *hvname, + const char *ns_name, + virHostValidateLevel level, + const char *hint); + #endif /* __VIRT_HOST_VALIDATE_COMMON_H__ */ |