Accepting request 687772 from Virtualization

OBS-URL: https://build.opensuse.org/request/show/687772
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvirt?expand=0&rev=277
This commit is contained in:
Dominique Leuenberger 2019-03-26 14:37:52 +00:00 committed by Git OBS Bridge
commit 70d88d3b43
3 changed files with 11 additions and 52 deletions

View File

@ -1,46 +0,0 @@
Index: libvirt-5.1.0/src/security/apparmor/libvirt-lxc
===================================================================
--- libvirt-5.1.0.orig/src/security/apparmor/libvirt-lxc
+++ libvirt-5.1.0/src/security/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,

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 21 21:40:06 UTC 2019 - James Fehlig <jfehlig@suse.com>
- apparmor: reintroduce upstream lxc mount rules
Drop apparmor-no-mount.patch
bsc#1130129
-------------------------------------------------------------------
Fri Mar 15 23:21:06 UTC 2019 - James Fehlig <jfehlig@suse.com>

View File

@ -367,11 +367,10 @@ Patch208: suse-apparmor-libnl-paths.patch
Patch209: support-managed-pci-xen-driver.patch
Patch210: xen-sxpr-disk-type.patch
Patch211: libxl-support-block-script.patch
Patch212: apparmor-no-mount.patch
Patch213: qemu-apparmor-screenshot.patch
Patch214: libvirt-suse-netcontrol.patch
Patch215: lxc-wait-after-eth-del.patch
Patch216: suse-libxl-disable-autoballoon.patch
Patch212: qemu-apparmor-screenshot.patch
Patch213: libvirt-suse-netcontrol.patch
Patch214: lxc-wait-after-eth-del.patch
Patch215: suse-libxl-disable-autoballoon.patch
# SLES-Only patches
%if ! 0%{?is_opensuse}
Patch400: virt-create-rootfs.patch
@ -910,7 +909,6 @@ libvirt plugin for NSS for translating domain names into IP addresses.
%patch213 -p1
%patch214 -p1
%patch215 -p1
%patch216 -p1
%if ! 0%{?is_opensuse}
%patch400 -p1
%endif