[pkg-apparmor] Bug#829030: apparmor snippet requires 2.10.95-3
Guido Günther
agx at sigxcpu.org
Wed Jun 29 21:16:57 UTC 2016
Package: dh-apparmor
Severity: normal
Version: 2.10.95-2
Rebuilding libvirt with above version leads to
Installing new version of config file /etc/libvirt/qemu.conf ...
/var/lib/dpkg/info/libvirt-daemon-system.postinst: 147: /var/lib/dpkg/info/libvirt-daemon-system.postinst: aa-enabled: not found
/var/lib/dpkg/info/libvirt-daemon-system.postinst: 172: /var/lib/dpkg/info/libvirt-daemon-system.postinst: aa-enabled: not found
virtlockd.service is a disabled or a static unit, not starting it.
upon installation caused by:
# Automatically added by dh_apparmor
if [ "$1" = "configure" ]; then
APP_PROFILE="/etc/apparmor.d/usr.lib.libvirt.virt-aa-helper"
if [ -f "$APP_PROFILE" ]; then
# Add the local/ include
LOCAL_APP_PROFILE="/etc/apparmor.d/local/usr.lib.libvirt.virt-aa-helper"
test -e "$LOCAL_APP_PROFILE" || {
tmp=`mktemp`
cat <<EOM > "$tmp"
# Site-specific additions and overrides for usr.lib.libvirt.virt-aa-helper.
# For more details, please see /etc/apparmor.d/local/README.
EOM
mkdir `dirname "$LOCAL_APP_PROFILE"` 2>/dev/null || true
mv -f "$tmp" "$LOCAL_APP_PROFILE"
chmod 644 "$LOCAL_APP_PROFILE"
}
# Reload the profile, including any abstraction updates
if aa-enabled --quiet; then
apparmor_parser -r -T -W "$APP_PROFILE" || true
fi
fi
fi
However aa-enabled is not available in 2.10-4 but only in 2.10.95-3 so
dh-apparmor needs to generate a versioned dependency via e.g. misc:Depends.
Cheers,
-- Guido
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the pkg-apparmor-team
mailing list