]> git.pld-linux.org Git - packages/libvirt.git/blob - libvirt-qemu-acl.patch
c321962d7aa12d4e81370c03cb88e28813fb516d
[packages/libvirt.git] / libvirt-qemu-acl.patch
1 diff -dur -x '*.orig' -x '*.rej' -x '*~' libvirt-2.1.0.orig/src/qemu/qemu_command.c libvirt-2.1.0/src/qemu/qemu_command.c
2 --- libvirt-2.1.0.orig/src/qemu/qemu_command.c  2016-08-02 09:10:56.000000000 +0200
3 +++ libvirt-2.1.0/src/qemu/qemu_command.c       2016-08-17 12:43:29.000000000 +0200
4 @@ -7521,6 +7521,9 @@
5          /* TODO: Support ACLs later */
6      }
7  
8 +    if (cfg->vncACL) 
9 +        virBufferAddLit(&opt, ",acl");
10 +
11      virCommandAddArg(cmd, "-vnc");
12      virCommandAddArgBuffer(cmd, &opt);
13      if (graphics->data.vnc.keymap)
14 diff -dur -x '*.orig' -x '*.rej' -x '*~' libvirt-2.1.0.orig/src/qemu/qemu.conf libvirt-2.1.0/src/qemu/qemu.conf
15 --- libvirt-2.1.0.orig/src/qemu/qemu.conf       2016-08-17 12:30:24.000000000 +0200
16 +++ libvirt-2.1.0/src/qemu/qemu.conf    2016-08-17 12:37:00.000000000 +0200
17 @@ -80,6 +80,15 @@
18  #vnc_sasl = 1
19  
20  
21 +# Enable the VNC access control lists. When switched on this will
22 +# initially block all vnc users from accessing the vnc server. To
23 +# add and remove ids from the ACLs you will need to send the appropriate
24 +# commands to the qemu monitor as required by your particular version of
25 +# QEMU. See the QEMU documentation for more details.
26 +# 
27 +# vnc_acl = 1
28 +
29 +
30  # The default SASL configuration file is located in /etc/sasl/
31  # When running libvirtd unprivileged, it may be desirable to
32  # override the configs in this location. Set this parameter to
33 diff -ur libvirt-5.1.0.orig/src/qemu/qemu_conf.c libvirt-5.1.0/src/qemu/qemu_conf.c
34 --- libvirt-5.1.0.orig/src/qemu/qemu_conf.c     2019-02-26 00:24:59.015183201 +0100
35 +++ libvirt-5.1.0/src/qemu/qemu_conf.c  2019-03-07 00:31:31.736955745 +0100
36 @@ -471,6 +471,8 @@
37          return -1;
38      if (virConfGetValueBool(conf, "vnc_allow_host_audio", &cfg->vncAllowHostAudio) < 0)
39          return -1;
40 +    if (virConfGetValueBool(conf, "vnc_acl", &cfg->vncACL) < 0)
41 +        return -1;
42  
43      return 0;
44  }
45 diff -dur -x '*.orig' -x '*.rej' -x '*~' libvirt-2.1.0.orig/src/qemu/qemu_conf.h libvirt-2.1.0/src/qemu/qemu_conf.h
46 --- libvirt-2.1.0.orig/src/qemu/qemu_conf.h     2016-07-27 14:39:35.000000000 +0200
47 +++ libvirt-2.1.0/src/qemu/qemu_conf.h  2016-08-17 12:37:00.000000000 +0200
48 @@ -113,6 +113,7 @@
49      bool vncTLS;
50      bool vncTLSx509verify;
51      bool vncSASL;
52 +    bool vncACL;
53      char *vncTLSx509certdir;
54      char *vncListen;
55      char *vncPassword;
This page took 0.054657 seconds and 2 git commands to generate.