forked from pool/libvirt
c7b51f773c
- Update to libvirt 1.3.5 - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Dropped patches: e4d131b8-mv-virDomainDefPostParseInternal.patch, 3e428670-post-parse-implicit-video.patch, 538012c8-default-vram.patch, 96b21fb0-vram-tests.patch, 400e716d-libxl-noprope-emulator.patch, b90c4b5f-tests-use-qemu-xen.patch, fccf2725-libxl-API-4.4.patch, 5325123d-libxl-migv2-save-restore.patch, f9edcfa4-libxl-migv2-migration.patch, a1c9a81a-libxl-rbd-fix.patch, ba566428-libxl-dom-iface-addrs.patch - spec: simplify and cleanup by removing many conditionals that are never toogled. Also drop conditionals for suse_version < 1310 OBS-URL: https://build.opensuse.org/request/show/400351 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=538
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
Index: libvirt-1.3.5/examples/apparmor/libvirt-lxc
|
|
===================================================================
|
|
--- libvirt-1.3.5.orig/examples/apparmor/libvirt-lxc
|
|
+++ libvirt-1.3.5/examples/apparmor/libvirt-lxc
|
|
@@ -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,
|
|
|