summaryrefslogtreecommitdiff
path: root/tests/securityselinuxtest.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2015-09-10 11:43:31 +0200
committerMichal Privoznik <mprivozn@redhat.com>2015-09-15 11:30:14 +0200
commit307fb9044c1c9a5394b66e6909c6fd943d7f84c8 (patch)
tree86eb9bad1e1fd631bca1be85909076a4ff4690bb /tests/securityselinuxtest.c
parent276c409163fb94b0c325900d6e2581eaa3e3ada6 (diff)
downloadlibvirt-307fb9044c1c9a5394b66e6909c6fd943d7f84c8.tar.gz
virSecurityManager: Track if running as privileged
We may want to do some decisions in drivers based on fact if we are running as privileged user or not. Propagate this info there. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tests/securityselinuxtest.c')
-rw-r--r--tests/securityselinuxtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/securityselinuxtest.c b/tests/securityselinuxtest.c
index 38ab70e6ac..3a7862f426 100644
--- a/tests/securityselinuxtest.c
+++ b/tests/securityselinuxtest.c
@@ -272,7 +272,7 @@ mymain(void)
int ret = 0;
virSecurityManagerPtr mgr;
- if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
+ if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false, true))) {
virErrorPtr err = virGetLastError();
fprintf(stderr, "Unable to initialize security driver: %s\n",
err->message);