Hello community,

here is the log from the commit of package apparmor-rpm-macros for 
openSUSE:Factory checked in at 2018-03-04 11:52:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/apparmor-rpm-macros (Old)
 and      /work/SRC/openSUSE:Factory/.apparmor-rpm-macros.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "apparmor-rpm-macros"

Sun Mar  4 11:52:18 2018 rev:4 rq:580982 version:1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/apparmor-rpm-macros/apparmor-rpm-macros.changes  
2017-08-28 15:19:26.129584728 +0200
+++ 
/work/SRC/openSUSE:Factory/.apparmor-rpm-macros.new/apparmor-rpm-macros.changes 
    2018-03-04 11:52:20.022726662 +0100
@@ -1,0 +2,8 @@
+Wed Feb 28 06:37:37 UTC 2018 - [email protected]
+
+- Check if apparmor is active before reloading a profile (bsc#1083226)
+  Otherwise a package using the %apparmor_reload macro in %post
+  automatically enables the profile even if apparmor itself is
+  not active.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ apparmor-rpm-macros.spec ++++++
--- /var/tmp/diff_new_pack.zBJsqm/_old  2018-03-04 11:52:20.790699020 +0100
+++ /var/tmp/diff_new_pack.zBJsqm/_new  2018-03-04 11:52:20.790699020 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package apparmor-rpm-macros
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 Version:        1.0
 Release:        0
 Summary:        RPM macros used to setup apparmor profiles
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          Development/Tools/Other
 Url:            https://bugs.launchpad.net/apparmor
 Source:         macros.apparmor

++++++ macros.apparmor ++++++
--- /var/tmp/diff_new_pack.zBJsqm/_old  2018-03-04 11:52:20.846697005 +0100
+++ /var/tmp/diff_new_pack.zBJsqm/_new  2018-03-04 11:52:20.846697005 +0100
@@ -1,5 +1,7 @@
 %apparmor_reload()\
        if [ "$YAST_IS_RUNNING" != "instsys" ]; then\
-               /sbin/apparmor_parser -r -T -W %{?*} &> /dev/null || :\
+               if /usr/bin/systemctl is-active --quiet apparmor.service; then\
+                       /sbin/apparmor_parser -r -T -W %{?*} &> /dev/null || :\
+               fi\
        fi\
 %{nil}


Reply via email to