diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-31 20:30:04 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-31 20:30:04 +0000 |
commit | 4650985dd0e898b82e0d2ec225931297d4fadccf (patch) | |
tree | eb0e8002cf3ebf1009110b6fec47fa90f873d824 /app-emulation/libvirt/files | |
parent | 67f76a858f1ac826bd8a550d756d9ec6e340ed4f (diff) |
gentoo resync : 31.01.2018
Diffstat (limited to 'app-emulation/libvirt/files')
-rw-r--r-- | app-emulation/libvirt/files/libvirt-3.10.0-r2-fix_paths_for_apparmor.patch (renamed from app-emulation/libvirt/files/libvirt-3.10.0-fix_paths_for_apparmor.patch) | 91 | ||||
-rw-r--r-- | app-emulation/libvirt/files/libvirt-4.0.0-bash_completion_bugfixes.patch | 42 |
2 files changed, 67 insertions, 66 deletions
diff --git a/app-emulation/libvirt/files/libvirt-3.10.0-fix_paths_for_apparmor.patch b/app-emulation/libvirt/files/libvirt-3.10.0-r2-fix_paths_for_apparmor.patch index 0e386c1e00b0..f1360ae4e4e9 100644 --- a/app-emulation/libvirt/files/libvirt-3.10.0-fix_paths_for_apparmor.patch +++ b/app-emulation/libvirt/files/libvirt-3.10.0-r2-fix_paths_for_apparmor.patch @@ -1,5 +1,5 @@ diff --git a/examples/Makefile.am b/examples/Makefile.am -index ef2f79d..d8cdb9b 100644 +index ef2f79db3..d8cdb9b3f 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -23,7 +23,7 @@ EXTRA_DIST = \ @@ -21,7 +21,7 @@ index ef2f79d..d8cdb9b 100644 $(NULL) diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu -index d4fad85..0b22009 100644 +index d4fad85a1..0b22009e5 100644 --- a/examples/apparmor/libvirt-qemu +++ b/examples/apparmor/libvirt-qemu @@ -86,6 +86,8 @@ @@ -33,74 +33,33 @@ index d4fad85..0b22009 100644 # access PKI infrastructure /etc/pki/libvirt-vnc/** r, -diff --git a/examples/apparmor/usr.lib.libvirt.virt-aa-helper b/examples/apparmor/usr.lib.libvirt.virt-aa-helper -deleted file mode 100644 -index bd6181d..0000000 +diff --git a/examples/apparmor/usr.lib.libvirt.virt-aa-helper b/examples/apparmor/usr.libexec.virt-aa-helper +similarity index 92% +rename from examples/apparmor/usr.lib.libvirt.virt-aa-helper +rename to examples/apparmor/usr.libexec.virt-aa-helper +index bd6181d00..4086f140a 100644 --- a/examples/apparmor/usr.lib.libvirt.virt-aa-helper -+++ /dev/null -@@ -1,60 +0,0 @@ --# Last Modified: Mon Apr 5 15:10:27 2010 --#include <tunables/global> -- ++++ b/examples/apparmor/usr.libexec.virt-aa-helper +@@ -1,7 +1,7 @@ + # Last Modified: Mon Apr 5 15:10:27 2010 + #include <tunables/global> + -profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper { -- #include <abstractions/base> -- -- # needed for searching directories -- capability dac_override, -- capability dac_read_search, -- -- # needed for when disk is on a network filesystem -- network inet, -- network inet6, -- -- deny @{PROC}/[0-9]*/mounts r, -- @{PROC}/[0-9]*/net/psched r, -- owner @{PROC}/[0-9]*/status r, -- @{PROC}/filesystems r, -- -- /etc/libnl-3/classid r, -- -- # for hostdev -- /sys/devices/ r, -- /sys/devices/** r, -- deny /dev/sd* r, -- deny /dev/vd* r, -- deny /dev/dm-* r, -- deny /dev/drbd[0-9]* r, -- deny /dev/dasd* r, -- deny /dev/nvme* r, -- deny /dev/zd[0-9]* r, -- deny /dev/mapper/ r, -- deny /dev/mapper/* r, -- ++profile virt-aa-helper /usr/libexec/virt-aa-helper { + #include <abstractions/base> + + # needed for searching directories +@@ -32,7 +32,7 @@ profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper { + deny /dev/mapper/ r, + deny /dev/mapper/* r, + - /usr/{lib,lib64}/libvirt/virt-aa-helper mr, -- /{usr/,}sbin/apparmor_parser Ux, -- -- /etc/apparmor.d/libvirt/* r, -- /etc/apparmor.d/libvirt/libvirt-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]* rw, -- -- # for backingstore -- allow access to non-hidden files in @{HOME} as well -- # as storage pools -- audit deny @{HOME}/.* mrwkl, -- audit deny @{HOME}/.*/ rw, -- audit deny @{HOME}/.*/** mrwkl, -- audit deny @{HOME}/bin/ rw, -- audit deny @{HOME}/bin/** mrwkl, -- @{HOME}/ r, -- @{HOME}/** r, -- /var/lib/libvirt/images/ r, -- /var/lib/libvirt/images/** r, -- /{media,mnt,opt,srv}/** r, -- -- /**.img r, -- /**.qcow{,2} r, -- /**.qed r, -- /**.vmdk r, -- /**.[iI][sS][oO] r, -- /**/disk{,.*} r, --} ++ /usr/libexec/virt-aa-helper mr, + /{usr/,}sbin/apparmor_parser Ux, + + /etc/apparmor.d/libvirt/* r, diff --git a/examples/apparmor/usr.sbin.libvirtd b/examples/apparmor/usr.sbin.libvirtd -index 8d61d15..656a559 100644 +index 8d61d154e..656a5595b 100644 --- a/examples/apparmor/usr.sbin.libvirtd +++ b/examples/apparmor/usr.sbin.libvirtd @@ -84,8 +84,10 @@ diff --git a/app-emulation/libvirt/files/libvirt-4.0.0-bash_completion_bugfixes.patch b/app-emulation/libvirt/files/libvirt-4.0.0-bash_completion_bugfixes.patch new file mode 100644 index 000000000000..65894ed4e1d8 --- /dev/null +++ b/app-emulation/libvirt/files/libvirt-4.0.0-bash_completion_bugfixes.patch @@ -0,0 +1,42 @@ +https://www.redhat.com/archives/libvir-list/2018-January/msg00903.html +https://www.redhat.com/archives/libvir-list/2018-January/msg00904.html + +diff --git a/tools/virsh-completer.c b/tools/virsh-completer.c +index e216d9076..e3b8234b4 100644 +--- a/tools/virsh-completer.c ++++ b/tools/virsh-completer.c +@@ -45,18 +45,11 @@ virshDomainNameCompleter(vshControl *ctl, + + virCheckFlags(VIR_CONNECT_LIST_DOMAINS_ACTIVE | + VIR_CONNECT_LIST_DOMAINS_INACTIVE | ++ VIR_CONNECT_LIST_DOMAINS_OTHER | ++ VIR_CONNECT_LIST_DOMAINS_PAUSED | + VIR_CONNECT_LIST_DOMAINS_PERSISTENT | +- VIR_CONNECT_LIST_DOMAINS_TRANSIENT | + VIR_CONNECT_LIST_DOMAINS_RUNNING | +- VIR_CONNECT_LIST_DOMAINS_PAUSED | +- VIR_CONNECT_LIST_DOMAINS_SHUTOFF | +- VIR_CONNECT_LIST_DOMAINS_OTHER | +- VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE | +- VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE | +- VIR_CONNECT_LIST_DOMAINS_AUTOSTART | +- VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART | +- VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT | +- VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT, ++ VIR_CONNECT_LIST_DOMAINS_SHUTOFF, + NULL); + + if (!priv->conn || virConnectIsAlive(priv->conn) <= 0) +diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c +index 0f329d6d7..5a0e0c1b2 100644 +--- a/tools/virsh-domain.c ++++ b/tools/virsh-domain.c +@@ -1037,7 +1037,7 @@ static const vshCmdInfo info_autostart[] = { + }; + + static const vshCmdOptDef opts_autostart[] = { +- VIRSH_COMMON_OPT_DOMAIN_FULL(0), ++ VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_PERSISTENT), + {.name = "disable", + .type = VSH_OT_BOOL, + .help = N_("disable autostarting") |