Accepting request 328678 from home:jfehlig:branches:Virtualization
- Update to libvirt 1.2.19
- Improved ppc64 support
- New virDomainRename API
- Support for new QEMU pci emulations
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped upstream patches:
269d39af-storage-allocation-fix.patch,
26c5fa3a-virt-aa-helper-missing-doc.patch,
d25a5e08-virt-aa-helper-simplify-restriction-logic.patch,
2f01cfdf-virt-aa-helper-allow-ovmf.patch,
91fdcefa-virt-aa-helper-allow-nvram.patch,
52970dec-virt-aa-helper-improve-valid-path.patch,
44a54eb0-libxl-fix-refcnt-MigrationDstArgs.patch,
15120b8c-libxl-no-resume-on-suspend-fail.patch,
e80b84a7-libxl-acquire-job-on-migrate.patch,
60acb38-revert-curmem-inactive-dom.patch
OBS-URL: https://build.opensuse.org/request/show/328678
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=481
2015-09-02 17:27:32 +02:00
|
|
|
Index: libvirt-1.2.19/examples/apparmor/libvirt-lxc
|
2014-09-01 17:20:43 +02:00
|
|
|
===================================================================
|
Accepting request 328678 from home:jfehlig:branches:Virtualization
- Update to libvirt 1.2.19
- Improved ppc64 support
- New virDomainRename API
- Support for new QEMU pci emulations
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped upstream patches:
269d39af-storage-allocation-fix.patch,
26c5fa3a-virt-aa-helper-missing-doc.patch,
d25a5e08-virt-aa-helper-simplify-restriction-logic.patch,
2f01cfdf-virt-aa-helper-allow-ovmf.patch,
91fdcefa-virt-aa-helper-allow-nvram.patch,
52970dec-virt-aa-helper-improve-valid-path.patch,
44a54eb0-libxl-fix-refcnt-MigrationDstArgs.patch,
15120b8c-libxl-no-resume-on-suspend-fail.patch,
e80b84a7-libxl-acquire-job-on-migrate.patch,
60acb38-revert-curmem-inactive-dom.patch
OBS-URL: https://build.opensuse.org/request/show/328678
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=481
2015-09-02 17:27:32 +02:00
|
|
|
--- libvirt-1.2.19.orig/examples/apparmor/libvirt-lxc
|
|
|
|
+++ libvirt-1.2.19/examples/apparmor/libvirt-lxc
|
2014-09-01 17:20:43 +02:00
|
|
|
@@ -2,39 +2,15 @@
|
|
|
|
|
|
|
|
#include <abstractions/base>
|
|
|
|
|
|
|
|
- umount,
|
|
|
|
-
|
|
|
|
- # ignore DENIED message on / remount
|
|
|
|
- deny mount options=(ro, remount) -> /,
|
|
|
|
-
|
|
|
|
- # allow tmpfs mounts everywhere
|
|
|
|
- mount fstype=tmpfs,
|
|
|
|
-
|
|
|
|
- # allow mqueue mounts everywhere
|
|
|
|
- mount fstype=mqueue,
|
|
|
|
-
|
|
|
|
- # allow fuse mounts everywhere
|
|
|
|
- mount fstype=fuse.*,
|
|
|
|
-
|
|
|
|
- # deny writes in /proc/sys/fs but allow binfmt_misc to be mounted
|
|
|
|
- mount fstype=binfmt_misc -> /proc/sys/fs/binfmt_misc/,
|
|
|
|
+ # deny writes in /proc/sys/fs
|
|
|
|
deny @{PROC}/sys/fs/** wklx,
|
|
|
|
|
|
|
|
- # allow efivars to be mounted, writing to it will be blocked though
|
|
|
|
- mount fstype=efivarfs -> /sys/firmware/efi/efivars/,
|
|
|
|
-
|
|
|
|
# block some other dangerous paths
|
|
|
|
deny @{PROC}/sysrq-trigger rwklx,
|
|
|
|
deny @{PROC}/mem rwklx,
|
|
|
|
deny @{PROC}/kmem rwklx,
|
|
|
|
|
|
|
|
- # deny writes in /sys except for /sys/fs/cgroup, also allow
|
|
|
|
- # fusectl, securityfs and debugfs to be mounted there (read-only)
|
|
|
|
- mount fstype=fusectl -> /sys/fs/fuse/connections/,
|
|
|
|
- mount fstype=securityfs -> /sys/kernel/security/,
|
|
|
|
- mount fstype=debugfs -> /sys/kernel/debug/,
|
|
|
|
- mount fstype=proc -> /proc/,
|
|
|
|
- mount fstype=sysfs -> /sys/,
|
|
|
|
+ # deny writes in /sys
|
|
|
|
deny /sys/firmware/efi/efivars/** rwklx,
|
|
|
|
deny /sys/kernel/security/** rwklx,
|
|
|
|
|