commit 6ecca88275e529db30bce32fb8f2ea14bcc2e470 Author: Adrian Schröter Date: Mon Feb 19 18:41:13 2024 +0100 Sync from SUSE:ALP:Source:Standard:1.0 apparmor revision f47591b8c15fad3cc52a4a9bca9f87af diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..7dd5903 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + libapparmor + + diff --git a/apache-extra-profile-include-if-exists.diff b/apache-extra-profile-include-if-exists.diff new file mode 100644 index 0000000..acbf79b --- /dev/null +++ b/apache-extra-profile-include-if-exists.diff @@ -0,0 +1,23 @@ +Make the include optional to avoid problems with empty profile dir. +Probably doesn't happen on real systems, but openQA uses an empty profile dir +for some tests. + +Note: the patch gets applied before moving the profile to the extra directory +because quilt doesn't run the 'mv' command and therefore fails to patch the +profile at its new location (extra profiles directory) + +Fixes https://bugzilla.opensuse.org/show_bug.cgi?id=1178527 + +Index: profiles/apparmor/profiles/extras/usr.lib.apache2.mpm-prefork.apache2 +=================================================================== +--- profiles/apparmor/profiles/extras/usr.lib.apache2.mpm-prefork.apache2.orig 2020-12-02 12:01:37.000000000 +0100 ++++ profiles/apparmor/profiles/extras/usr.lib.apache2.mpm-prefork.apache2 2021-01-22 12:19:45.964708670 +0100 +@@ -75,7 +75,7 @@ include + # This directory contains web application + # package-specific apparmor files. + +- include ++ include if exists + + # Site-specific additions and overrides. See local/README for details. + include if exists diff --git a/apparmor-3.1.7.tar.gz b/apparmor-3.1.7.tar.gz new file mode 100644 index 0000000..058bd1d --- /dev/null +++ b/apparmor-3.1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6c161d6dbd99c2f10758ff347cbc6848223c7381f311de62522f22b0a16de64 +size 7968847 diff --git a/apparmor-3.1.7.tar.gz.asc b/apparmor-3.1.7.tar.gz.asc new file mode 100644 index 0000000..2d3bf17 --- /dev/null +++ b/apparmor-3.1.7.tar.gz.asc @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- + +iQJOBAABCgA4FiEEPs3Lpfs00lSWHMU/ZonmTj02ZLsFAmXBWL0aHGFwcGFybW9y +QGxpc3RzLnVidW50dS5jb20ACgkQZonmTj02ZLuerQ//QCW7GNO++nu3fv4lH7qy +Fz8FRIdbzsZx0jnWcj07xoRBiGhPijdGXzv7SH0PQL2rBhIZqXUZO/nEAzkJzwXd +DUIFyospmNTcd+CXd+Xj6u/oq7lSWu+XxcepWWyw5I9mU+IdpGhIhW5RtgMl/khx +sSfhPgO5mymnQ6CZBazTnxmKlIvyuqO+TAZTupK7ce1ld+dETDM8XzAnbwAYHocl +tELqIoQyGCyicdFHDEJM5aDJGyY8pWVaOblLmlB0xBPuyL1reaUyVv1Ru097E/5n +TRPAEtlFBlMFAQs19sY7lXbM4vTmuZP6nAn2A3sQMqTwBqaJ/DRi2ujrE++hYFmF +ltQQ8UwUKf2PsUfCUp9kvVjyL3orGal3vhbSn+6ohpRVzzmF4I23gLiV8bS1dod9 +FUKcMpN+8qffowgCaTo6GwbNW4vD6nqQkfIwJaY+TjVN2TMwskfj/XUulwSiYicT +wycP8rWdKCbZ/HXZlYEOVs/tS3pEDlU3fLIYzEJ9m857rYb1etldN8zR8ws5cuQy +ZBbAqmpB8QRh4tvGbysqLLxQZYfUWDotKI/IStHLZ2MfWFiQNR6lCawpptC/ah4C +T4OruJAByicSiDI1ini41UwD53sgEZ2SOXdaB5DjGfLDzzw36JfFpYNKLRSiJuW2 +6fXO9jCqPrweMYfr6ImGBF4= +=C8pg +-----END PGP SIGNATURE----- diff --git a/apparmor-abstractions-openssl-allow-version-specific-en.patch b/apparmor-abstractions-openssl-allow-version-specific-en.patch new file mode 100644 index 0000000..a3bdd73 --- /dev/null +++ b/apparmor-abstractions-openssl-allow-version-specific-en.patch @@ -0,0 +1,43 @@ +From 00efed1f35e2bb3f01c1914a4968e48562612fd4 Mon Sep 17 00:00:00 2001 +From: Christian Boltz +Date: Wed, 7 Feb 2024 08:49:58 +0000 +Subject: [PATCH] Merge abstractions/openssl: allow version specific engdef & + engines paths + +Some openssl distributions use version specific engdef and engines paths +to support multi-version installations. + +Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1219571 + +Signed-off-by: David Disseldorp + +MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1147 +Approved-by: Christian Boltz +Merged-by: Christian Boltz + + +(cherry picked from commit 2577fbf0770784e531f9210856208a774ae92af0) + +2b8cf1be abstractions/openssl: allow version specific engdef & engines paths +--- + profiles/apparmor.d/abstractions/openssl | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/profiles/apparmor.d/abstractions/openssl b/profiles/apparmor.d/abstractions/openssl +index 65939ae4..e2c5955c 100644 +--- a/profiles/apparmor.d/abstractions/openssl ++++ b/profiles/apparmor.d/abstractions/openssl +@@ -12,8 +12,8 @@ + + /etc/ssl/openssl.cnf r, + /etc/ssl/openssl-*.cnf r, +- /etc/ssl/{engdef,engines}.d/ r, +- /etc/ssl/{engdef,engines}.d/*.cnf r, ++ /etc/ssl/{engdef*,engines*}.d/ r, ++ /etc/ssl/{engdef*,engines*}.d/*.cnf r, + /usr/share/ssl/openssl.cnf r, + + # Include additions to the abstraction +-- +2.35.3 + diff --git a/apparmor-enable-precompiled-cache.diff b/apparmor-enable-precompiled-cache.diff new file mode 100644 index 0000000..59e5bdc --- /dev/null +++ b/apparmor-enable-precompiled-cache.diff @@ -0,0 +1,26 @@ +Set the cache location to /var/cache/apparmor/ (writeable) and +/usr/share/apparmor/cache/ (packaged precompiled cache). + +See boo#1069906 and boo#1074429 + +Note that Tumbleweed packages don't include precompiled profile cache on +Tumbleweed as long as it's purely validated based on timestamps (boo#1205659) + + +Signed-off by: Christian Boltz + +Index: parser/parser.conf +=================================================================== +--- parser/parser.conf_ORIG 2018-04-19 22:47:18.485179998 +0200 ++++ parser/parser.conf 2018-04-19 22:51:12.084588654 +0200 +@@ -31,6 +31,9 @@ + + ## Turn creating/updating of the cache on by default + write-cache ++ ++# cache location (cache writes go to the first directory in the list) ++cache-loc /var/cache/apparmor,/usr/share/apparmor/cache + + ## Show cache hits + #show-cache + diff --git a/apparmor-enable-profile-cache.diff b/apparmor-enable-profile-cache.diff new file mode 100644 index 0000000..0136846 --- /dev/null +++ b/apparmor-enable-profile-cache.diff @@ -0,0 +1,26 @@ +Enable caching of profiles. + +This speeds up loading the (unchanged) profiles about 20 times. + +Upstream doesn't enable caching because the cache directory is not +writeable at the time profiles are loaded in Ubuntu. + +See also bnc#689458 + + +Signed-off by: Christian Boltz + +Index: parser/parser.conf +=================================================================== +--- parser/parser.conf_ORIG 2018-04-19 22:47:18.485179998 +0200 ++++ parser/parser.conf 2018-04-19 22:51:12.084588654 +0200 +@@ -31,7 +31,7 @@ + # match-string "pattern=aadfa audit perms=crwxamlk/ user::other" + + ## Turn creating/updating of the cache on by default +-#write-cache ++write-cache + + ## Show cache hits + #show-cache + diff --git a/apparmor-lessopen-nfs-workaround.diff b/apparmor-lessopen-nfs-workaround.diff new file mode 100644 index 0000000..7b97ab7 --- /dev/null +++ b/apparmor-lessopen-nfs-workaround.diff @@ -0,0 +1,17 @@ +Index: profiles/apparmor.d/usr.bin.lessopen.sh +=================================================================== +--- profiles/apparmor.d/usr.bin.lessopen.sh.orig 2021-09-18 15:15:00.967216031 +0200 ++++ profiles/apparmor.d/usr.bin.lessopen.sh 2021-09-18 15:18:35.731065782 +0200 +@@ -13,6 +13,12 @@ abi , + capability dac_override, + capability dac_read_search, + ++ # workaround for https://bugzilla.opensuse.org/show_bug.cgi?id=1119937 / http://bugzilla.opensuse.org/show_bug.cgi?id=1190552 / https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1784499 ++ network inet dgram, ++ network inet6 dgram, ++ network inet stream, ++ network inet6 stream, ++ + /** rk, + /{usr/,}bin/bash mrix, + /{usr/,}bin/rpm mrix, diff --git a/apparmor-lessopen-profile.patch b/apparmor-lessopen-profile.patch new file mode 100644 index 0000000..3228088 --- /dev/null +++ b/apparmor-lessopen-profile.patch @@ -0,0 +1,57 @@ +Index: profiles/apparmor.d/usr.bin.lessopen.sh +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ profiles/apparmor.d/usr.bin.lessopen.sh 2017-10-28 14:15:12.624358664 +0200 +@@ -0,0 +1,52 @@ ++# vim: ft=apparmor ++ ++abi , ++ ++#include ++ ++/usr/bin/lessopen.sh { ++ #include ++ #include ++ #include ++ #include ++ ++ capability dac_override, ++ capability dac_read_search, ++ ++ /** rk, ++ /{usr/,}bin/bash mrix, ++ /{usr/,}bin/rpm mrix, ++ /{usr/,}bin/tar mrix, ++ /tmp/less.* rw, ++ /usr/bin/bzip2 mrix, ++ /usr/bin/cabextract mrix, ++ /usr/bin/cat mrix, ++ /usr/bin/colordiff mrix, ++ /usr/bin/dvi2tty mrix, ++ /usr/bin/eqn mrix, ++ /usr/bin/file mrix, ++ /usr/bin/grep mrix, ++ /usr/bin/groff mrix, ++ /usr/bin/grotty mrix, ++ /usr/bin/gzip mrix, ++ /usr/bin/head mrix, ++ /usr/bin/lynx mrix, ++ /usr/bin/mktemp mrix, ++ /usr/bin/nm mrix, ++ /usr/bin/pic mrix, ++ /usr/bin/pdftotext mrix, ++ /usr/bin/ps2ascii mrix, ++ /usr/bin/rm mrix, ++ /usr/bin/seq mrix, ++ /usr/bin/soelim mrix, ++ /usr/bin/tar mrix, ++ /usr/bin/tbl mrix, ++ /usr/bin/troff mrix, ++ /usr/bin/unzip mrix, ++ /usr/bin/unzip-plain mrix, ++ /usr/bin/w3m mrix, ++ /usr/bin/which mrix, ++ /usr/bin/xz mrix, ++ ++ include if exists ++} diff --git a/apparmor-rpmlintrc b/apparmor-rpmlintrc new file mode 100644 index 0000000..7176a6a --- /dev/null +++ b/apparmor-rpmlintrc @@ -0,0 +1,7 @@ +# .features file for pre-compiled cache +addFilter("hidden-file-or-dir /usr/share/apparmor/cache/[0-9a-f]*.0/.features") + +# warnings for the disabled tomcat_apparmor subpackage +# addFilter("devel-file-in-non-devel-package.*/usr/lib63/libJNIChangeHat.so") +# addFilter("devel-file-in-non-devel-package.*/usr/lib/libJNIChangeHat.so") +# addFilter("shlib-policy-name-error.*libJNIChangeHat0") diff --git a/apparmor-samba-include-permissions-for-shares.diff b/apparmor-samba-include-permissions-for-shares.diff new file mode 100644 index 0000000..8466349 --- /dev/null +++ b/apparmor-samba-include-permissions-for-shares.diff @@ -0,0 +1,26 @@ +Samba generates a profile sniplet with permissions for all shares at +start using the update-apparmor-samba-profile script. + +After the include rules were upstreamed in AppArmor 3.0.5 (MR 838), this +patch was shortened. Now it "only" creates a dummy profile sniplet +because update-apparmor-samba-profiles on Leap 15.3 and 15.4 aborts if +the local/ sniplet doesn't exist. + +Tumbleweed does not rely on a pre-existing local/usr.sbin.smbd-shares +anymore, therefore the patch gets skipped there in the spec. + + +References: https://bugzilla.novell.com/show_bug.cgi?id=688040 + + +Signed-off-by: Christian Boltz + + +=== added file 'profiles/apparmor.d/local/usr.sbin.smbd-shares' +--- profiles/apparmor.d/local/usr.sbin.smbd-shares 1970-01-01 00:00:00 +0000 ++++ profiles/apparmor.d/local/usr.sbin.smbd-shares 2011-10-19 09:40:05 +0000 +@@ -0,0 +1,2 @@ ++# This file will be replaced by rules for all samba shares at samba start. ++# Do not edit! + + diff --git a/apparmor.changes b/apparmor.changes new file mode 100644 index 0000000..6622948 --- /dev/null +++ b/apparmor.changes @@ -0,0 +1,2308 @@ +------------------------------------------------------------------- +Thu Feb 8 05:20:26 UTC 2024 - David Disseldorp + +- Add apparmor-abstractions-openssl-allow-version-specific-en.patch to + allow version specific engdef & engines openssl paths (boo#1219571) + +------------------------------------------------------------------- +Mon Feb 5 22:19:27 UTC 2024 - Christian Boltz + +- Update to AppArmor 3.1.7 + - aa-logprof: don't skip exec events in hats + - fix aa-cleanprof to work with named profiles + - add permissions in various abstractions + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.7 + for the full list of changes +- drop upstreamed apparmor-systemd-sessions.patch + +------------------------------------------------------------------- +Mon Jan 29 20:56:13 UTC 2024 - Christian Boltz + +- Add dovecot-unix_chkpwd.diff to allow dovecot-auth to execute + unix_chkpwd, and add a profile for unix_chkpwd. This is needed + for PAM 1.6 (boo#1219139) +- Refresh apparmor.keyring - the key was renewed + +------------------------------------------------------------------- +Wed Nov 8 18:19:36 UTC 2023 - Christian Boltz + +- Actually apply the previously added patch for bsc#1216878 + +------------------------------------------------------------------- +Wed Nov 8 13:47:35 UTC 2023 - Julio Gonzalez Gil + +- Add apparmor-systemd-sessions.patch to allow read access to + /run/systemd/sessions/ (bsc#1216878) + +------------------------------------------------------------------- +Mon Sep 25 14:07:39 UTC 2023 - David Disseldorp + +- Fix pam_apparmor %post and %postun scripts to handle pam-config errors + (bsc#1215596) + +------------------------------------------------------------------- +Tue Jul 25 09:28:33 UTC 2023 - David Disseldorp + +- Add pam_apparmor README, referenced from online cha-apparmor-pam.html + documentation (bsc#1213472) + +------------------------------------------------------------------- +Thu Jun 22 11:16:52 UTC 2023 - Christian Boltz + +- update to AppArmor 3.1.6 (jsc#PED-5600) + - fix regression in mount rules (boo#1211989) + - some additions to the base and authentification abstractions + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.6 + for the full upstream changelog + +------------------------------------------------------------------- +Sun Jun 11 14:13:18 UTC 2023 - Christian Boltz + +- update to AppArmor 3.1.5 + - fix handling of mount rules in apparmor_parser + - minor additions to abstractions/base and snap_browsers + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.5 + for the full upstream changelog +- remove upstreamed aa-status-fix-json-mr1046.patch +- split off apparmor-enable-precompiled-cache.diff from + apparmor-enable-profile-cache.diff so that the precompiled cache + path doesn't get added in parser.conf for Tumbleweed builds. + This prevents a warning about the non-existing directory when + loading profiles. + +------------------------------------------------------------------- +Tue Jun 6 21:39:15 UTC 2023 - Christian Boltz + +- fix aa-status --json output (aa-status-fix-json-mr1046.patch, + boo#1211980#c12) + +------------------------------------------------------------------- +Mon May 29 16:55:46 UTC 2023 - Christian Boltz + +- update to AppArmor 3.1.4 + - parser: fix mount rules encoding (CVE-2016-1585) + - aa-logprof: fix error when choosing named exec with plain profile names + - aa-status: fix json output + - several fixes for profiles and abstractions + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.4 + for the full upstream changelog + +------------------------------------------------------------------- +Thu May 4 13:44:56 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Tue Feb 28 19:35:17 UTC 2023 - Christian Boltz + +- update to AppArmor 3.1.3 + - add support for more audit.log formats in libapparmor + - add abstractions/groff (boo#1065388) + - various additions in abstractions and profiles + - several bug fixes in parser and utils + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.3 + for the detailed upstream changelog +- drop upstreamed patches: + - abstractions-openssl-1_1.diff + - dnsmasq-cpu-possible.diff + - nscd-systemd-userdb.diff + +------------------------------------------------------------------- +Mon Feb 6 19:27:40 UTC 2023 - Christian Boltz + +- add abstractions-openssl-1_1.diff: allow to read + /etc/ssl/openssl-1_1.cnf in abstractions/openssl (boo#1207911) + +------------------------------------------------------------------- +Mon Jan 30 11:33:05 UTC 2023 - Christian Boltz + +- add nscd-systemd-userdb.diff: allow nscd to read systemd-userdb + (boo#1207698) + +------------------------------------------------------------------- +Tue Dec 27 10:20:43 UTC 2022 - Ludwig Nussel + +- Replace transitional %usrmerged macro with regular version check (boo#1206798) + +------------------------------------------------------------------- +Fri Dec 23 22:59:24 UTC 2022 - Samuel Cabrero + +- Add samba-4-17.patch to update the samba profiles for samba + version 4.17 (bsc#1206626); + - samba-4-17.patch superseded by upstream merge: + https://gitlab.com/apparmor/apparmor/-/merge_requests/926 + +------------------------------------------------------------------- +Tue Nov 22 18:54:46 UTC 2022 - Christian Boltz + +- update to AppArmor 3.1.2 + - lots of cleanups, improvements and bugfixes in all areas + - rework internal profile storage and handling in the aa-* tools + - support boolean variable definitions in the aa-* tools + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.1 + and https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.1.2 + for the detailed upstream changelog +- remove upstream(ed) patches: + - apparmor-3.0.7-egrep.patch + - dnsmasq.diff + - profiles-permit-php-fpm-pid-files-directly-under-run.patch + - zgrep-profile-mr870.diff +- no longer ship precompiled profile cache for Tumbleweed (boo#1205659) +- BuildRequire iproute2 (needed for aa-unconfined tests) + +------------------------------------------------------------------- +Sun Sep 4 18:08:28 UTC 2022 - Andreas Stieger + +- aa-decode: use grep -E instead of deprecated egrep (boo#1203092) + add apparmor-3.0.7-egrep.patch + +------------------------------------------------------------------- +Sun Aug 28 10:41:29 UTC 2022 - Christian Boltz + +- update to AppArmor 3.0.7 + - fix setuptools version detection in buildpath.py + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.7 + for the detailed upstream changelog +- add dnsmasq-cpu-possible.diff: allow reading /sys/devices/system/cpu/possible + in dnsmasc//libvirt-leaseshelper profile (boo#1202849) + +------------------------------------------------------------------- +Fri Aug 26 11:37:21 UTC 2022 - David Disseldorp + +- add profiles-permit-php-fpm-pid-files-directly-under-run.patch + https://gitlab.com/apparmor/apparmor/-/merge_requests/914 (bsc#1202344) + +------------------------------------------------------------------- +Fri Aug 19 17:05:37 UTC 2022 - Ben Greiner + +- skip code linting for packaging + * removes pyflakes from the build requirements and thus Ring1 + * see also https://gitlab.com/apparmor/apparmor/-/issues/121 + +------------------------------------------------------------------- +Mon Aug 8 18:51:26 UTC 2022 - Christian Boltz + +- add dnsmasq.diff: missing r permissions for dnsmasq//libvirt-leaseshelper + (boo#1202161) + +------------------------------------------------------------------- +Mon Aug 1 18:42:57 UTC 2022 - Christian Boltz + +- update to AppArmor 3.0.6 + - fix LTO build in the parser + - remove dbus deny rule in abstractions/exo-open + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.6 + for the detailed upstream changelog +- drop upstream patch dirtest-sort-mr900.diff + +------------------------------------------------------------------- +Mon Jul 25 18:18:04 UTC 2022 - Christian Boltz + +- update to AppArmor 3.0.5 + - several additions to profiles and abstractions + - bugfixes in parser and utils + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.5 + for the detailed upstream changelog +- remove upstream(ed) patchs: + - apparmor-setuptools61-mr897.patch + - dovecot-profiles-boo1199535-mr881.diff + - php8-fpm-mr876.patch + - python310-help-mr848.patch + - samba-new-dcerpcd.patch + - samba_deny_net_admin.patch + - update-samba-bgqd.diff + - update-usr-sbin-smbd.diff +- apparmor-samba-include-permissions-for-shares.diff: remove + upstreamed part +- add dirtest-sort-mr900.diff to fix random test failures +- change apache-extra-profile-include-if-exists.diff to the post-mv + path (new quilt executes mv) +- stop disabling lto (fixed upstream) (boo#1133091) +- package profile-load script in -parser + +------------------------------------------------------------------- +Fri Jul 15 23:01:42 UTC 2022 - Ben Greiner + +- Add apparmor-setuptools61-mr897.patch + https://gitlab.com/apparmor/apparmor/-/merge_requests/897 +- Add buildtime dependencies on python-rpm-macros and setuptools + +------------------------------------------------------------------- +Tue Jun 28 21:34:26 UTC 2022 - Christian Boltz + +- update zgrep-profile-mr870.diff: allow zgrep to execute egrep and fgrep + (poo#113108) + +------------------------------------------------------------------- +Sun May 15 18:59:47 UTC 2022 - Christian Boltz + +- add dovecot-profiles-boo1199535-mr881.diff: update dovecot profiles + for latest dovecot (boo#1199535) + +------------------------------------------------------------------- +Wed May 11 14:41:17 UTC 2022 - Noel Power + +- Update samba-new-dcerpcd.patch for aarch64 which needs some + additional rules; (bnc#1198309). + +------------------------------------------------------------------- +Sun May 8 13:25:28 UTC 2022 - Ben Greiner + +- Add python310-help-mr848.patch so that Tumbleweed can switch + python3 to Python 3.10 + (https://gitlab.com/apparmor/apparmor/-/merge_requests/848) + +------------------------------------------------------------------- +Fri Apr 29 11:48:14 UTC 2022 - Christian Boltz + +- add php8-fpm-mr876.patch so that php8 php-fpm can read its config + (boo#1186267#c11) +- parser: add conflict with apparmor-utils < 3.0 to avoid aa-status + file conflict on upgrade (boo#1198958) +- utils: add missing dependency on apparmor-parser (boo#1198958#c4) + +------------------------------------------------------------------- +Wed Apr 27 10:07:47 UTC 2022 - Dominique Leuenberger + +- Enhance zgrep-profile-mr870.diff to also allow/support zstd + (boo#1198922). + +------------------------------------------------------------------- +Sat Apr 16 20:33:13 UTC 2022 - Christian Boltz + +- update zgrep-profile-mr870.diff to allow executing 'expr' (boo#1198531) + +------------------------------------------------------------------- +Wed Apr 13 13:38:29 UTC 2022 - Noel Power + +- Add samba-new-dcerpcd.patch, samba-4.16 has a new dcerpcd daemon + which now will spawn new additional services on demand. We need to + modify the existing smbd/winbind profiles and additionally add a + new set of profiles to cater for the new functionality; + (bnc#1198309); + +------------------------------------------------------------------- +Mon Apr 11 14:34:51 UTC 2022 - Noel Power + +- Add samba_deny_net_admin.patch to add new rule to deny + noisy setsockopt calls from systemd; (bnc#1196850). + +------------------------------------------------------------------- +Sun Apr 10 13:08:56 UTC 2022 - Christian Boltz + +- add profile for zgrep and xzgrep to prevent CVE-2022-1271 + (zgrep-profile-mr870.diff) + +------------------------------------------------------------------- +Tue Mar 29 20:04:22 UTC 2022 - Christian Boltz + +- ensure precompiled cache files are newer than (text) profiles +- reload profiles in %posttrans instead of %post to ensure both + -profiles and -abstractons package are updated before the cache + in /var/cache/apparmor/ gets built (boo#1195463 #c20) + +------------------------------------------------------------------- +Thu Mar 24 14:09:58 UTC 2022 - Noel Power + +- Add update-samba-bgqd.diff to add new rule to fix 'DENIED' open on + /proc/{pid}/fd for samba-bgqd (bnc#1196850). +- Add update-usr-sbin-smbd.diff to add new rule to allow reading of + openssl.cnf (bnc#1195463). + +------------------------------------------------------------------- +Thu Feb 10 16:55:38 UTC 2022 - Christian Boltz + +- update to AppArmor 3.0.4 + - various fixes in profiles, abstractions, apparmor_parser and utils + (some of them were already included as patches) + - add support for mctp address family + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.4 + for the full upstream changelog +- remove upstream(ed) patches: + - aa-notify-more-arch-mr809.diff + - ruby-3.1-build-fix.diff + - add-samba-bgqd.diff + - openssl-engdef-mr818.diff + - profiles-python-3.10-mr783.diff + - update-samba-abstractions-ldb2.diff +- refresh patches: + - apparmor-samba-include-permissions-for-shares.diff + - ruby-2_0-mkmf-destdir.patch + +------------------------------------------------------------------- +Wed Jan 26 17:14:58 UTC 2022 - Christian Boltz + +- add ruby-3.1-build-fix.diff: fix build with ruby 3.1 (boo#1194221, + MR 827) + +------------------------------------------------------------------- +Mon Jan 17 10:27:38 UTC 2022 - Samuel Cabrero + +- add update-samba-abstractions-ldb2.diff: Cater for changes to ldb + packaging to allow parallel installation with libldb (bsc#1192684). + +------------------------------------------------------------------- +Mon Dec 20 11:01:50 UTC 2021 - Noel Power + +- Modify add-samba-bgqd.diff: Add new rule to fix new "DENIED + operation="file_mmap" violation in SLE15-SP4; (bsc#1192336). + +------------------------------------------------------------------- +Sun Dec 19 21:42:54 UTC 2021 - Christian Boltz + +- add openssl-engdef-mr818.diff: Allow reading /etc/ssl/engdef.d/ and + /etc/ssl/engines.d/ in abstractions/openssl which were introduced + with the latest openssl update + +------------------------------------------------------------------- +Tue Nov 9 17:45:22 UTC 2021 - Christian Boltz + +- add aa-notify-more-arch-mr809.diff: Add support for reading s390x + and aarch64 wtmp files (boo#1181155) + +------------------------------------------------------------------- +Fri Oct 15 20:22:11 UTC 2021 - Christian Boltz + +- add add-samba-bgqd.diff: add profile for samba-bgqd (boo#1191532) + +------------------------------------------------------------------- +Sat Sep 18 13:16:35 UTC 2021 - Christian Boltz + +- lessopen.sh profile: allow reading files that live on NFS over UDP + (added to apparmor-lessopen-nfs-workaround.diff) (boo#1190552) + +------------------------------------------------------------------- +Wed Aug 11 19:44:15 UTC 2021 - Christian Boltz + +- add profiles-python-3.10-mr783.diff: update abstractions/python and + profiles for python 3.10 + +------------------------------------------------------------------- +Sat Aug 7 10:46:52 UTC 2021 - Christian Boltz + +- update to AppArmor 3.0.3 + - fix a failure in the parser tests + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.3 + for the detailed upstream changelog + +------------------------------------------------------------------- +Fri Aug 6 10:20:01 UTC 2021 - Christian Boltz + +- update to AppArmor 3.0.2 + - add missing permissions to several profiles and abstractions + (including boo#1188296) + - bugfixes in utils and parser (including boo#1180766 and boo#1184779) + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.2 + for the detailed upstream changelog +- remove upstreamed patches: + - apparmor-dovecot-stats-metrics.diff + - abstractions-php8.diff + - crypto-policies-mr720.diff + +------------------------------------------------------------------- +Thu Jul 15 23:02:25 UTC 2021 - Michael Ströder + +- added apparmor-dovecot-stats-metrics.diff to allow Prometheus metrics end-point + +------------------------------------------------------------------- +Mon Jun 7 19:30:20 UTC 2021 - Christian Boltz + +- move Requires: python3 back to the python3-apparmor subpackage - + readline usage is in the python modules, not in apparmor-utils + +------------------------------------------------------------------- +Tue May 25 07:35:15 UTC 2021 - Matej Cepl + +- Remove python symbols (python means currently python2), work + only with python3 ones (fallout from bsc#1185588). + +------------------------------------------------------------------- +Fri May 21 20:59:49 UTC 2021 - Christian Boltz + +- add abstractions-php8.diff to support PHP8 in abstractions/php (boo#1186267) + +------------------------------------------------------------------- +Tue Apr 27 16:48:25 UTC 2021 - Christian Boltz + +- add crypto-policies-mr720.diff to allow reading crypto policies + in abstractions/ssl_certs (boo#1183597) + +------------------------------------------------------------------- +Sat Mar 27 22:56:06 UTC 2021 - Christian Boltz + +- replace %{?systemd_requires} with %{?systemd_ordering} to avoid dragging in + systemd into containers just because apparmor-parser ships a *.service file + +------------------------------------------------------------------- +Thu Feb 11 18:18:46 UTC 2021 - Christian Boltz + +- merge libapparmor.changes into apparmor.changes + +------------------------------------------------------------------- +Mon Feb 8 17:19:19 UTC 2021 - Ludwig Nussel + +- avoid file listed twice error + +------------------------------------------------------------------- +Tue Feb 2 18:35:17 UTC 2021 - Christian Boltz + +- define %_pamdir for <= 15.x to fix the build on those releases + +------------------------------------------------------------------- +Fri Jan 22 11:23:59 UTC 2021 - Christian Boltz + +- add apache-extra-profile-include-if-exists.diff: make + include in apache extra profile optional to avoid problems with empty + profile directory (boo#1178527) + +------------------------------------------------------------------- +Wed Jan 13 10:45:18 UTC 2021 - Ludwig Nussel + +- prepare usrmerge (boo#1029961) + * use %_pamdir + +------------------------------------------------------------------- +Wed Dec 2 19:29:34 UTC 2020 - Christian Boltz + +- update to AppArmor 3.0.1 + - minor additions to profiles and abstractions + - some bugfixes in libapparmor, apparmor_parser and the aa-* utils + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0.1 + for the detailed upstream changelog +- removed upstream(ed) patches: + - changes-since-3.0.0.diff + - extra-profiles-fix-Pux.diff + - utils-fix-hotkey-conflict.diff + +------------------------------------------------------------------- +Wed Dec 2 14:31:18 UTC 2020 - Dominique Leuenberger + +- Use apache provided variables for the module_directry: + + Use %apache_libexecdir + + Add apache-rpm-macros BuildRequires + +------------------------------------------------------------------- +Sat Oct 31 19:05:14 UTC 2020 - Christian Boltz + +- add utils-fix-hotkey-conflict.diff to fix a hotkey conflict in + de, id and sv translations (and fix the test) (MR 675) +- add extra-profiles-fix-Pux.diff to fix an inactive profile - + prevents a crash in aa-logprof and aa-genprof when creating a new + profile (MR 676) + +------------------------------------------------------------------- +Sun Oct 25 11:32:16 UTC 2020 - Christian Boltz + +- update to AppArmor 3.0.0 + - introduce feature abi declaration in profiles to enable use of + new rule types (for openSUSE: dbus and unix rules) + - support xattr attachment conditionals + - experimental support for kill and unconfined profile modes + - rewritten aa-status (in C), including support for new profile modes + - rewritten aa-notify (in python), finally dropping the perl + requirement at runtime + - new tool aa-features-abi for extracting feature abis from the kernel + - update profiles to have profile names and to use 3.0 feature abi + - introduce @{etc_ro} and @{etc_rw} profile variables + - new profile for php-fpm + - several updates to profiles and abstractions (including boo#1166007) + - fully support 'include if exists' in the aa-* tools + - rewrite handling of alias, include, link and variable rules in + the aa-* tools + - rewrite and simplify log handling in the aa-logprof and aa-genprof + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_3.0 + for the detailed upstream changelog +- patches: + - add changes-since-3.0.0.diff with upstream fixes since the 3.0.0 + release up to 3e18c0785abc03ee42a022a67a27a085516a7921 + - drop upstreamed usr-etc-abstractions-base-nameservice.diff + - drop 2.13-only libapparmor-so-number.diff + - refresh apparmor-enable-profile-cache.diff - partially upstreamed + - update apparmor-samba-include-permissions-for-shares.diff and + apparmor-lessopen-profile.patch - switch to "include if exists" + - apparmor-lessopen-profile.patch: add abi rule to lessopen profile + - refresh apparmor-lessopen-nfs-workaround.diff +- move away very loose apache profile that doesn't even match the + apache2 binary path in openSUSE to avoid confusion (boo#872984) +- move rewritten aa-status from utils to parser subpackage +- add aa-features-abi to parser subpackage +- replace perl and libnotify-tools requires with requiring + python3-notify2 and python3-psutil (needed by the rewritten + aa-notify) +- drop ancient cleanup for /etc/init.d/subdomain from parser %pre +- drop (never enabled) conditionals to build with python2 and to + build the python-apparmor subpackage (upstream dropped python2 + support) +- drop setting PYTHON and PYTHON_VERSIONS env variable, no longer needed +- set PYFLAKES path for utils check +- add precompiled_cache build conditional to allow faster local + builds without using kvm +- remove duplicated BuildRequires: swig + +------------------------------------------------------------------- +Sat Oct 17 15:46:01 UTC 2020 - Christian Boltz + +- update to AppArmor 2.13.5 + - add missing permissions to several profiles and abstractions + - bugfixes in parser and tools + - fix two potential build failures in libapparmor + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_2.13.5 + for the detailed upstream changelog +- remove upstream(ed) patches + - changes-since-2.13.4.diff + - abstractions-X-xauth-mr582.diff + - sevdb-caps-mr589.diff + - libvirt-leaseshelper.patch + - cap_checkpoint_restore.diff +- add libapparmor-so-number.diff to fix libapparmor so version (!658) + +------------------------------------------------------------------- +Wed Oct 14 12:16:52 UTC 2020 - Christian Boltz + +- add CAP_CHECKPOINT_RESTORE to severity.db (MR 656, + cap_checkpoint_restore.diff) + +------------------------------------------------------------------- +Thu Oct 8 20:56:45 UTC 2020 - Christian Boltz + +- %service_del_postun_without_restart only works for Tumbleweed, + keep using DISABLE_RESTART_ON_UPDATE for Leap 15.x + +------------------------------------------------------------------- +Fri Sep 11 15:32:37 UTC 2020 - Franck Bui + +- Make use of %service_del_postun_without_restart + + And stop using DISABLE_RESTART_ON_UPDATE as this interface is + obsolete. + +------------------------------------------------------------------- +Thu Sep 3 19:40:32 UTC 2020 - James Fehlig + +- libvirt-leaseshelper.patch: add /usr/libexec as a path to the + libvirt leaseshelper script (jsc#SLE-14253) + +------------------------------------------------------------------- +Fri Aug 7 21:01:02 UTC 2020 - Christian Boltz + +- sevdb-caps-mr589.diff: add new capabilities CAP_BPF and CAP_PERFMON + to severity.db (lp#1890547) + +------------------------------------------------------------------- +Mon Jul 20 18:42:02 UTC 2020 - Christian Boltz + +- add abstractions-X-xauth-mr582.diff to allow reading the xauth file + from its new sddm location (boo#1174290, boo#1174293) + +------------------------------------------------------------------- +Thu May 21 12:17:15 UTC 2020 - Christian Boltz + +- add changes-since-2.13.4.diff with upstream changes and fixes + since 2.13.4 up to 5f61bd4c: + - add several abstractions related to xdg-open: + dbus-network-manager-strict, exo-open, gio-open, gvfs-open, + kde-open5, xdg-open + - introduce @{run} variable + - update dnsmasq and winbindd profile + - update mdns, mesa and nameservice abstraction + - some bugfixes in the aa-* tools, including a remote bugfix in the + YaST AppArmor module (boo#1171315) +- drop upstream(ed) patches (now part of changes-since-2.13.4.diff): + - make-4.3-capabilities.diff + - make-4.3-capabilities-vim.diff + - make-4.3-fix-utils-network-test.diff + - make-4.3-network.diff + - abstractions-add-etc-mdns.allow-to-etc-apparmor.d-abstractions-mdns.patch +- apply usr-etc-abstractions-base-nameservice.diff only for + Tumbleweed, but not for Leap 15.x where it's not needed +- refresh usr-etc-abstractions-base-nameservice.diff + +------------------------------------------------------------------- +Thu Apr 9 18:56:09 UTC 2020 - Goldwyn Rodrigues + +- Add abstractions-add-etc-mdns.allow-to-etc-apparmor.d-abstractions-mdns.patch + (bsc#1168306) + +------------------------------------------------------------------- +Sat Mar 28 21:46:48 UTC 2020 - Christian Boltz + +- fix build with make 4.3 by backporting some commits from upstream + master (boo#1167953): + - make-4.3-capabilities.diff + - make-4.3-capabilities-vim.diff + - make-4.3-network.diff + - make-4.3-fix-utils-network-test.diff + +------------------------------------------------------------------- +Thu Mar 12 19:55:06 UTC 2020 - Christian Boltz + +- update to AppArmor 2.13.4 + - several abstraction updates (including boo#1153162) + - disallow writing to fontconfig cache in abstractions/fonts + - some bugfixes in the aa-* tools + - fix log parsing for logs with an embedded newline + - see https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_2.13.4 + for the detailed upstream changelog +- drop upstreamed patches: + - abstractions-ssl-certbot-paths.diff + - apparmor-krb5-conf-d.diff + - libapparmor-python3.8.diff + - usr-etc-abstractions-authentification.diff +- refresh usr-etc-abstractions-base-nameservice.diff + +------------------------------------------------------------------- +Sat Jan 25 18:51:17 UTC 2020 - Christian Boltz + +- add usr-etc-abstractions-base-nameservice.diff to adjust + abstractions/base and nameservice for /usr/etc/ (boo#1161756) + +------------------------------------------------------------------- +Mon Nov 18 10:39:28 UTC 2019 - Tomáš Chvátal + +- Properly pull in full python3 interpreter + +------------------------------------------------------------------- +Sat Nov 2 23:01:05 UTC 2019 - Christian Boltz + +- add libapparmor-python3.8.diff to fix building the libapparmor python + bindings (deb#943657) + +------------------------------------------------------------------- +Mon Oct 7 19:58:19 UTC 2019 - Christian Boltz + +- add usr-etc-abstractions-authentification.diff to allow reading + /usr/etc/pam.d/* and some other authentification-related files (boo#1153162) + +------------------------------------------------------------------- +Sat Sep 28 15:20:10 UTC 2019 - Christian Boltz + +- add abstractions-ssl-certbot-paths.diff - add certbot paths to + abstractions/ssl_certs and abstractions/ssl_keys + +------------------------------------------------------------------- +Fri Sep 27 21:43:55 UTC 2019 - Luiz Angelo Daros de Luca + +- add apparmor-krb5-conf-d.diff for kerberos client + +------------------------------------------------------------------- +Tue Jun 18 20:51:07 UTC 2019 - Christian Boltz + +- update to 2.13.3 + - profile updates for dnsmasq, dovecot, identd, syslog-ng + - new "lsb_release" profile (only used when using "Px -> lsb_release") + - fix buggy syntax in tunables/share + - several abstraction updates + - parser: fix "Px -> foo-bar" (the "-" was rejected before) + - several bugfixes in aa-genprof and aa-logprof + - some fixes in cache handling + - see https://gitlab.com/apparmor/apparmor/wikis/Release_Notes_2.13.3 + for the detailed upstream changelog +- drop upstream(ed) patches: + - apparmor-nameservice-resolv-conf-link.patch + - profile_filename_cornercase.diff + - dnsmasq-libvirtd.diff + - dnsmasq-revert-alternation.diff + - usrmerge-fixes.diff + - libapparmor-swig-4.diff +- re-number remaining patches + +------------------------------------------------------------------- +Wed Jun 5 11:36:25 UTC 2019 - Christian Boltz + +- add upstream libapparmor-swig-4.diff: fix libapparmor tests with swig + 4.0 (boo#1135751) + +------------------------------------------------------------------- +Tue Apr 23 11:34:08 UTC 2019 - Martin Liška + +- Disable LTO (boo#1133091). + +------------------------------------------------------------------- +Sun Apr 14 13:59:55 UTC 2019 - Christian Boltz + +- update lessopen.sh profile for usrMerge (bash and tar) (boo#1132350) + +------------------------------------------------------------------- +Thu Mar 7 12:34:20 UTC 2019 - Christian Boltz + +- add usrmerge-fixes.diff: fix test failures when /bin/sh is handled by + update-alternatives (boo#1127877) + +------------------------------------------------------------------- +Wed Feb 27 19:28:14 UTC 2019 - Christian Boltz + +- add dnsmasq-revert-alternation.diff: revert path alternation in + dnsmasq profile and re-add peer=/usr/sbin/libvirtd rules to avoid + breaking libvirtd (boo#1127073) + +------------------------------------------------------------------- +Thu Jan 24 21:13:43 UTC 2019 - Christian Boltz + +- add dnsmasq-libvirtd.diff: allow peer=libvirtd in the dnsmasq profile + to match the newly added libvirtd profile name (boo#1118952#c3) + +------------------------------------------------------------------- +Mon Jan 14 14:41:14 CET 2019 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Sun Jan 6 19:10:58 UTC 2019 - Christian Boltz + +- add apparmor-lessopen-nfs-workaround.diff: allow network access in + lessopen.sh for reading files on NFS (workaround for boo#1119937 / + lp#1784499) + +------------------------------------------------------------------- +Wed Jan 2 19:11:16 UTC 2019 - Christian Boltz + +- add profile_filename_cornercase.diff: drop check that lets aa-logprof + error out in a corner-case (log event for a non-existing profile while + a profile file with the default filename for that non-existing profile + exists) (boo#1120472) + +------------------------------------------------------------------- +Fri Dec 21 13:41:32 UTC 2018 - mt@suse.de + +- netconfig: write resolv.conf to /run with link to /etc (fate#325872, + boo#1097370) [patch apparmor-nameservice-resolv-conf-link.patch] + +------------------------------------------------------------------- +Fri Dec 21 12:59:00 UTC 2018 - Christian Boltz + +- update to AppArmor 2.13.2 + - add profile names to most profiles + - update dnsmasq profile (pid file and logfile path) (boo#1111342) + - add vulkan abstraction + - add letsencrypt certificate path to abstractions/ssl_* + - ignore *.orig and *.rej files when loading profiles + - fix aa-complain etc. to handle named profiles + - several bugfixes and small profile improvements + - see https://gitlab.com/apparmor/apparmor/wikis/Release_Notes_2.13.2 + for the detailed upstream changelog +- remove upstreamed fix-syntax-error-in-rc.apparmor.functions.patch + +------------------------------------------------------------------- +Sun Oct 14 11:02:58 UTC 2018 - Christian Boltz + +- update to 2.13.1 + - add qt5 and qt5-compose-cache-write abstractions + - add @{uid} and @{uids} kernel var placeholders + - several profile and abstraction updates + - ignore "abi" rules in parser and tools (instead of erroring out) + - utils: fix overwriting of child profile flags if they differ from + the main profile + - several bugfixes (including boo#1100779) + - see https://gitlab.com/apparmor/apparmor/wikis/Release_Notes_2.13.1 + for the detailed upstream changelog +- remove upstream(ed) patches: + - aa-teardown-path.diff + - fix-apparmor-systemd-perms.diff + - logprof-skip-cache-d.diff + - fix-samba-profiles.patch + - make-pyflakes-happy.diff + - dnsmasq-Add-permission-to-open-log-files.patch +- refresh apparmor-samba-include-permissions-for-shares.diff +- add fix-syntax-error-in-rc.apparmor.functions.patch + +------------------------------------------------------------------- +Wed Oct 10 18:01:16 UTC 2018 - Christian Boltz + +- update rpmlintrc: + - whitelist .features file which is part of the pre-compiled cache + - comment out filters for the disabled tomcat_apparmor subpackage + +------------------------------------------------------------------- +Wed Oct 10 09:49:17 UTC 2018 - Petr Vorel + +- Backport dnsmasq fix: + 025c7dc6 - dnsmasq-Add-permission-to-open-log-files.patch + (boo#1111342) + +------------------------------------------------------------------- +Wed Aug 22 11:32:59 UTC 2018 - suse-beta@cboltz.de + +- add make-pyflakes-happy.diff to fix an unused variable (SR 629206) + +------------------------------------------------------------------- +Tue May 8 15:37:32 UTC 2018 - scabrero@suse.de + +- add fix-samba-profiles.patch - smbd loads new shared libraries. + Allow winbindd to access new kerberos credential cache location + (boo#1092099) + +------------------------------------------------------------------- +Sun Apr 29 22:24:33 UTC 2018 - suse-beta@cboltz.de + +- exclude the /etc/apparmor.d/cache.d/ directory from aa-logprof parsing + (logprof-skip-cache-d.diff) + +------------------------------------------------------------------- +Mon Apr 23 15:27:55 UTC 2018 - suse-beta@cboltz.de + +- add fix-apparmor-systemd-perms.diff - fix permissions of + /lib/apparmor/apparmor.systemd (boo#1090545) + +------------------------------------------------------------------- +Thu Apr 19 22:13:40 UTC 2018 - suse-beta@cboltz.de + +- create and package precompiled cache (/usr/share/apparmor/cache, + read-only) (boo#1069906, boo#1074429) +- change (writeable) cache directory to /var/cache/apparmor/ - with the + new btrfs layout, the only reason for using /var/lib/apparmor/cache/ + (which was "it's part of the / subvolume") is gone, and /var/cache + makes more sense for the cache +- adjust parser.conf (via apparmor-enable-profile-cache.diff) to use both + cache locations +- clear cache also in %post of abstractions package + +-------------------------------------------------------------------- +Thu Apr 19 19:14:54 UTC 2018 - suse-beta@cboltz.de + +- update to AppArmor 2.13 + - add support for multiple cache directories and cache overlays + (boo#1069906, boo#1074429) + - add support for conditional includes in policy + - remove group restrictions from aa-notify (boo#1058787) + - aa-complain etc.: set flags for profiles represented by a glob + - aa-status: split profile from exec name + - several profile and abstraction updates + - see https://gitlab.com/apparmor/apparmor/wikis/Release_Notes_2.13 + for the detailed upstream changelog +- drop upstreamed patches and files: + - aa-teardown + - apparmor.service + - apparmor.systemd + - 32-bit-no-uid.diff + - disable-cache-on-ro-fs.diff + - dovecot-stats.diff + - parser-write-cache-warn-only.diff + - set-flags-for-profiles-represented-by-glob.patch + - fix-regression-in-set-flags.patch +- drop spec code that handled installing aa-teardown, apparmor.service + and apparmor.systemd (now part of upstream Makefile) +- simplify "make -C profiles parser-check" call (upstream Makefile bug + that required to call "cd" was fixed) +- add aa-teardown-path.diff - install aa-teardown in /usr/sbin/ +- move 'exec' symlink to parser package (belongs to aa-exec) + +-------------------------------------------------------------------- +Thu Apr 19 11:23:37 UTC 2018 - rgoldwyn@suse.com + +- Set flags for profiles represented by glob (bsc#1086154) + set-flags-for-profiles-represented-by-glob.patch + fix-regression-in-set-flags.patch + +------------------------------------------------------------------- +Wed Apr 11 20:28:13 UTC 2018 - suse-beta@cboltz.de + +- add dovecot-stats.diff: + - add dovecot/stats profile and allow dovecot to run it (boo#1088161) + - allow dovecot/auth to write /run/dovecot/old-stats-user (part of boo#1087753) +- update 32-bit-no-uid.diff with upstream fix + +------------------------------------------------------------------- +Fri Mar 2 12:29:06 UTC 2018 - rgoldwyn@suse.com + +- Change of path of rpm in lessopen.sh (boo#1082956) + +------------------------------------------------------------------- +Thu Jan 11 18:14:47 CET 2018 - kukuk@suse.de + +- add disable-cache-on-ro-fs.diff - disable write cache if filesystem is + read-only and don't bail out (bsc#1069906, bsc#1074429) + +------------------------------------------------------------------- +Thu Jan 4 13:20:20 UTC 2018 - suse-beta@cboltz.de + +- add parser-write-cache-warn-only.diff to make cache write failures a + warning instead of an error (boo#1069906, boo#1074429) +- reduce dependeny on libnotify-tools (used by aa-notify -p) to "Suggests" + to avoid pulling in several Gnome packages on servers (boo#1067477) + +------------------------------------------------------------------- +Mon Dec 25 15:27:03 UTC 2017 - suse-beta@cboltz.de + +- update to AppArmor 2.12 + - add support for 'owner' rules in aa-logprof and aa-genprof + - add support for includes with absolute path in aa-logprof etc. (lp#1733700) + - update aa-decode to also decode PROCTITLE (lp#1736841) + - several profile and abstraction updates, including boo#1069470 + - preserve errno across aa_*_unref() functions + - see https://gitlab.com/apparmor/apparmor/wikis/Release_Notes_2.12 + for the detailed upstream changelog +- drop upstreamed patches: + - read_inactive_profile-exactly-once.patch + - utils-fix-sorted-save_profiles-regression.diff +- lessopen profile: change all 'rix' rules to 'mrix' +- add 32-bit-no-uid.diff to fix handling of log events without ouid on + 32 bit systems +- no longer package static libapparmor.a + +------------------------------------------------------------------- +Tue Nov 30 10:30:33 UTC 2017 - suse-beta@cboltz.de + +- update to AppArmor 2.11.95 aka 2.12 beta1 + - add JSON interface to aa-logprof and aa-genprof (used by YaST) + - drop old YaST interface code + - update audio, base and nameservice abstractions + - allow @{pid} to match 7-digit pids + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_11_95 + for the detailed upstream changelog +- drop upstreamed patches + - apparmor-yast-cleanup.patch + - apparmor-json-support.patch + - nameservice-libtirpc.diff +- drop obsolete perl modules (YaST no longer needs them) +- drop patches that were only needed by the obsolete perl modules: + - apparmor-utils-string-split + - apparmor-abstractions-no-multiline.diff +- drop profiles-sockets-temporary-fix.patch - obsoleted by a fix in + apparmor_parser +- refresh utils-fix-sorted-save_profiles-regression.diff +- add aa-teardown (new script to unload all profiles) +- make ExecStop in apparmor.service a no-op (workaround for a systemd + restriction, see boo#996520 and boo#853019 for details) +- lessopen profile: allow capability dac_read_search and dac_override, + allow groff to execute several helpers (boo#1065388) + +------------------------------------------------------------------- +Wed Nov 29 15:26:48 UTC 2017 - rgoldwyn@suse.com + +- read_inactive_profile-exactly-once.patch (bsc#1069346) + Perform reading of inactive profiles exactly once. + +------------------------------------------------------------------- +Wed Oct 25 19:36:55 UTC 2017 - suse-beta@cboltz.de + +- update to AppArmor 2.11.1 + - add permissions to several profiles and abstractions (including + lp#1650827 and boo#1057900) + - several fixes in the aa-* tools (including lp#1689667, lp#1628286, + lp#1661766 and boo#1062667) + - fix downgrading/converting of 'unix' rules (will be supported in + kernel 4.15) to 'network unix' rules in apparmor_parser (boo#1061195) + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_11_1 for + upstream changelog +- remove upstream(ed) patches + - upstream-changes-r3616..3628.diff + - upstream-changes-r3629..3648.diff + - parser-tests-dbus-duplicated-conditionals.diff + - apparmor-fix-podsyntax.patch + - sshd-profile-drop-local-include-r3615.diff +- refresh apparmor-yast-cleanup.patch +- add utils-fix-sorted-save_profiles-regression.diff to fix a regression + in displaying the "changed profiles" list in aa-logprof + +------------------------------------------------------------------- +Tue Oct 17 21:42:38 UTC 2017 - suse-beta@cboltz.de + +- add nameservice-libtirpc.diff to fix NIS/YP logins (boo#1062244) + +------------------------------------------------------------------- +Tue Oct 3 16:28:52 UTC 2017 - rgoldwyn@suse.com + +- profiles-sockets-temporary-fix.patch to cater to nameservices with the + new sockets mediation, until unix rules are upstreamed (boo#1061195) + +------------------------------------------------------------------- +Sun Sep 24 09:14:02 UTC 2017 - coolo@suse.com + +- add apparmor-fix-podsyntax.patch from mailing list to fix + compilation with perl 5.26 + +------------------------------------------------------------------- +Fri Aug 11 14:20:17 UTC 2017 - jmatejek@suse.com + +- do not require exact X.Y version of "python3" +- require also matching python(abi) which is arguably more important + +------------------------------------------------------------------- +Fri Jul 14 18:51:26 UTC 2017 - suse-beta@cboltz.de + +- don't rely on implementation details for reload in %post + +------------------------------------------------------------------- +Wed Jul 12 13:33:20 UTC 2017 - rgoldwyn@suse.com + +- add JSON support. Required for FATE#323380. + (apparmor-yast-cleanup.patch, apparmor-json-support.patch) + +------------------------------------------------------------------- +Sat Mar 25 21:42:10 UTC 2017 - suse-beta@cboltz.de + +- add upstream-changes-r3629..3648.diff: + - preserve unknown profiles when reloading apparmor.service + (CVE-2017-6507, lp#1668892, boo#1029696) + - add aa-remove-unknown utility to unload unknown profiles (lp#1668892) + - update nvidia abstraction for newer nvidia drivers + - don't enforce ordering of dbus rule attributes in utils (lp#1628286) + - add --parser, --base and --Include option to aa-easyprof to allow + non-standard paths (useful for tests) (lp#1521031) + - move initialization code in apparmor.aa to init_aa(). This allows to + run all utils tests even if /etc/apparmor.d/ or /sbin/apparmor_parser + don't exist. + - several improvements in the utils tests +- drop upstreamed python3-drop-re-locale.patch +- no longer delete/skip some of the utils tests (to allow this, add + parser-tests-dbus-duplicated-conditionals.diff) +- add var.mount dependeny to apparmor.service (boo#1016259#c34) + +------------------------------------------------------------------- +Thu Mar 16 20:13:00 UTC 2017 - kukuk@suse.com + +- Cleanup spec file: + - don't use insserv if we afterwards call systemd, this can + have bad side effects + - remove dead code + - remove now obsolete 'distro' checks +- Replace init.d script with new wrapper working with systemd + +------------------------------------------------------------------- +Thu Feb 16 14:08:55 UTC 2017 - jmatejek@suse.com + +- add python3-drop-re-locale.patch: remove deprecated re.LOCALE + flag in Python UI as it was dropped from Python 3.6 (lp#1661766) + +------------------------------------------------------------------- +Sat Feb 11 11:33:16 UTC 2017 - jengelh@inai.de + +- Fix RPM groups + +------------------------------------------------------------------- +Mon Jan 30 21:37:48 UTC 2017 - suse-beta@cboltz.de + +- add upstream-changes-r3616..3628.diff: + - update abstractions/base, abstractions/apache2-common and dovecot profiles + - merge ask_the_questions() of aa-logprof and aa-mergeprof + - pass LDFLAGS when building parser, libapparmor perl bindings and pam_apparmor +- adjust deleting the cache in profiles %post to the new cache location +- silence errors when deleting the cache (boo#976914) + +------------------------------------------------------------------- +Sat Jan 28 21:40:11 UTC 2017 - suse-beta@cboltz.de + +- split libapparmor into separate spec to get rid of build loop + involving mariadb, systemd, apparmor, libapr and mariadb again + (see the discussion in SR 448871 for details) +- libapparmor.spec is based on the AppArmor 2.11 apparmor.spec, but + with minimum BuildRequires + +------------------------------------------------------------------- +Fri Jan 27 20:08:03 UTC 2017 - suse-beta@cboltz.de + +- update to AppArmor 2.11.0 + - apparmor_parser now supports parallel compiles and loads + - add full support for dbus, ptrace and signal rules and events to the + utils + - full rewrite of the file rule handling in the utils + - lots of improvements and fixes + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_11 for the + detailed changelog +- patches: + - add sshd-profile-drop-local-include-r3615.diff to fix 'make check' + - drop aa-unconfined-fix-netstat-call-2.10r3380.diff, no longer needed + - refresh apparmor-abstractions-no-multiline.diff + - refresh apparmor-samba-include-permissions-for-shares.diff +- spec changes: + - aa-unconfined switched to using ss (from iproute2), adjust Recommends: + - move libapparmor to /usr/lib*/ + - drop %if %suse_version checks for 12.x + - change several Obsoletes from %version to < 2.9. Those package names + weren't used since years, and 2.9 is still a careful choice + - include apparmor.service independent of %suse_version + - techdoc.pdf is now shipped in upstream tarball to reduce BuildRequires + - drop latex2html, texlive-* and w3m BuildRequires + - techdoc.txt and techdoc.html not included, drop them from the package + - run most of utils/ make check (some tests expect /etc/apparmor.d/ and + /sbin/apparmor_parser to exist, skip them) + - BuildRequires python3-pyflakes (utils tests) and dejagnu (libapparmor tests) + - drop sed'ing python3 into aa-* shebang (upstreamed) + - build binutils + - aa-exec is now written in C and lives in /usr/bin/, move it to the + apparmor_parser package and create a compability symlink in /usr/sbin/ + - aa-exec manpage moved to section 1 + - aa-enabled is a small new tool to find out if AppArmor is enabled + - package new aa_stack_profile(2) manpage + +------------------------------------------------------------------- +Tue Jan 24 13:40:30 UTC 2017 - suse-beta@cboltz.de + +- change /etc/apparmor.d/cache symlink to /var/lib/apparmor/cache/. + This is part of the root partition (at least with default partitioning) + and should be available earlier than /var/cache/apparmor/ + (boo#1015249, boo#980081, bsc#1016259) +- add dependency on var-lib.mount to apparmor.service as safety net + +------------------------------------------------------------------- +Tue Jan 10 22:15:56 UTC 2017 - suse-beta@cboltz.de + +- update to AppArmor 2.10.2 maintenance release + - lots of bugfixes and profile updates (including boo#1000201, + boo#1009964, boo#1014463) + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_10_2 for details +- add aa-unconfined-fix-netstat-call-2.10r3380.diff to fix a regression + in aa-unconfined +- drop upstream(ed) patches: + - changes-since-2.10.1--r3326..3346.diff + - changes-since-2.10.1--r3347..3353.diff + - libapparmor-fix-import-path.diff (upstream fix is slightly different) + - nscd-var-lib.diff +- refresh apparmor-abstractions-no-multiline.diff + +------------------------------------------------------------------- +Sun Oct 23 13:18:43 UTC 2016 - suse-beta@cboltz.de + +- add nscd-var-lib.diff to allow /var/lib/nscd/ in the nscd profile and + abstractions/nameservice (path changed in latest nscd in Tumbleweed) + +------------------------------------------------------------------- +Thu Oct 13 18:35:52 UTC 2016 - suse-beta@cboltz.de + +- add changes-since-2.10.1--r3347..3353.diff with upstream changes and + fixes in the 2.10 branch, including + - allow writing *.qf files (for disk-based buffering) in syslog-ng profile + - add several permissions to the dovecot profiles (deb#835826) + - add a missing path in the traceroute profile + +------------------------------------------------------------------- +Fri Aug 26 20:21:37 UTC 2016 - suse-beta@cboltz.de + +- add changes-since-2.10.1--r3326..3346.diff with upstream changes and + fixes since the 2.10.1 release, including + - allow dac_override in winbindd profile (boo#990006#c5) + - allow mr for /usr/lib*/ldb/*.so in samba abstractions (needed since + Samba 4.4.x, boo#990006) + - abstractions/nameservice: also support ConnMan-managed resolv.conf + - let aa-genprof ask about profiles in extra dir (again) + - fix aa-logprof "add hat" endless loop (lp#1538306) + - honor 'chown' file events in logparser.py + - ignore log file events with a request mask of 'send' or 'receive' + because they are actually network events (lp#1577051, lp#1582374) + - accept hostname with dots when parsing logs (lp#1453300 comments #1 and #2) +- fix python LibAppArmor import failures with swig > 3.0.8 (boo#987607) + (libapparmor-fix-import-path.diff) +- refresh apparmor-abstractions-no-multiline.diff +- drop upstreamed profiles-ping-inet6-r3449.diff +- add %check section - runs libapparmor (including swig bindings), + parser and profiles tests +- add BuildRequires: perl(Locale::gettext) - needed for parser tests + +------------------------------------------------------------------- +Tue May 24 12:15:19 UTC 2016 - suse-beta@cboltz.de + +- add profiles-ping-inet6-r3449.diff - latest ping also does IPv6 (boo#980596) + +------------------------------------------------------------------- +Fri Apr 22 20:49:24 UTC 2016 - suse-beta@cboltz.de + +- update to AppArmor 2.10.1 (2.10 branch r3326): + - fix incorrect output of child profile names (apparmor_parser -N) which + caused 'rcapparmor reload' to remove child profiles and hats (lp#1551950) + - fix a crash in aa-logprof / logparser.py for change_hat log events + (lp#1523297) and log events that look like file events, but aren't + (lp#1540562, lp#1525119, lp#1466812) + - write unix rules when saving a profile (lp#1522938, boo#954104#c3) + - several fixes for variable handling in aa-logprof + - map c (create) log events to w instead of a + - add python to the "no Px rule" list in logprof.conf + - let aa-logprof check for duplicate profiles + - let aa-status work without the apparmor.fail python module (boo#971917, + lp#1480492) + - add permissions in several profiles (including boo#948584, boo#948753, + boo#954959, boo#954958, boo#971790, boo#964971, boo#921098, boo#923201 and + boo#921098#c15). + - and many more fixes, see the full changelog at + http://wiki.apparmor.net/index.php/ReleaseNotes_2_10_1 +- drop upstream(ed) patches: + - fix-initscript-aa_log_end_msg.diff + - syslog-ng-profile-boo948584.diff + - upstream-profile-updates-r3205-3241.diff +- refresh patches: + - apparmor-abstractions-no-multiline.diff + - apparmor-samba-include-permissions-for-shares.diff +- drop libapparmor autogen.sh call (broke the build) and remove libtool BR + +------------------------------------------------------------------- +Wed Oct 7 16:12:24 UTC 2015 - opensuse@cboltz.de + +- add syslog-ng-profile-boo948584.diff - add several permissions needed + by latest syslog-ng (boo#948584, boo#948753) +- add upstream-profile-updates-r3205-3241.diff with several profile updates: + - add /usr/share/locale-bundle/** to abstractions/base + - allow dnsmask to use /bin/sh (boo#940749) and /bin/dash + - allow dovecot imap to read /run/dovecot/mounts + - allow avahi-daemon to write to /run/systemd/notify + - allow ntpd to read $PATH directory listings (boo#945592, boo#948752) + - update dhclient profile + - allow skype to read @{PROC}/@{pid}/net/dev (boo#939568) + - and some other small updates +- drop upstreamed apparmor-winbindd-r3213.diff (included in the + upstream-profile-updates patch) + +------------------------------------------------------------------- +Sun Sep 13 20:16:57 UTC 2015 - opensuse@cboltz.de + +- netstat moved to net-tools-deprecated in Tumbleweed (boo#944904) + +------------------------------------------------------------------- +Thu Jul 30 20:08:20 UTC 2015 - opensuse@cboltz.de + +- add apparmor-winbindd-r3213.diff - add missing k permissions for + /etc/samba/smbd.tmp/msg/* in winbindd profile (boo#921098 #c15..19) + +------------------------------------------------------------------- +Thu Jul 23 22:16:35 UTC 2015 - opensuse@cboltz.de + +- add fix-initscript-aa_log_end_msg.diff - fixes ugly initscript + output (boo#862170) + +------------------------------------------------------------------- +Thu Jul 16 20:51:00 UTC 2015 - opensuse@cboltz.de + +- update to AppArmor 2.10 (trunk r3205) + - profile names can now contain variables + - improved profile compile time in apparmor_parser + - lots of improvements, refactoring and bugfixes in the aa-* tools + - new apis for managing and loading profile caches into the kernel in + libapparmor + - lots of profile updates + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_10 for the + complete changelog with more details +- add new apparmor_private.h and the aa_query_label(2), aa_features(3), + aa_kernel_interface(3), aa_policy_cache(3), aa_splitcon(3) manpages + to libapparmor-devel +- drop apparmor-2.5.1-edirectory-profile patch - it's most probably + no longer needed (see boo#621394 for details) +- drop upstreamed samba-4.2-profiles.diff +- refresh apparmor-samba-include-permissions-for-shares.diff + +------------------------------------------------------------------- +Mon Jun 15 22:13:21 UTC 2015 - opensuse@cboltz.de + +- systemd-rpm-macros and %systemd_requires were at the wrong place, + move them to the parser package (boo#931792) + +------------------------------------------------------------------- +Fri Apr 24 20:21:32 UTC 2015 - opensuse@cboltz.de + +- update to AppArmor 2.9.2 (2.9 branch r2911) + - lots of bugfixes in the parser and the aa-* tools (including + boo#918787) + - update dovecot and dnsmasq profiles and several abstractions + (including boo#911001) + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_9_2 for the + full changelog +- remove upstream(ed) patches apparmor-changes-since-2.9.1.diff and + apparmor-fix-stl-ostream.diff +- replace GPG key with new AppArmor GPG signing key, see + https://launchpad.net/apparmor/+announcement/13404 + +------------------------------------------------------------------- +Fri Apr 17 18:46:08 UTC 2015 - opensuse@cboltz.de + +- make sure %service_del_postun doesn't call systemctl try-restart + (boo#853019, bare systemd edition) +- add samba-4.2-profiles.diff: update samba (winbindd and nmb) + profiles for samba 4.2 (boo#921098, boo#923201) + +------------------------------------------------------------------- +Sun Apr 12 21:13:23 UTC 2015 - opensuse@cboltz.de + +- only install apparmor.service for openSUSE > 13.2 + +------------------------------------------------------------------- +Wed Apr 1 03:47:44 UTC 2015 - crrodriguez@opensuse.org + +- Add a native systemd unit which *at the moment* only + wraps/masks the early boot script. + +------------------------------------------------------------------- +Tue Feb 24 13:19:10 UTC 2015 - rguenther@suse.com + +- add apparmor-fix-stl-ostream.diff which fixes odd uses of + std::ostream which are not valid. Fixes build with GCC 5 + +------------------------------------------------------------------- +Fri Feb 20 18:15:18 UTC 2015 - opensuse@cboltz.de + +- allow lessopen.sh to run /usr/bin/unzip-plain (boo#906858) + +------------------------------------------------------------------- +Thu Feb 12 18:20:36 UTC 2015 - opensuse@cboltz.de + +- add Requires: python3 to python3-apparmor package - readline isn't + part of python3-base (boo#917577) + +------------------------------------------------------------------- +Tue Jan 20 20:33:55 UTC 2015 - opensuse@cboltz.de + +- add apparmor-changes-since-2.9.1.diff with upstream fixes since the + 2.9.1 release + - update logparser.py to support changed syslog format (lp#1399027) + - update usr.sbin.dovecot and usr.lib.dovecot.imap{, -login} profiles + (lp#1296667) + - update the mysqld profile + - fix network rule description in apparmor.d(5) manpage +- drop upstreamed dnsmasq-profile-fixes.patch +- update expired GPG key + +------------------------------------------------------------------- +Thu Jan 1 16:07:25 UTC 2015 - opensuse@cboltz.de + +- update to AppArmor 2.9.1 (2.9 branch r2831) + - fix log parsing for 3.16 kernels and syslog-style logs (boo#905368) + - several fixes and performance improvements in the aa-* utils + - profile updates for dnsmasq (boo#907870), nscd (boo#904620#c14 and + bnc#908856), useradd, sendmail, man and passwd + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_9_1 + for full release notes +- refresh dnsmasq-profile-fixes.patch + +------------------------------------------------------------------- +Mon Dec 22 10:26:15 UTC 2014 - cbosdonnat@suse.com + +- Fix dnsmasq profile to allow executing bash to run the --dhcp-script + argument. Also fixed /usr/lib -> /usr/{lib,lib64} to get libvirt + leasehealper script to run even on x86_64. + dnsmasq-profile-fixes.patch. boo#911001 + +------------------------------------------------------------------- +Sun Dec 21 16:22:27 UTC 2014 - opensuse@cboltz.de + +- rename lessopen.sh profile file to usr.bin.lessopen.sh to match the + script filename + +------------------------------------------------------------------- +Wed Dec 10 10:15:16 UTC 2014 - meissner@suse.com + +- add apparmor-lessopen-profile.patch: /usr/bin/lessopen.sh needs + confinement. bnc#906858 + +------------------------------------------------------------------- +Sun Nov 16 16:28:14 UTC 2014 - opensuse@cboltz.de + +- delete cache in apparmor-profiles %post (workaround for + bnc#904620#c8 / lp#1392042) + +------------------------------------------------------------------- +Fri Nov 14 09:18:07 UTC 2014 - dimstar@opensuse.org + +- No longer perform gpg validation; osc source_validator does it + implicit: + + Drop gpg-offline BuildRequires. + + No longer execute gpg_verify. + +------------------------------------------------------------------- +Sun Nov 09 01:06:00 UTC 2014 - Led + +- fix bashism in post script + +------------------------------------------------------------------- +Sat Oct 18 09:43:19 UTC 2014 - opensuse@cboltz.de + +- update to AppArmor 2.9.0 (r2759) + - change aa-mergeprof to the final commandline syntax + - lots of bugfixes in the aa-* tools (bnc#900163, lp#1328707 and several + bugs without a formal bugreport) + - small additions to gnome, freedesktop.org, ubuntu-browsers.d/java + and user-mail abstractions + - fix mod_apparmor to not break basic auth + - update perl modules to support signal, unix and ptrace rules (bnc#900013) + - don't warn about rules not supported by the kernel + - fix logging of "audit capability" (lp#1378091) + - add support for the "hat" keyword in apparmor.vim + - build html version of apparmor.vim manpage again (lp#1366572) + - see also http://wiki.apparmor.net/index.php/ReleaseNotes_2_9_0 +- update apparmor-abstractions-no-multiline.diff +- remove upstreamed apparmor-profiles-ntpd-pid-location.diff + +------------------------------------------------------------------- +Fri Oct 10 23:22:26 UTC 2014 - opensuse@cboltz.de + +- add apparmor-abstractions-no-multiline.diff: change all multiline + rules into one line. Needed for yast2-apparmor (bnc#900013) + +------------------------------------------------------------------- +Mon Oct 6 18:07:50 UTC 2014 - opensuse@cboltz.de + +- add apparmor-profiles-ntpd-pid-location.diff to cover new ntpd pid + location (bnc#899746) + +------------------------------------------------------------------- +Sun Oct 5 18:53:43 UTC 2014 - opensuse@cboltz.de + +- update to AppArmor 2.8.97 (aka 2.9 beta3 aka r2721) + - several bugfixes in python and C tools + - rename "__unused" to "unused" in apparmor_parser to fix compilation + on openSUSE <= 13.1 x86_64 (bnc#895495) + - usr.lib.dovecot.auth profile: allow access to auth-token-secret.dat + - various small profile improvements + - update and add several testcases +- drop upstreamed patch apparmor-profiles-dnsmasq-iface-mtu.patch +- re-number remaining patches + +------------------------------------------------------------------- +Sun Sep 28 19:25:32 UTC 2014 - opensuse@cboltz.de + +- split apparmor-profiles package into -profiles and -abstractions + +------------------------------------------------------------------- +Sat Sep 6 22:08:57 UTC 2014 - opensuse@cboltz.de + +- update to AppArmor 2.8.96 (aka 2.9 beta2 aka r2652) + - add unix abstract sockets, ptrace, and signal policy generation + - several bugfixes in the python tools and elsewhere + - move program-chunks/postfix-common to abstractions/ + - drop upstreamed patches: + - apparmor-profiles-clustered-samba.diff + - perl-apparmor-fix-bare-network-keyword-handling.diff + - perl-apparmor-handle-bare-capability-keyword.diff + - perl-apparmor-properly-handle-bare-file-keyword.diff +- re-enable installation of perl modules +- move python modules to python3-apparmor package +- create symlinks without aa- prefix only for tools existing in 2.8.x, + but not for new tools added in 2.9 +- make utils filelist explicit to ensure we have the right set of files + without aa- prefix in sbindir +- switch easyprof python module location to python3 +- drop unused defines APPARMOR_DOC_DIR and JNI_SO +- refresh patches: + - apparmor-utils-string-split (file moved) + - apparmor-profiles-dnsmasq-iface-mtu.patch + - apparmor-2.5.1-edirectory-profile + +------------------------------------------------------------------- +Fri Sep 5 12:34:56 UTC 2014 - opensuse@cboltz.de + +(prepared Thu Mar 20 23:35:03 UTC 2014 in home project) +- update to AppArmor 2.8.95 (aka 2.9 beta1) + - complete rewrite of the aa-* tools in python + - new tools: aa-cleanprof, aa-mergeprof + - extra profiles moved to /usr/share/apparmor/extra-profiles/ (bnc#713647) + - and much more, but there's no upstream changelog yet +- drop upstreamed patches and files: + - usr.sbin.winbindd + - usr.lib.dovecot.*, tunables-dovecot, apparmor-profiles-dovecot-bnc851984.diff + - apparmor-init.py-gsoc.diff + - apparmor-2.8.2-nm-dnsmasq-config.patch +- add %bcond_with perl and disable the perl subpackage temporarily (the perl + modules will be back in beta2) +- drop the apparmorapplet-gnome, apparmor-dbus and profile-editor subpackages + (they were disabled since a long time, and upstream no longer ships their code) + and the apparmor-profile-editor.desktop and apparmor-profile-editor.png files +- drop apparmor-utils-subdomain-compat patch (was only included for <= 12.1) +- remove libimmunix Provides/Obsoletes (libimmunix was a compat wrapper + and got finally dropped) +- refresh apparmor-samba-include-permissions-for-shares.diff and + apparmor-2.5.1-edirectory-profile + +------------------------------------------------------------------- +Thu Sep 4 11:39:40 MDT 2014 - jfehlig@suse.com + +- add apparmor-profiles-dnsmasq-iface-mtu.patch to allow dnsmasq + read access to interface mtu in + /proc/sys/net/ipv6/conf//mtu + (bnc#892374) + +------------------------------------------------------------------- +Mon Aug 11 21:18:25 UTC 2014 - opensuse@cboltz.de + +- usr.lib.dovecot.auth: add '/etc/dovecot/* r' to allow reading + plaintext password files (bnc#874094) + +------------------------------------------------------------------- +Thu Jul 31 14:17:30 UTC 2014 - dimstar@opensuse.org + +- Rename rpmlintrc to %{name}-rpmlintrc. + Follow the packaging guidelines. + +------------------------------------------------------------------- +Wed Jul 30 17:35:13 UTC 2014 - jeffm@suse.com + +- add perl-apparmor-fix-bare-network-keyword-handling.diff: + perl-apparmor: Fix handling of network (or network all) (bnc#889650) + +- add perl-apparmor-handle-bare-capability-keyword.diff: + perl-apparmor: Fix handling of capability keyword (bnc#889651) + +- add perl-apparmor-properly-handle-bare-file-keyword.diff: + perl-apparmor: Properly handle bare file keyword (bnc#889652) + +------------------------------------------------------------------- +Thu Jul 3 14:45:14 UTC 2014 - ddiss@suse.com + +- add apparmor-profiles-clustered-samba.diff to permit clustered Samba + access to CTDB socket and databases (bnc#885317) + +------------------------------------------------------------------- +Wed Jul 2 10:30:43 UTC 2014 - chris@computersalat.de + +- fix problems with dovecot and managesieve + * usr.lib.dovecot.managesieve-login: network inet6 stream + * usr.lib.dovecot.managesieve: + +#include + /usr/lib/dovecot/managesieve { + #include + + capability setgid, + + capability setuid, + + network inet stream, + + network inet6 stream, + + @{DOVECOT_MAILSTORE}/ rw, + + @{DOVECOT_MAILSTORE}/** rwkl, + +------------------------------------------------------------------- +Fri Jun 27 17:47:40 UTC 2014 - chris@computersalat.de + +- add #include to usr.lib.dovecot.auth + +------------------------------------------------------------------- +Tue Apr 1 16:06:24 UTC 2014 - lmuelle@suse.com + +- update usr.sbin.winbindd profile (bnc#870607) + - restrict rw access to /var/cache/krb5rcache/ instead /var/tmp/ + +------------------------------------------------------------------- +Fri Mar 28 14:24:19 UTC 2014 - lmuelle@suse.com + +- update usr.sbin.winbindd profile (bnc#870607) + - treat passdb.tdb.tmp as passdb.tdb + - allow rw access to /var/tmp/ + +------------------------------------------------------------------- +Thu Mar 20 19:58:47 UTC 2014 - opensuse@cboltz.de + +- add Recommends: libnotify-tools to apparmor-utils (aa-notify -p + needs notify-send) + +------------------------------------------------------------------- +Mon Feb 17 11:40:36 UTC 2014 - opensuse@cboltz.de + +- update to AppArmor 2.8.3 (r2122) bugfix release + - fix some cache clearing bugs in apparmor_parser + - various fixes in mod_apparmor + - several profile updates, most of them were already included as patches + (except abstractions/winbind (bnc#863226), abstractions/fonts and + abstractions/p11-kit) + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_8_3 for all details +- update partially upstreamed apparmor-2.8.2-nm-dnsmasq-config.patch +- remove upstream(ed) patches + - apparmor-2.8.2-fix-ntpd-profile.diff + - apparmor-abstractions-r2089-r2090.diff + - apparmor-abstractions-ssl_certs.diff + - apparmor-fix-url-in-manpages-r2093.diff + - apparmor-no-perl-smartmatch-r2088.diff + - apparmor-profiles-dnsmasq.diff + - apparmor-profiles-ntpd-r2103.diff + - apparmor-profiles-samba-create-dirs.diff + - apparmor-profiles-samba4.diff + - apparmor-unconfined-lang-r2094.diff + - apparmor-utils-po-de-r2091.diff + +------------------------------------------------------------------- +Sat Feb 1 11:23:45 UTC 2014 - coolo@suse.com + +- use current ruby macros, the rb_sitearch is obsolete since at least + 12.1 + +------------------------------------------------------------------- +Sun Jan 26 14:46:43 UTC 2014 - opensuse@cboltz.de + +- update apparmor-2.8.2-nm-dnsmasq-config.patch - allow access to pid file + and supplemental config directory (by develop7) +- update apparmor-profiles-dovecot-bnc851984.diff: + - do not add access to @{DOVECOT_MAILSTORE} - not required by the main binary + - add abstractions/mysql + - allow execution of some more /usr/lib/dovecot/* binaries + - better restrict access to /var/spool/postfix/private/ +- update usr.lib.dovecot.auth to allow to read mysql config files +- update usr.lib.dovecot.dict and usr.lib.dovecot.lmtp: + add abstractions/nameservice instead of allowing more and more files + +------------------------------------------------------------------- +Sun Jan 19 14:51:33 UTC 2014 - opensuse@cboltz.de + +- add Recommends: net-tools to apparmor-utils (needed by aa-unconfined) +- update usr.lib.dovecot.lmtp (add /proc/*/mounts, /tmp/dovecot.lmtp.*, + /{var/,}run/dovecot/mounts, deny capability block_suspend) + +------------------------------------------------------------------- +Fri Jan 17 16:29:54 UTC 2014 - develop7@develop7.info + +- add apparmor-2.8.2-nm-dnsmasq-config.patch - allow dnsmasq read config + created by recent NetworkManager (see + http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=d82669d3fdaa7ec70ef1b64941c101ac810c394b + for update details) + +------------------------------------------------------------------- +Sat Jan 4 12:04:25 UTC 2014 - opensuse@cboltz.de + +- add apparmor-profiles-samba-create-dirs.diff to allow samba to + mkdir /var/run/samba and /var/cache/samba (bnc#856651) +- add abstractions/samba to usr.sbin.winbindd profile +- add capabilities ipc_lock and setuid to usr.sbin.winbindd profile (bnc#851131) + +- update dovecot profiles to support dovecot 2.x, and add profiles for + the parts of dovecot that were not covered yet (bnc#851984) + NOTE: Please adjust /etc/apparmor.d/tunables/dovecot to your needs. + (apparmor-profiles-dovecot-bnc851984.diff, usr.lib.dovecot.*) + +- %restart_on_update (in parser %postun) is "translated" to stop/start by + the systemd wrapper, which removes AppArmor protection from running + processes. Fixed by using a custom script instead (bnc#853019) + NOTE: The %postun from the previously installed apparmor-parser package + will remove AppArmor protection from running processes a last time. + Run aa-status to get a list of processes you need to restart, or reboot + your computer. +- reload profiles in %post of the apparmor-profiles package + +------------------------------------------------------------------- +Mon Nov 25 23:44:40 UTC 2013 - opensuse@cboltz.de + +- add apparmor-abstractions-ssl_certs.diff to allow access to + certificates in /var/lib/ca-certificates/ (bnc#852018) + +------------------------------------------------------------------- +Thu Nov 14 20:54:23 UTC 2013 - opensuse@cboltz.de + +- add apparmor-profiles-ntpd-r2103.diff with updated driftfile + location for ntpd (bnc#850374) + +------------------------------------------------------------------- +Sat Nov 2 14:15:58 UTC 2013 - opensuse@cboltz.de + +- apparmor-profiles-samba4.diff, usr.sbin.winbindd: some more profile + updates for samba 4.x and kerberos (bnc#846586#c12 and #c15) + +------------------------------------------------------------------- +Wed Oct 30 11:06:39 UTC 2013 - opensuse@cboltz.de + +- add apparmor-profiles-dnsmasq.diff - add missing permissions for + libvirt-generated files to dnsmasq profile (bnc#848215) + +------------------------------------------------------------------- +Sun Oct 20 11:59:28 UTC 2013 - opensuse@cboltz.de + +- apparmor-profiles-samba4.diff, usr.sbin.winbindd: some more profile + updates for samba 4.x (bnc#846054#c5) + +------------------------------------------------------------------- +Tue Oct 15 20:10:49 UTC 2013 - opensuse@cboltz.de + +- add apparmor-profiles-samba4.diff - various profile additions for + samba 4.x (bnc#845867, bnc#846054) +- update usr.sbin.winbindd for samba 4.x (bnc#845867, bnc#846054) + +------------------------------------------------------------------- +Sun Sep 29 15:00:20 UTC 2013 - opensuse@cboltz.de + +- update apparmor-init.py-gsoc.diff to the final GSoC apparmor/__init__.py + +------------------------------------------------------------------- +Fri Sep 20 11:28:20 UTC 2013 - opensuse@cboltz.de + +- add apparmor-fix-url-in-manpages-r2093.diff: fix URL in manpages +- add apparmor-unconfined-lang-r2094.diff: fix aa-unconfined to work + in all languages + +------------------------------------------------------------------- +Mon Sep 16 18:23:46 UTC 2013 - seife+obs@b1-systems.com + +- fix ntp by allowing read access to openssl.cnf + +------------------------------------------------------------------- +Fri Sep 13 22:41:18 UTC 2013 - opensuse@cboltz.de + +- add apparmor-utils-po-de-r2091.diff: fix some (mis)translations + +------------------------------------------------------------------- +Thu Sep 12 20:40:38 UTC 2013 - opensuse@cboltz.de + +- add apparmor-abstractions-r2089-r2090.diff (from upstream 2.8 branch) + - p11-kit needs access to /usr/share/p11-kit/modules + - allow reading /etc/machine-id in the dbus-session abstraction +- add apparmor-init.py-gsoc.diff - make apparmor/__init__.py ready for + the new tools developed in GSoC + +------------------------------------------------------------------- +Fri Aug 23 20:09:59 UTC 2013 - opensuse@cboltz.de + +- add apparmor-no-perl-smartmatch-r2088.diff: ~~ was marked as experimental + in perl 5.18 again - use grep instead (upstream 2.8 branch r2088) +- fix ruby requires + +------------------------------------------------------------------- +Fri Aug 16 18:26:20 UTC 2013 - opensuse@cboltz.de + +- update to AppArmor 2.8.2 + - several fixes for python3 compability + - various profile improvements: + - various additions to abstractions/fonts + - move poppler's cMaps from gnome to fonts; gnome includes fonts + - deny @{HOME}/.gnome2/keyrings/** to abstractions/private-files-strict + - add read access to @{PROC}/sys/vm/overcommit_memory to abstractions/base + (bnc#824577) + - update pulseaudio directory and cookie file paths + - add missing permissions to the nscd profile (bnc#807104) + - deny capability block_suspend to nscd (bnc#807104) + - MariaDB compatability in abstractions/mysql (bnc#798183) + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_8_2 for all details +- removed upstream(ed) patches + - apparmor-abstractions-mysql-path.diff + - apparmor-profiles-nscd.diff + - apparmor-python3-r2052.diff + +------------------------------------------------------------------- +Thu Aug 15 18:59:41 UTC 2013 - opensuse@cboltz.de + +- swig for python3 is broken on openSUSE 12.2 - build python-apparmor + (for python2) instead on 12.2 + +------------------------------------------------------------------- +Thu Aug 15 00:01:46 UTC 2013 - opensuse@cboltz.de + +- add python3-apparmor subpackage (currently py2 OR py3 package can be + build, but not both at the same time) +- add upstream apparmor-python3-r2052.diff to fix various python3 issues + +------------------------------------------------------------------- +Tue Jun 4 13:06:37 UTC 2013 - kkaempf@suse.com + +- Ruby 2.0 mkmf gets the path to ruby.h wrong (bnc#822277) + +------------------------------------------------------------------- +Mon May 13 12:42:04 UTC 2013 - coolo@suse.com + +- do not package directories as %config - especially not as noreplace + +------------------------------------------------------------------- +Tue Apr 23 20:11:39 UTC 2013 - opensuse@cboltz.de + +- enable python and ruby subpackages (using %bcond_without) +- update/fix paths in %files for python and ruby subpackages + +------------------------------------------------------------------- +Tue Apr 2 18:56:56 UTC 2013 - opensuse@cboltz.de + +- add Requires: insserv to parser package (needed by initscript) + +------------------------------------------------------------------- +Tue Mar 5 17:49:42 UTC 2013 - opensuse@cboltz.de + +- nscd profile: add missing permissions and deny capability block_suspend + (bnc#807104, apparmor-profiles-nscd.diff) + +------------------------------------------------------------------- +Sun Feb 17 09:59:48 UTC 2013 - jengelh@inai.de + +- Add missing files to SRPM (bnc#777471) + +------------------------------------------------------------------- +Sun Jan 13 13:46:01 UTC 2013 - opensuse@cboltz.de + +- update abstractions/mysql with correct paths and add MariaDB paths + (bnc#798183) + +------------------------------------------------------------------- +Thu Jan 10 10:57:40 UTC 2013 - opensuse@cboltz.de + +- update to AppArmor 2.8.1 (=2.8 branch r2069) + Bugfix release, http://wiki.apparmor.net/index.php/ReleaseNotes_2_8_1 + Most important changes are: + - add various missing parts to profiles and abstractions + - fix a possible x conflict with hats or child profiles in + apparmor_parser + - fix and speedup stdin handling in aa-decode + - various other bugfixes + - add pkgconfig support to libapparmor +- remove upstream(ed) patches + +------------------------------------------------------------------- +Mon Dec 3 20:58:04 UTC 2012 - opensuse@cboltz.de + +- verify tarball with gpg-offline + +------------------------------------------------------------------- +Tue Sep 25 13:55:56 UTC 2012 - coolo@suse.com + +- fix directory flags for /etc/apparmor.d to be in sync between + -parser and -profiles subpackage + +------------------------------------------------------------------- +Fri Sep 21 19:58:32 UTC 2012 - opensuse@cboltz.de + +- remove %stop_on_removal for no longer existing aaeventd (bnc#781564) +- don't hide TeX output when building the parser and techdoc + +------------------------------------------------------------------- +Thu Aug 9 23:31:26 UTC 2012 - opensuse@cboltz.de + +- clear and update inconsistent profile cache (bnc#774529) + +------------------------------------------------------------------- +Sun Aug 5 16:05:44 UTC 2012 - opensuse@cboltz.de + +- abstractions/bash: update /bin/ls to also match /usr/bin/ls (usrMerge) + +------------------------------------------------------------------- +Mon Jul 30 08:17:01 UTC 2012 - werner@suse.de + +- Add required fonts for new TeXLive 2012 + +------------------------------------------------------------------- +Fri Jul 6 22:33:39 UTC 2012 - opensuse@cboltz.de + +- update /bin/ping profile to also match /usr/bin/ping (usrMerge) + +------------------------------------------------------------------- +Sat Jun 2 19:55:14 UTC 2012 - opensuse@cboltz.de + +- update to AppArmor 2.8.0 (= r2047) + - new utility aa-easyprof - templated profile generation tool (the resulting + profile may be less strict than profiles generated with genprof/logprof) + - various small bugfixes +- removed upstreamed patches + +------------------------------------------------------------------- +Tue May 8 19:30:23 UTC 2012 - opensuse@cboltz.de + +- add apparmor-techdoc.patch to remove traces of the build time in PDF files + +------------------------------------------------------------------- +Sat May 5 20:25:49 UTC 2012 - opensuse@cboltz.de + +- update to AppArmor 2.8 beta5 (= 2.7.103 / r2031) + - new utility aa-exec to confine a program with the specified AppArmor profile + - add support for mount rules + - see http://wiki.apparmor.net/index.php/ReleaseNotes_2_8 for full upstream + changelog +- removed upstreamed and backported patches +- remove outdated autobuild and "disable repo" patches that were disabled since + the AppArmor 2.7 package +- create the Immunix::SubDomain compat perl module only for openSUSE <= 12.1 + (bnc#720617 #c7) + +------------------------------------------------------------------- +Mon Apr 16 21:16:41 UTC 2012 - opensuse@cboltz.de + +- replace patch for dnsmasq profile with upstream patch (bnc#738905) + +------------------------------------------------------------------- +Fri Apr 13 22:22:27 UTC 2012 - opensuse@cboltz.de + +- add apparmor-r2022-log-parser-network-bnc755923.patch - logprof didn't + create network rules because of changed log format (bnc#755923, lp#800826) +- add profile for samba winbindd (bnc#748499) + +------------------------------------------------------------------- +Fri Apr 6 13:38:11 CEST 2012 - mszeredi@suse.cz + +- fix dnsmasq profile (bnc#738905) + +------------------------------------------------------------------- +Thu Feb 9 19:01:07 UTC 2012 - opensuse@cboltz.de + +- add 0001-fix-for-lp929531.patch to allow reading + /sys/devices/system/cpu/online in abstractions/base (lp#929531) + +------------------------------------------------------------------- +Tue Jan 31 09:53:06 UTC 2012 - opensuse@cboltz.de + +- Update to AppArmor 2.7.2 (= 2.7 branch / r1894) + - move various permissions from httpd2-prefork profile to + abstractions/apache2-common. Backward-incompatible change: *.htaccess + files are no longer allowed for ^HANDLING_UNTRUSTED_INPUT + - allow access for more /usr/lib*/samba/ files for smbd (bnc#725967#c5) + - allow various .conf files for dovecot (lp#458922) + - disallow wl for *.so in @{HOME}/.pki/nssdb/ in abstractions/private-files + and abstractions/private-files-strict (lp#911847) + - update abstractions/kde, private-files* and ubuntu-browsers.d/user-files + to use ~/.kde4, not only ~/.kde (bnc#741592) + - block write access to ~/.kde{,4}/env in abstractions/private-files + (lp#914190) + - allow write access for personal dictionary etc. in abstractions/aspell + (lp#917859) + - when using genprof for a script, include read access to the script itsself + - automatically include abstractions/python or abstractions/ruby for + python/ruby scripts + - add profile for smbldap-useradd and allow smbd to call it (bnc#738041) + - allow creation of the .config directory in abstractions/enchant (lp#914184) + - allow TFTP read-only access in dnsmasq profile (lp#905412) + - allow capability dac_read_search for syslog-ng (bnc#731876) + - add p11-kit abstraction and include it in abstractions/authentification + (lp#912754, lp#912752) + - add audacity to abstractions/ubuntu-media-players (lp#899963) + - allow software-center, fireclam plugin, [tT]unar, exo-open, kate and + /dev/nvidia* in abstractons/ubuntu-browsers.d/* (lp#662906, lp#562831, + lp#890894, lp#890894, lp#884748) + - fix typo for multiarch gconf-modules in abstractions/base (lp#904548) + - allow avahi to do dbus introspection (lp#769148) + - allow access to ~/.fonts.conf.d in abstractions/fonts (lp#870992) + - allow transmission in abstractions/ubuntu-bittorrent-clients (lp#852062) + - allow reading ~/.cups/client.conf and ~/.cups/lpoptions in + abstractions/cups-client (lp#887992) + - allow read access of /etc/python{2,3}.[0-7]*/sitecustomize.py in + abstractions/python (lp#860856) + - various updates to the sshd profile (lp#817956) + - (and some more changes I already included in the apparmor-2.7-branch.diff) + +------------------------------------------------------------------- +Tue Jan 3 23:52:38 UTC 2012 - opensuse@cboltz.de + +- Update to AppArmor 2.7.0 (= r1858) + - make traceroute6 work (bnc#733312) + - allow access to pyconfig.h in abstractions/python (lp#840734) + - fix logprof/genprof for hex-encoded program filenames (= filenames + containing space etc.) +- add apparmor-2.7-branch.diff with some upstreamed fixes: + - usr.sbin.smbd needs read access for /etc/netgroup (bnc#738041) + - create /etc/apparmor.d/tunables/multiarch.d as directory, not as file + - fix syntax error in abstractons/python + +------------------------------------------------------------------- +Tue Nov 29 18:34:54 CET 2011 - meissner@suse.de + +- changed a $ -> % (typo) + +------------------------------------------------------------------- +Sat Nov 26 21:52:31 UTC 2011 - opensuse@cboltz.de + +- package subdomain.conf only in -parser, not in -utils package +- package libapparmor.so and libimmunix.so only in libapparmor-devel, + not in libapparmor1 +- make Provides for perl-libapparmor versioned to avoid self-Obsoletes +- move libapparmor.a and libimmunix.a from libapparmor1 to + libapparmor-devel package + +------------------------------------------------------------------- +Thu Nov 10 20:16:24 UTC 2011 - opensuse@cboltz.de + +- update to AppArmor 2.7.0 rc2 + Most of the changes since rc1 were already included as patches. + Additional changes: + - fix logprof/genprof to recognize "mknod" in audit.log + - fix libapparmor python bindings to compile with python 3 + - fix wrong status message in initscript if apparmor-utils are not installed + - parser/Makefile: fix some warnings, always respect CXX and LDFLAGS + - fix some warnings in utils/Makefile +- remove 4 upstreamed patches +- remove mkdir /etc/apparmor.d/disable - that's done by upstream Makefile now +- update line numbers in 2 patches + +------------------------------------------------------------------- +Tue Nov 1 17:39:29 UTC 2011 - opensuse@cboltz.de + +- make abstractions/winbind working on 64bit systems +- allow loading the libraries for samba "vfs objects" also on 32bit + systems (bnc#725967) + +------------------------------------------------------------------- +Wed Oct 26 20:48:16 UTC 2011 - opensuse@cboltz.de + +- allow loading the libraries for samba "vfs objects" (bnc#725967) + +------------------------------------------------------------------- +Wed Oct 19 09:53:14 UTC 2011 - opensuse@cboltz.de + +- include autogenerated profile sniplet for samba shares (bnc#688040) +- more helpful error message for "aa-notify -p" if the user is not in + the configured group + +------------------------------------------------------------------- +Thu Oct 13 22:52:24 UTC 2011 - opensuse@cboltz.de + +- update to AppArmor 2.7.0 rc1 + - aa-notify: add --display option and warn if $DISPLAY is not set + (important for usage with sudo on openSUSE) + - fix syntax error on "rcapparmor stop" + - allow read access to /proc/*/mounts in the dovecot profile + +------------------------------------------------------------------- +Sun Oct 9 19:42:05 UTC 2011 - opensuse@cboltz.de + +- add patch with upstream changes since 2.7.0 beta2 release + - add example parser.conf + - print warning if profile cache directory doesn't exist + - remove initscript for no longer existing aa-eventd (bnc#720617) + - set correct $HOME in aa-notify +- enable caching of profiles (= massive speedup) (bnc#689458) +- add comments for patches in .spec and comments in some patches +- run spec-cleaner + +------------------------------------------------------------------- +Fri Sep 30 20:07:41 UTC 2011 - coolo@suse.com + +- add libtool as buildrequire to make the spec file more reliable + +------------------------------------------------------------------- +Fri Sep 16 15:25:19 UTC 2011 - opensuse@cboltz.de + +- update to AppArmor 2.7.0 beta2 + - includes fixes for bnc#717707, bnc#678749, bnc#685674, bnc#679182, + bnc#691072, bnc#705319, bnc#713728 +- add some missing perl module Requires to perl-apparmor + +------------------------------------------------------------------- +Tue Sep 13 18:47:36 UTC 2011 - opensuse@cboltz.de + +- update to AppArmor 2.7.0 beta1, for details see + http://wiki.apparmor.net/index.php/ReleaseNotes_2_7 +- removed lots of patches I pushed upstream +- disabled apparmor-2.5.1-unified-build (patch to use automake, + does not apply to 2.7 and probably won't be accepted upstream) +- disabled build of tomcat_apparmor (doesn't build, deprecated upstream) +- run spec-cleaner +- remove *.la files +- move usr.sbin.nscd profile back to apparmor-profiles package + +------------------------------------------------------------------- +Wed Sep 7 10:35:12 MDT 2011 - jfehlig@suse.com + +- Update patch apparmor-profiles-usr.sbin.dnsmasq to include + /var/lib/libvirt/dnsmasq/*.leases (bnc#694197). + +------------------------------------------------------------------- +Mon Aug 22 11:54:21 UTC 2011 - opensuse@cboltz.de + +- install SubDomain.pm compat module (bnc#713408) + +------------------------------------------------------------------- +Wed Aug 3 02:46:08 CEST 2011 - jeffm@suse.de + +- Update to 2.6.1. + - One patch eliminated + - Lots of minor fixes + - Split out more common abstractions +- Add check_for_apparmor() helper. + +------------------------------------------------------------------- +Tue Aug 2 17:07:43 CEST 2011 - jeffm@suse.de + +- dhcpd: Fix apparmor profile (bnc#692428) + +------------------------------------------------------------------- +Tue Aug 2 09:19:45 UTC 2011 - fcrozat@suse.com + +- Add apparmor-securityfs-systemd.patch: do not mount securityfs + when running under systemd, just access the directory, systemd + will automount it (bnc#704460). + +------------------------------------------------------------------- +Sun Jul 17 20:04:18 UTC 2011 - andrea.turrini@gmail.com + +- Fixed typos in descriptions and summaries of apparmor.spec + +------------------------------------------------------------------- +Fri Jun 24 16:02:21 CEST 2011 - jeffm@suse.de + +- Fixed building of pam_apparmor to properly link libpam (bnc#696553). +- Fixed building of apache2-mod_apparmor to properly link (bnc#701821). + +------------------------------------------------------------------- +Tue Jun 21 09:54:28 UTC 2011 - coolo@novell.com + +- move the requires and prerequires to the right package + +------------------------------------------------------------------- +Wed Apr 27 17:28:58 UTC 2011 - opensuse@cboltz.de + +- make the -doc and -profiles subpackages noarch (again) + +------------------------------------------------------------------- +Thu Mar 24 21:30:15 CET 2011 - jeffm@suse.de + +- Added alias from Immunix::SubDomain to Immunix:AppArmor to allow + older users of perl-apparmor to work properly. + +------------------------------------------------------------------- +Tue Mar 22 21:29:49 CET 2011 - jeffm@suse.de + +- Properly re-created links to old utility names. + +------------------------------------------------------------------- +Mon Mar 14 19:24:02 CET 2011 - jeffm@suse.de + +- Added /etc/ethers and /var/run/dnsmasq-forwarders to + usr.sbin.dnsmasq (bnc#678749) + +------------------------------------------------------------------- +Mon Mar 14 16:48:53 CET 2011 - jeffm@suse.de + +- Update to 2.6.0 + - 19 patches eliminated + - Lots of minor fixes. + - Split out more common abstractions + - Added more local includes + +------------------------------------------------------------------- +Tue Mar 1 09:56:30 UTC 2011 - rhafer@suse.de + +- Additional libvirt related fixes in usr.sbin.dnsmasq (bnc#675867) + +------------------------------------------------------------------- +Thu Feb 24 15:52:15 CET 2011 - jeffm@suse.de + +- Added 'network packet raw' to dhclient profile. + +------------------------------------------------------------------- +Tue Feb 22 12:45:43 UTC 2011 - bwiedemann@novell.com + +- Add Requires for used perl packages (bnc#670650). + +------------------------------------------------------------------- +Tue Jan 25 23:25:28 CET 2011 - jeffm@suse.de + +- Updated dhclient profile and added dhclient-script profile (bnc#561152). + +------------------------------------------------------------------- +Tue Jan 25 18:11:00 CET 2011 - jeffm@suse.de + +- Added ability to completely disable repositories. + +------------------------------------------------------------------- +Mon Jan 24 21:27:45 CET 2011 - jeffm@suse.de + +- Properly indent sub-profiles after genprof completion (bnc#480795). + +------------------------------------------------------------------- +Mon Jan 24 20:16:03 CET 2011 - jeffm@suse.de + +- Inherit flags in sub-profiles when generating profiles (bnc#496204). + +------------------------------------------------------------------- +Mon Jan 24 01:02:53 CET 2011 - jeffm@suse.de + +- Stop treating profiles shipped with the package as config files. + - /etc/apparmor.d will still be treated specially. +- Add support for parsing network operation events (bnc#665483) + +------------------------------------------------------------------- +Mon Jan 24 00:23:35 CET 2011 - jeffm@suse.de + +- Fix for sbin.klogd profile using kernel versions >= 2.6.38-rc1. + +------------------------------------------------------------------- +Mon Jan 24 00:11:28 CET 2011 - jeffm@suse.de + +- Update to apparmor-2.5 r1445. + - Includes 3 of the fixes below. + - Several testsuite fixes. + - Update for Thunderbird profile. + +------------------------------------------------------------------- +Fri Jan 21 19:07:15 CET 2011 - jeffm@suse.de + +- Add support for libvirt in usr.sbin.dnsmasq (bnc#666090) + +------------------------------------------------------------------- +Tue Jan 18 10:51:33 UTC 2011 - coolo@novell.com + +- fix rm call for nscd profile to avoid file conflict + +------------------------------------------------------------------- +Tue Jan 11 15:24:16 CET 2011 - jeffm@suse.de + +- profiles: Add openssl abstraction (bnc#623886). + +------------------------------------------------------------------- +Tue Jan 11 15:12:45 CET 2011 - jeffm@suse.de + +- Added support for sys_nice to ntpd profile (bnc#657054). + +------------------------------------------------------------------- +Mon Jan 10 19:27:01 CET 2011 - jeffm@suse.de + +- apparmor-utils: Support newer auditd formatted messages. +- Fix two x transition conflict bugs. (bnc#662928) + +------------------------------------------------------------------- +Thu Jan 6 16:23:19 UTC 2011 - rhafer@suse.de + +- Splitted ldap related things from nameservice into separate + profile and added some missing paths (bnc#662761) + +------------------------------------------------------------------- +Wed Dec 22 03:41:43 CET 2010 - jeffm@suse.de + +- Fixed pod2man macros with older versions of GNU make + +------------------------------------------------------------------- +Tue Dec 21 00:36:39 CET 2010 - jeffm@suse.de + +- Fixed building of perl and ruby SWIG modules. The former + is required for apparmor-utils to work properly. + +------------------------------------------------------------------- +Tue Dec 7 18:22:55 CET 2010 - jeffm@suse.de + +- Fixed use-after-free issue in apparmor_parser. + +------------------------------------------------------------------- +Tue Dec 7 17:52:59 CET 2010 - jeffm@suse.de + +- Added fixes for logprof issuing uninitialized variable errors + while encountering audit messages for unconfined processes. + +------------------------------------------------------------------- +Wed Dec 1 19:52:58 CET 2010 - jeffm@suse.de + +- Updated cupsd profile (bnc#539401) + +------------------------------------------------------------------- +Wed Dec 1 19:00:56 CET 2010 - jeffm@suse.de + +- Fix {proc} vs {PROC} macro usage in firefox profile (bnc#436262) + +------------------------------------------------------------------- +Wed Dec 1 18:41:31 CET 2010 - jeffm@suse.de + +- Added support for eDirectory nameservice (bnc#621394) + +------------------------------------------------------------------- +Wed Dec 1 18:05:44 CET 2010 - jeffm@suse.de + +- Fixed incorrect /proc/*/sys usage in usr.sbin.ntpd profile (bnc#634801) + +------------------------------------------------------------------- +Wed Dec 1 17:39:08 CET 2010 - jeffm@suse.de + +- Added fix for another case of whitespace affecting profile + removal (bnc#510740) + +------------------------------------------------------------------- +Tue Nov 30 12:00:00 CET 2010 - jeffm@suse.de + +- Added support for unified build, which massively simplified + the packaging. + +------------------------------------------------------------------- +Fri Nov 15 21:22:46 CET 2010 - czanik@balabit.hu + +- Fix for syslog-ng profile to allow upgrade to v3.2 +- add mysql support to syslog-ng profile + +------------------------------------------------------------------- +Thu Oct 21 15:16:38 CEST 2010 - jeffm@suse.de + +- Added support for enabling/disabling the module automatically + during installation/removal (bnc#623246) + +------------------------------------------------------------------- +Tue Oct 5 17:58:31 CEST 2010 - jeffm@suse.de + +- Converted archive to tar.bz2. + +------------------------------------------------------------------- +Tue Oct 5 17:49:16 CEST 2010 - jeffm@suse.de + +- Updated to 2.5.1-final. + - Lots of testcase updates. + +------------------------------------------------------------------- +Fri Aug 27 21:21:38 CEST 2010 - jeffm@suse.de + +- Initial packaging of AppArmor 2.5 + - Now contained in a single archive so built from a single spec file + diff --git a/apparmor.keyring b/apparmor.keyring new file mode 100644 index 0000000..614125b --- /dev/null +++ b/apparmor.keyring @@ -0,0 +1,89 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFUwHrABEADZVFn6TF2SxrpMiknHVeUHW7l4mOjHcxtULlEOQ3yaxyNxA0iE +GFWnbP7ek2cjzrfNIA1HNiS0FNsKipRAd5EfRUvJO3lrVfPBRBMLExeyA5h8vXtc +fcp9zpmKAlNVkx85LtVHxch6eUZapNPwqxKJFiDCrFM/zGk4vbRODy2KO3C8XWiy +gHQEW4mjPEsJw6xhyNC63LpCRol7qQu8j6rLJur7GWzSaLKgcUpDktsMJhNRPmCd +Dzb4mbEsbSmWUZ0C2e4HqTs6yjkc3HCIPCsxi4Y8e55qVJRvmOvlx0vGqfUrZyXD +cUQb8PX02V7sjA1DvE4PnZ8yHj1bS7/Q9x+R5ZjTMkqQ0cYXFnMb8pJ/oZucwl41 +RM7Nc57J7XLJmLRv/E7OL4v9DrobIPMOLvAU+PPdYzw+mUZx0jElOo84135nR/0K +EC7twaZxXVfF79iCY3OEhbHlPUH+62ucfcIdiV+TBKMhx70XJb4qDn1iDo2XW++N +8LF+7sZNLJnfJ7QfHUwVodWIXNaMsGOfknrZ4mcYbhETk2t6RpfmWUp61nVGeXgo +t1k3DXH93rFyccnEkGI8Y/+zFNN2QuZUx56kq6OF4Z3bhk7tSwA1/RubDRoNEQgF +94eGrKMgCfHhwPcV6KCtigtmXbdzhFQS5hJkvGOBHhVht9KbMrs9zh4RLQARAQAB +tExBcHBBcm1vciBEZXZlbG9wbWVudCBUZWFtIChBcHBBcm1vciBzaWduaW5nIGtl +eSkgPGFwcGFybW9yQGxpc3RzLnVidW50dS5jb20+iQI9BBMBCgAnBQJVMB6wAhsD +BQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJEGaJ5k49NmS7Lp4QAIS3 +D070h7N/giZLUsciLedixqLW8bDzDNFLLturd9ng3x3GwEGdEzibh4TASE6fAQAR +x6oW51ndgI5o7ZoNU3I0I/uLPM1B6YscmN9W2SD5oK8uQ7/K5//b8OGLq/cg1ych +O2lAh5jaGAhmfHy1MS4ZPQ9zbuwARddB7ESD81P4XIRvd/XzfsB2xW+k/7IR/P3M +ZQg+GZm6PxgbK6iwlVyWKj1NyTppzxCWu1yljlbq+Noi5LiucbRdG5qCrymnjgwR +kTeFlvBLYP7NDUifP6JsHgxwKbmvrMmFVJTRx2QnsmGv5DA0Evyz8Bof78S4lJQJ +TkfiiBmWUc6VNv3IQ56PqMQ6RlsKdaGUxXlcPekyeWKC5K6r80m8YjJNBQ+RQMlh +OC7AIckqcB/wPk3/iHvuNbJ0oNd/x/BFBgCs1Wlkktah+tc1aYVPvN1MKhChKD++ +RJYZE+BzR3HSgwBE2Oth7s53D+7ZZPtQoQvhxgKBLAlO7rvhlZi1G0id2BaAqris +Bwj/zFztNewOFCplM4cIXN2pRthgTJYSv/lCarnHsenTZ9zqqkWj3OsFPcMeWhtI +p3jyHXbGC9PtzodG51Aefmz0TqUwIvQxXQ6gOTVlGxMK64MweypYLxMOh9bQOMpS +29XKiX1dKB9ThjTJ6cDBKS7tnZ3cRxAHD3ZOGtiIiEYEEBEKAAYFAlUwIioACgkQ +gTeYuayTEnF41wCfVgK6+6dvch7YdkxGYOzkyt2G/EEAoIJq94o9guRD5OWVKS6N +gkjXvKQtiQIcBBABCgAGBQJVMCJMAAoJEC8Jno0AXoH0orQP/Rjx0Mdsorjfir+Y +ahNk5g4y4ZH425usPRMxRARNpZeGu58RLWOmSW5Fv//I95V0GnK8vyl5YuquHBJM +BRN4PR1XqHUqXdzG8zPZLG5elcqyV3cs58QSUyO+6Nbh4OY/VxqcawZYFaL5XE8N +y0qo2zeFcACIgsmuPMGBgkB3LAEJQxYZab6n2uIuMnJVai2DSIO5Ql2XC4mrKZOW +2GG6vlvM/MmrKKD+gFKCoGvoea9wYYb/3Lu/DU7nARGcCYyvX2zRTuasUO95Anm5 +zYxeXMvSJEq36U+xPLliTcT+bZrzf/dK93SSi/B6txYdM1KQhU0/vLQtdtDDQPFO +edvHIVo+UFrve/lNYSmNEcjgd7iAGwFPe7y6dAQs3KQvE70g10KuSVQuYqSVHJ7t +AC0AGHHsBcijFLzsSn9hOve8DSo/Jwjgvb1Rx1wl8RsmegATOik7FnWRsU+2OM9f +/BU3sLXuKWRQFXiVHsEpRO+vKVFVtcdu7BGzuFBnLS26SNP2jKRYIWJ1ea177w82 +vcjX5URSTBSQef0ABuYgzcV3CmTkKmpDmy49X+bpLQjYwX26XVh4Fm8yULTXT+Wc +pyDNf4itO8VSQpzrecBBcNJnyYvKBOuV0ASs4bZ0/ghmfGNHENk18ZQHZQ0pI1vX +eNk5l60Ensk0WWA/sz1732WzhTtRiQJUBBMBCgA+AhsDBQsJCAcDBRUKCQgLBRYC +AwEAAh4BAheAFiEEPs3Lpfs00lSWHMU/ZonmTj02ZLsFAmRRDVUFCRECIiUACgkQ +ZonmTj02ZLsLKg/9FOHsQ9aab5nZd3UfHxT3YTC73wkRIkKtoO1Y3Sv4pHzMr3CP +AV9Z+5YA8rUGyaSB14AFyVKjCswv3Rymd3IV+i2UYO9RwUpv3nM+adumIRga/mXp +yMwARcsRhlrrsUQL0H8R868Z/Pmq7yQw60/0jUXC/O+BJwD0xtTe/oIOwc7oyCDL +oOX8R0XcuVcnoDn0Mc27hFV1xK3iz5c0LtqTLLW20I3YqIVPdiF52SAwFo57xNZ7 +ntIvhntEHvhTzSD/BtiTNolhxf3C/pm/tmkgZ1CbkZn/TmXGEibHauP6Q9l1T7y9 +HkrPrq89c6kRVDnl6k3/W8f38ocat6U2xBcRQYtcLPvns3VpLIcLge1E2k0C7pYT +KxhyCo3Oc8WGpNX7ta/i3umUk0JlNl2vKiqjFilDWiu2ygXzzucmcQCkYQElrmUC +qGMBDnZWAi6qR1yMDiOdeIHni6V8GAjRUGVUhrqzMRNF091Szthxn4EQGOoZSBZl +9MkKm02hlj95eE+7UtSk/tAtLNxnIhwsz4OYxQxKh/kmj7AD8D2mD4ImQKaoCIPv +YJOXt6fHSLWZGNOSAn6oOWgAb4yMfausgJsE+USEsYphAyE/gfyPEqM3h7RzWmFi +u6UHYeKGpEzi6r66x/+WBH7VwJDM0Zg3KfDPXznyq3ZSUjpplQQI56UXttG5Ag0E +VTAesAEQALOrZwOHmAYfjX0/AgaaTFitlbJWCWZc8j/ix/90CrKuv8VGRI1b5VnP +D/ItV8DjNb221hF4myYUqpelKgXxyLlF9l/V9tr3G/gjnHhYEY1xpRnN0qbu8xb+ +t4lEOw3Dt/rO8v1WVRS2UvyVKew5tsTIKsjygxTAnO7yiMUyJR9F+ZDQhCtgLyEW +CYySSewbqBBOspJffEOYU94Bo3XVMDX22Gb4atwRsq8MyJLlEYb3bgubP7rsL6GY +pzodG8M+Q2nqmsOaIyIuQK6fqpBALluN07fIqUS6HF41w0DEogSm/lLLL2ARddPw +N4tCa61IcdvVJhIwHqbNftv7fC2Rr4S4LBaTdWu62k4cPQcIkwy3Fsuu2XKry/7e +by/23J80FVp4XJHsgS31yIaIh7l43DxHcTcFEYQhbsAGznmucDjuaZU7qcEarxUy +uIsJ5VI7sj8P716dK9xOeDvw8r32IFbt7qBsa0ZRcum/H9u7rUelCucbgNZUnuOT +pbZttItyVPwPAkNCI36mhqY26hCOoBbGvGxg81Gxzr9GjQskxcCRzTFCpKG1eXal +0J0muiPyBereLcelB8NmuPM1tbTaAw0dIJHlCmYZLhSsvx7H7cNicZRmH9LExVVV +tFDh09s7nJNvAN1pCQB6cDoVqPiUztKO/hOiIbot3pzpQxTUHkJVABEBAAGJAiUE +GAEKAA8FAlUwHrACGwwFCQ8JnAAACgkQZonmTj02ZLst/A//Qz6ROHlu+LLiuvo6 +0JSd3+oKhv8MEuRsJsesRnP/7bJRBrUhL3cGMqtTa6YP8JwwRTQXrKW0evtC0W59 +YSRzPUe99Gu7YfUHeus3GvVxpvR6Tsr7jnqA3k6zb+M//UvgGwCMA+KLXC2Gkfn3 +Pybffcva4OeSR3xxRNohb5ME8bbA3YI4n4+DJ31IBqqlUWY7QKguFaLHIrjY4lNu +bXZLJ5SrZWVVf6/5LauqXrhFkkj0pyc3/fqRYCAx0O4KlrxcSEk/YPELxBwXJ24/ +v9l1glk1a6KfLpU/4cpuU/oiadzrGPMddJBq4OynmFS7HP5otoAlJLXIEDbeV92F +/5h+7iu4wYUgJ0dcCRFcG3YkUhWyS3dwv+0Gs0SQOLQkboXNgBL2AskjK+UmUSWB +dcXQ5mXrSSOHbnjFEMQflDz+ykEN3PDQWQdLeE9aMzewNJJm5f1gBkPPDTBAYzqy +XjL4FfwjYl6uEX1IhLrTo0BpP7TqQ4fnBrhLnW7pc35R1ehdrpdKj9+qFUe3/ky7 +UD3SAyQDrmOLRf5e79iijdSLVPHnzi2q0ckWcNBrjAluaMHu7OpumSTvEoUgjW+A +trJLwyQW+D6WeaO+Cv+97SGgdmdUJLOZ32RmAaQpB9NoYUhlFzbgPji1wgvUrbQH +5yyRGqGl57sQZptruxrN2lWTcDSJAjwEGAEKACYCGwwWIQQ+zcul+zTSVJYcxT9m +ieZOPTZkuwUCZFENowUJEQIicwAKCRBmieZOPTZku47eEAC2yveESIGTnAcyJW04 +6igIK4NRwdfF89TDO5rJa8ZrKhbPw2Qk6CNf575cLj4/CMo6oJV3zv4a4CXztZ2B +8ObJ83pWX8AErQxA4dZdd2J+wl+5bPfeXI1Rm7FmOm32IrJfBI5hRSCq8/GBagaF +xnX5BTmnnWiDRKviodZ3kb9JVl4r1Nj4ELfC2eWpkp9KsAtrP48vK7DD7wP2uc/Z +ngCVzzSiWRLFOsUyVssYjgKZlFGYZ0w0kcTJoeoCTXU1/YvudFjeYb9vHBCJIoDU +NZi4Szxww6bnhgeCldP7Hr9rqwuPk8ReVcvbQOThORubY79oGdCp+ZmmoMFqAlDL +PektIdi0ZoP1a/u/d7qWTutLfkSHL2xwITtjVQtYY3wsuf9FVua8sksohSXuYW+d +DvP76y5EHZjituhykWm1SB74vy7XwxTJqhwTUgjdjc6Mwm4wu2eGCarfSTPrEin3 +X6oFB7TUFddDc8gADKmPsy+Q2ts7RAZzl1dPQEmHBhwbH9ifXtahQjlg7XKYN7A6 +ByfDxcono0VHBte5gTHIoi9k7CwEIHqjlHphpCORnzFemu52kdSN49gwrqK5hGTr +uv0BfG/LcYu2px9O2b65QTcR4nF1Zr07XfzL3pMUHsDquYBS67L2FnyXwOEfxRnX +EC34BZpyVkv7QfB5AuuQGbIeFQ== +=QOb0 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/apparmor.spec b/apparmor.spec new file mode 100644 index 0000000..1681526 --- /dev/null +++ b/apparmor.spec @@ -0,0 +1,782 @@ +# +# spec file for package apparmor +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2011-2024 Christian Boltz +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} >= 1550 +%define sbindir %_sbindir +%define apparmor_bin_prefix /usr/lib/apparmor +%else +%define sbindir /sbin +%define apparmor_bin_prefix /lib/apparmor +%endif + +%if 0%{?suse_version} <= 1500 +# _pamdir isn't defined in 15.x +%define _pamdir /%{_lib}/security +%endif + +# warning - confusing syntax ahead ;-) +# bcond_with means "disable" +# bcond_without means "enable" +%bcond_with tomcat +%bcond_without pam +%bcond_without apache +%bcond_without perl +%bcond_without python3 +%bcond_without ruby + +%if 0%{?suse_version} <= 1550 +# enable precompiled profile cache on <= 15.x +%bcond_without precompiled_cache +%else +# don't build precompiled profile cache on Tumbleweed as long as it's purely validated based on timestamps (boo#1205659) +%bcond_with precompiled_cache +%endif + +%define CATALINA_HOME /usr/share/tomcat6 +#define APPARMOR_DOC_DIR /usr/share/doc/packages/apparmor-docs/ +#define JNI_SO libJNIChangeHat.so +%define JAR_FILE changeHatValve.jar + +Name: apparmor +Version: 3.1.7 +Release: 0 +Summary: AppArmor userlevel parser utility +License: GPL-2.0-or-later +Group: Productivity/Networking/Security +URL: https://launchpad.net/apparmor +Source0: apparmor-%{version}.tar.gz +Source1: apparmor-%{version}.tar.gz.asc +Source2: %{name}.keyring + +Source5: update-trans.sh +Source6: baselibs.conf +Source7: apparmor-rpmlintrc + +# enable caching of profiles (= massive performance speedup when loading profiles) +# and set cache-loc in parser.conf and apparmor.service accordingly +Patch1: apparmor-enable-profile-cache.diff + +# include autogenerated profile sniplet for samba shares (bnc#688040) - include rule upstreamed in 3.0.5 (MR 838), now "just" creates the local/ sniplet +# (technically only needed in Leap 15.x, the samba script in Tumbleweed also works if the local/ sniplet doesn't exist - but dropping the local/ sniplet will move existing autogenerated sniplets to *.rpmsave) +Patch2: apparmor-samba-include-permissions-for-shares.diff + +# Ruby 2.0 mkmf prefixes everything with $(DESTDIR), bnc#822277, kkaempf@suse.de +Patch3: ruby-2_0-mkmf-destdir.patch + +# bug 906858 - confine lessopen.sh (submitted upstream 2014-12-21) +Patch4: apparmor-lessopen-profile.patch + +# workaround for boo#1119937 / lp#1784499 - allow network access for reading files on NFS (proper solution needs kernel fix) +# fixed in Kernel 6.0 and later (see comment in https://bugs.launchpad.net/bugs/1784499) +Patch5: apparmor-lessopen-nfs-workaround.diff + +# make include in apache extra profile optional to make openQA happy (boo#1178527) +Patch6: apache-extra-profile-include-if-exists.diff + +# add path for precompiled cache (only done/applied if precompiled_cache is enabled) +Patch7: apparmor-enable-precompiled-cache.diff + +# allow dovecot-auth to execute unix_chkpwd, and add a profile for unix_chkpwd. This is needed for PAM 1.6 (boo#1219139) +Patch9: dovecot-unix_chkpwd.diff + +# abstractions/openssl: allow version specific engdef & engines paths (boo#1219571) +Patch10: apparmor-abstractions-openssl-allow-version-specific-en.patch + +PreReq: sed +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: bison +BuildRequires: dejagnu +BuildRequires: flex +BuildRequires: gcc-c++ +BuildRequires: iproute2 +BuildRequires: pcre-devel +BuildRequires: pkg-config +BuildRequires: python3 +BuildRequires: perl(Locale::gettext) + +BuildRequires: swig + +%if %{with python3} +BuildRequires: python-rpm-macros +BuildRequires: python3-devel +BuildRequires: python3-notify2 +BuildRequires: python3-psutil +BuildRequires: python3-setuptools +%endif + +%if %{with ruby} +BuildRequires: ruby-devel +%endif + +%if %{with apache} +BuildRequires: apache-rpm-macros +BuildRequires: apache2-devel +%endif + +%if %{with tomcat} +BuildRequires: ant +BuildRequires: java-devel >= 1.6.0 +BuildRequires: tomcat6 +%endif + +%package parser +Summary: AppArmor userlevel parser utility +License: GPL-2.0-or-later +Group: Productivity/Networking/Security +Conflicts: apparmor-utils < 3.0 +Obsoletes: libimnxcert < 2.9 +Obsoletes: subdomain-leaf-cert < 2.9 +Obsoletes: subdomain-parser < 2.9 +Obsoletes: subdomain-parser-common < 2.9 +Obsoletes: subdomain-parser-demo < 2.9 +Obsoletes: subdomain_parser < 2.9 +Provides: libimnxcert = %{version} +Provides: subdomain-leaf-cert = %{version} +Provides: subdomain-parser = %{version} +Provides: subdomain-parser-common = %{version} +Provides: subdomain-parser-demo = %{version} +Provides: subdomain_parser = %{version} +Provides: apparmor-parser(CAP_SYSLOG) +BuildRequires: systemd-rpm-macros +%{?systemd_ordering} + +%description parser +The AppArmor Parser is a userlevel program that is used to load in +program profiles to the AppArmor Security kernel module. + +This package is part of a suite of tools that used to be named +SubDomain. + +%package docs +Summary: AppArmor Documentation package +License: GPL-2.0-or-later +Group: Documentation/Other +BuildArch: noarch + +%description docs +This package contains documentation for AppArmor. + +This package is part of a suite of tools that used to be named +SubDomain. + +%if %{with apache} + +%package -n apache2-mod_apparmor +Summary: AppArmor module for apache2 +License: GPL-2.0-or-later +Group: Productivity/Security + +%description -n apache2-mod_apparmor +apache2-modapparmor adds support to apache2 to provide AppArmor +confinement to individual cgi scripts handled by apache modules like +mod_php and mod_perl. + +This package is part of a suite of tools that used to be named +SubDomain. + +The documentation is in the apparmor-admin_en package. + +%endif + +%if %{with perl} + +%package -n perl-apparmor +Summary: Perl interface for libapparmor functions +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Development/Libraries/Perl +Requires: libapparmor1 = %{version} +Requires: perl = %{perl_version} +Provides: perl-libapparmor = %{version} +Obsoletes: perl-libapparmor < 2.5 + +%description -n perl-apparmor +This package provides the perl interface to AppArmor. It is used for perl +applications interfacing with AppArmor. + +%endif + +%if %{with python3} + +%package -n python3-apparmor +Summary: Python 3 interface for libapparmor functions +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Development/Libraries/Python +Requires: libapparmor1 = %{version} +Requires: python3 +Requires: python(abi) = %{py3_ver} + +%description -n python3-apparmor +This package provides the python interface to AppArmor. It is used for python +applications interfacing with AppArmor. + +%endif + +%if %{with ruby} + +%package -n ruby-apparmor +Summary: Ruby interface for libapparmor functions +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Development/Languages/Ruby +Requires: libapparmor1 = %{version} +Requires: ruby = %(rpm -q --qf '%%{version}' ruby) +Provides: ruby-libapparmor = %{version} +Obsoletes: ruby-libapparmor < 2.5 + +%description -n ruby-apparmor +This package provides the ruby interface to AppArmor. It is used for ruby +applications interfacing with AppArmor. + +%endif + +%package abstractions +Summary: AppArmor abstractions and directory structure +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Productivity/Security +Requires: apparmor-parser(CAP_SYSLOG) +BuildArch: noarch + +%description abstractions +AppArmor abstractions (common parts used in various profiles) and +the /etc/apparmor.d/ directory structure. + +AppArmor is a file and network mandatory access control mechanism. +AppArmor confines processes to the resources allowed by the systems +administrator and can constrain the scope of potential security +vulnerabilities. + +This package is part of a suite of tools that used to be named +SubDomain. + +%package profiles +Summary: AppArmor profiles that are loaded into the apparmor kernel module +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Productivity/Security +Requires: apparmor-abstractions >= %{version} +Requires: apparmor-parser(CAP_SYSLOG) +Obsoletes: subdomain-profiles < 2.9 +Provides: subdomain-profiles = %{version} +BuildArch: noarch + +%description profiles +Base profiles. AppArmor is a file and network mandatory access control +mechanism. AppArmor confines processes to the resources allowed by the +systems administrator and can constrain the scope of potential security +vulnerabilities. + +This package is part of a suite of tools that used to be named +SubDomain. + +%package utils +Summary: AppArmor User-Level Utilities Useful for Creating AppArmor Profiles +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Productivity/Security +Requires: apparmor-parser +Requires: libapparmor1 = %{version} +Requires: python3-apparmor = %{version} +Requires: python3-base +Requires: python3-notify2 +Requires: python3-psutil +# aa-unconfined needs ss +Recommends: iproute2 +BuildArch: noarch + +%description utils +This package provides the aa-logprof, aa-genprof, aa-autodep, +aa-enforce, and aa-complain tools to assist with profile authoring. +Besides it provides the aa-unconfined server information tool. +It is part of a suite of tools that used to be named SubDomain. + +%if %{with tomcat} + +%package -n tomcat_apparmor +Summary: Tomcat 6 plugin for AppArmor change_hat +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: System/Libraries +Requires: libapparmor1 = %{version} +Requires: tomcat6 + +%description -n tomcat_apparmor +tomcat_apparmor - is a plugin for Apache Tomcat version 6 that +provides support for AppArmor change_hat for creating AppArmor +containers that are bound to discrete elements of processing within the +Tomcat servlet container. The AppArmor containers, or "hats", can be +created for individual URL processing or per servlet. + +%endif + +%if %{with pam} + +%package -n pam_apparmor +Summary: PAM module for AppArmor change_hat +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: Productivity/Security +BuildRequires: pam-devel +PreReq: pam +PreReq: pam-config +Requires: pam +Requires: pam-config + +%description -n pam_apparmor +The pam_apparmor module provides the means for any PAM applications +that call pam_open_session() to automatically perform an AppArmor +change_hat operation in order to switch to a user-specific security +policy. + +%endif + +%description +The AppArmor Parser is a userlevel program that is used to load in +program profiles to the AppArmor Security kernel module. + +This package is part of a suite of tools that used to be named +SubDomain. + +%lang_package -n apparmor-utils +%lang_package -n apparmor-parser + +%prep +%setup -q + +# very loose profile that doesn't even match the apache2 binary path in openSUSE. Move it away instead of confusing people (boo#872984) +mv -v profiles/apparmor.d/usr.lib.apache2.mpm-prefork.apache2 profiles/apparmor/profiles/extras/ + +%patch1 +%patch2 +%patch3 -p1 +%patch4 +%patch5 +%patch6 +%if %{with precompiled_cache} +%patch7 +%endif +%patch9 -p1 +%patch10 -p1 + +%build +export SUSE_ASNEEDED=0 + +# libapparmor: +( + cd ./libraries/libapparmor + %configure \ +%if %{with perl} + --with-perl \ +%endif +%if %{with python3} + --with-python \ +%else + --without-python \ +%endif +%if %{with ruby} + --with-ruby \ +%else + --without-ruby \ +%endif + + make +) + +# Utilities: +make -C utils + +# binutils +make -C binutils + +# parser: +make -C parser V=1 + +# Apache mod_apparmor: +%if %{with apache} + make -C changehat/mod_apparmor +%endif + +# PAM AppArmor: +%if %{with pam} + make -C changehat/pam_apparmor +%endif + +# Profiles: +make -C profiles + +%if %{with tomcat} + make -C changehat/tomcat_apparmor/tomcat_5_5 CATALINA_HOME=%{CATALINA_HOME} +%endif + +# pre-build profile cache +# note that -L only works with an absolute path, therefore prefix it with $(pwd) +%if %{with precompiled_cache} +parser/apparmor_parser --config-file $(pwd)/parser/parser.conf --write-cache -QT -L $(pwd)/profiles/cache -I profiles/apparmor.d/ profiles/apparmor.d/ +%endif + +%check +make check -C libraries/libapparmor +make check -C parser +make check -C binutils + +# profiles make check fails for the utils (they expect /sbin/apparmor_parser to exist), therefore only do parser-based check +make -C profiles check-parser + +# test for a few files that should exist in the cache +%if %{with precompiled_cache} +test -f profiles/cache/*/bin.ping +test -f profiles/cache/*/.features +%endif + +# run checks in utils except linting -- https://gitlab.com/apparmor/apparmor/-/issues/121 +make check -o check_lint -C utils + +%install +# libapparmor: swig bindings only, libapparmor is packaged via libapparmor.spec +%makeinstall -C libraries/libapparmor/swig + +# utilities +%makeinstall -C utils +test ! -x %{buildroot}/%{_bindir}/aa-easyprof && chmod +x %{buildroot}/%{_bindir}/aa-easyprof # https://bugs.launchpad.net/apparmor/+bug/1366568 +mkdir -p %{buildroot}%{_localstatedir}/log/apparmor + +# binutils +%makeinstall -C binutils +( cd %{buildroot}/%{_sbindir} && ln -s %{_bindir}/aa-exec exec ) + +%makeinstall -C profiles + +%if %{with precompiled_cache} +install -d -m 755 %{buildroot}/usr/share/apparmor/cache +echo -e "\n\n *** WARNING: precompiling cache is known to fail under 'osc build' - use 'osc build --vm-type kvm' instead or skip building the precompiled cache with 'osc build --without precompiled_cache' ***\n\n" +# ensure cache files are newer than (text) profiles by sleeping a few seconds, and using cp -r which updates the timestamps +sleep 2 +cp -r profiles/cache/* %{buildroot}/usr/share/apparmor/cache +test -f %{buildroot}/usr/share/apparmor/cache/*/.features +test -f %{buildroot}/usr/share/apparmor/cache/*/bin.ping +%endif + +%makeinstall SBINDIR="%{buildroot}%{sbindir}" APPARMOR_BIN_PREFIX="%{buildroot}%{apparmor_bin_prefix}" -C parser +# default cache dir (up to 2.12) is /etc/apparmor.d/cache - not the best location. +# Use /var/lib/apparmor/cache and make /etc/apparmor.d/cache a symlink to it +mkdir -p %{buildroot}%{_localstatedir}/lib/apparmor/cache +( cd %{buildroot}/%{_sysconfdir}/apparmor.d/ && ln -s ../../%{_localstatedir}/lib/apparmor/cache cache ) +# default cache dir (starting with 2.13) is /etc/apparmor.d/cache.d - also not the best location +# Use /var/cache/apparmor and make /etc/apparmor.d/cache.d a symlink to it +mkdir -p %{buildroot}%{_localstatedir}/cache/apparmor +( cd %{buildroot}/%{_sysconfdir}/apparmor.d/ && ln -s ../../%{_localstatedir}/cache/apparmor cache.d ) + +%if %{with apache} + %makeinstall -C changehat/mod_apparmor +%endif + +%if %{with pam} + %makeinstall -C changehat/pam_apparmor SECDIR=%{buildroot}%{_pamdir} +%endif + +%if %{with tomcat} + mkdir -p %{buildroot}/%{CATALINA_HOME} + %makeinstall -C changehat/tomcat_apparmor/tomcat_5_5 CATALINA_HOME=%{buildroot}/%{CATALINA_HOME} +%endif + +find %{buildroot} -name .packlist -exec rm -vf {} \; +find %{buildroot} -name perllocal.pod -exec rm -vf {} \; + +# Re-create the links to the old names, but only for tools and manpages that had it for historic reasons[tm]. +# Tools and manpages added in >= 2.9 won't get symlinks without aa- prefix +for file in %{buildroot}%{_prefix}/{sbin,share/man/man[0-9]}/aa-*; do + d=$(dirname $file) + f=$(basename $file) + case "${f#aa-}" in + audit | autodep | complain | decode | disable | enforce | exec | genprof | logprof | notify | status | unconfined | \ + audit.8* | autodep.8* | complain.8* | disable.8* | easyprof.8* | enforce.8* | exec.1* | genprof.8* | logprof.8* | notify.8 | status.8 | unconfined.8* ) + if [ "${f#aa-}" != "$f" ]; then + ln -s $f $d/${f#aa-} + fi + ;; + esac +done + +mv -f %{buildroot}%{_mandir}/man8/{status.8,apparmor_status.8} +mv -f %{buildroot}%{_mandir}/man8/{notify.8,apparmor_notify.8} +rm -f %{buildroot}%{_mandir}/man8/decode.8 + +for pkg in apparmor-utils apparmor-parser aa-binutils; do + %find_lang $pkg +done + +# remove *.la files +rm -fv %{buildroot}%{_libdir}/libapparmor.la + +%files docs +%defattr(-,root,root) +%doc parser/*.[1-9].html +%doc utils/vim/apparmor.vim.5.html +%doc common/apparmor.css +%doc parser/techdoc.pdf +# apparmor.vim is included in the vim package. Ideally it should be in a -devel package, but that's overmuch for one file +%dir %{_datadir}/apparmor +%{_datadir}/apparmor/apparmor.vim + +%files parser +%defattr(-,root,root) +%license parser/COPYING.GPL +%doc parser/README +%{sbindir}/apparmor_parser +%{_bindir}/aa-enabled +%{_bindir}/aa-exec +%{_bindir}/aa-features-abi +%{_sbindir}/aa-status +%{_sbindir}/apparmor_status +%{_sbindir}/status +%{_sbindir}/aa-teardown +%{_sbindir}/exec +%dir %attr(-, root, root) %{_sysconfdir}/apparmor +%dir %{_sysconfdir}/apparmor.d +%{_sysconfdir}/apparmor.d/cache +%{_sysconfdir}/apparmor.d/cache.d +%{sbindir}/rcapparmor +%{_unitdir}/apparmor.service +%config(noreplace) %{_sysconfdir}/apparmor/parser.conf +%{_localstatedir}/lib/apparmor +%{_localstatedir}/cache/apparmor +%dir %attr(-, root, root) %{apparmor_bin_prefix} +%{apparmor_bin_prefix}/rc.apparmor.functions +%{apparmor_bin_prefix}/apparmor.systemd +%{apparmor_bin_prefix}/profile-load +%doc %{_mandir}/man1/aa-enabled.1.gz +%doc %{_mandir}/man1/aa-exec.1.gz +%doc %{_mandir}/man1/aa-features-abi.1.gz +%doc %{_mandir}/man1/exec.1.gz +%doc %{_mandir}/man5/apparmor.d.5.gz +%doc %{_mandir}/man5/apparmor.vim.5.gz +%doc %{_mandir}/man7/apparmor.7.gz +%doc %{_mandir}/man7/apparmor_xattrs.7.gz +%doc %{_mandir}/man8/aa-status.8.gz +%doc %{_mandir}/man8/aa-teardown.8.gz +%doc %{_mandir}/man8/apparmor_parser.8.gz +%doc %{_mandir}/man8/apparmor_status.8.gz + +%pre parser +%service_add_pre apparmor.service + +%files parser-lang -f apparmor-parser.lang -f aa-binutils.lang +%defattr(-,root,root) + +%files abstractions +%defattr(644,root,root,755) +%dir %{_sysconfdir}/apparmor.d/ +%dir %{_sysconfdir}/apparmor.d/abi +%config(noreplace) %{_sysconfdir}/apparmor.d/abi/3.0 +%config(noreplace) %{_sysconfdir}/apparmor.d/abi/kernel-5.4-outoftree-network +%config(noreplace) %{_sysconfdir}/apparmor.d/abi/kernel-5.4-vanilla +%dir %{_sysconfdir}/apparmor.d/abstractions +%config(noreplace) %{_sysconfdir}/apparmor.d/abstractions/* +%dir %{_sysconfdir}/apparmor.d/disable +%dir %{_sysconfdir}/apparmor.d/local +%dir %{_sysconfdir}/apparmor.d/tunables +%config(noreplace) %{_sysconfdir}/apparmor.d/tunables/* + +%files profiles +%defattr(644,root,root,755) +%dir %{_sysconfdir}/apparmor.d/apache2.d +%config(noreplace) %{_sysconfdir}/apparmor.d/apache2.d/phpsysinfo +%config(noreplace) %{_sysconfdir}/apparmor.d/bin.* +%config(noreplace) %{_sysconfdir}/apparmor.d/sbin.* +%config(noreplace) %{_sysconfdir}/apparmor.d/usr.* +%config(noreplace) %{_sysconfdir}/apparmor.d/lsb_release +%config(noreplace) %{_sysconfdir}/apparmor.d/nvidia_modprobe +%config(noreplace) %{_sysconfdir}/apparmor.d/php-fpm +%config(noreplace) %{_sysconfdir}/apparmor.d/samba-bgqd +%config(noreplace) %{_sysconfdir}/apparmor.d/samba-dcerpcd +%config(noreplace) %{_sysconfdir}/apparmor.d/samba-rpcd +%config(noreplace) %{_sysconfdir}/apparmor.d/samba-rpcd-* +%config(noreplace) %{_sysconfdir}/apparmor.d/unix-chkpwd +%config(noreplace) %{_sysconfdir}/apparmor.d/zgrep +%config(noreplace) %{_sysconfdir}/apparmor.d/local/* +%dir /usr/share/apparmor/ +%if %{with precompiled_cache} +/usr/share/apparmor/cache/ +%endif +/usr/share/apparmor/extra-profiles/ + +%files utils +%defattr(-,root,root) +%dir %{_sysconfdir}/apparmor +%config(noreplace) %{_sysconfdir}/apparmor/easyprof.conf +%config(noreplace) %{_sysconfdir}/apparmor/logprof.conf +%config(noreplace) %{_sysconfdir}/apparmor/notify.conf +%config(noreplace) %{_sysconfdir}/apparmor/severity.db +%{_sbindir}/aa-audit +%{_sbindir}/aa-autodep +%{_sbindir}/aa-cleanprof +%{_sbindir}/aa-complain +%{_sbindir}/aa-decode +%{_sbindir}/aa-disable +%{_sbindir}/aa-enforce +%{_sbindir}/aa-genprof +%{_sbindir}/aa-logprof +%{_sbindir}/aa-mergeprof +%{_sbindir}/aa-notify +%{_sbindir}/aa-remove-unknown +%{_sbindir}/aa-unconfined +%{_sbindir}/audit +%{_sbindir}/autodep +%{_sbindir}/complain +%{_sbindir}/decode +%{_sbindir}/disable +%{_sbindir}/enforce +%{_sbindir}/genprof +%{_sbindir}/logprof +%{_sbindir}/notify +%{_sbindir}/unconfined +%{_bindir}/aa-easyprof +%dir %{_datadir}/apparmor +%{_datadir}/apparmor/easyprof/ +%dir %{_localstatedir}/log/apparmor +%doc %{_mandir}/man5/logprof.conf.5.gz +%doc %{_mandir}/man8/apparmor_notify.8.gz +%doc %{_mandir}/man8/aa-audit.8.gz +%doc %{_mandir}/man8/aa-autodep.8.gz +%doc %{_mandir}/man8/aa-cleanprof.8.gz +%doc %{_mandir}/man8/aa-complain.8.gz +%doc %{_mandir}/man8/aa-decode.8.gz +%doc %{_mandir}/man8/aa-disable.8.gz +%doc %{_mandir}/man8/aa-easyprof.8.gz +%doc %{_mandir}/man8/aa-enforce.8.gz +%doc %{_mandir}/man8/aa-genprof.8.gz +%doc %{_mandir}/man8/aa-logprof.8.gz +%doc %{_mandir}/man8/aa-mergeprof.8.gz +%doc %{_mandir}/man8/aa-notify.8.gz +%doc %{_mandir}/man8/aa-remove-unknown.8.gz +%doc %{_mandir}/man8/aa-unconfined.8.gz +%doc %{_mandir}/man8/audit.8.gz +%doc %{_mandir}/man8/autodep.8.gz +%doc %{_mandir}/man8/complain.8.gz +%doc %{_mandir}/man8/disable.8.gz +%doc %{_mandir}/man8/easyprof.8.gz +%doc %{_mandir}/man8/enforce.8.gz +%doc %{_mandir}/man8/genprof.8.gz +%doc %{_mandir}/man8/logprof.8.gz +%doc %{_mandir}/man8/unconfined.8.gz +%doc utils/*.[0-9].html +%doc common/apparmor.css + +%files utils-lang -f apparmor-utils.lang + +%if %{with perl} +%files -n perl-apparmor +%defattr(-,root,root) +%{perl_vendorarch}/auto/LibAppArmor/ +%{perl_vendorarch}/LibAppArmor.pm +%endif + +%if %{with python3} + +%files -n python3-apparmor +%defattr(-,root,root) +%{python3_sitearch}/LibAppArmor-%{version}-py*.egg-info +%dir %{python3_sitearch}/LibAppArmor +%dir %{python3_sitearch}/LibAppArmor/__pycache__ +%{python3_sitearch}/LibAppArmor/_LibAppArmor.cpython-*.so +%{python3_sitearch}/LibAppArmor/__pycache__/__init__.cpython-*.pyc +%{python3_sitearch}/LibAppArmor/__pycache__/LibAppArmor.cpython-*.pyc +%{python3_sitearch}/LibAppArmor/__init__.py +%{python3_sitearch}/LibAppArmor/LibAppArmor.py +%{python3_sitelib}/apparmor/ +%{python3_sitelib}/apparmor-%{version}-py*.egg-info +%endif + +%if %{with ruby} + +%files -n ruby-apparmor +%defattr(-,root,root) +%{rb_sitearchdir}/LibAppArmor.so +%endif + +%if %{with pam} + +%files -n pam_apparmor +%defattr(444,root,root,755) +%attr(555,root,root) %{_pamdir}/pam_apparmor.so +%doc changehat/pam_apparmor/README +%endif + +%if %{with tomcat} + +%files -n tomcat_apparmor +%defattr(-,root,root) +%{CATALINA_HOME}/lib/%{JAR_FILE} +%{_libdir}/libJNI* +%doc %attr(0644,root,root) changehat/tomcat_apparmor/tomcat_5_5/README.tomcat_apparmor +%endif + +%if %{with apache} + +%files -n apache2-mod_apparmor +%defattr(-,root,root) +%{apache_libexecdir}/mod_apparmor.so +%doc %{_mandir}/man8/mod_apparmor.8.gz +%endif + +%post parser +%service_add_post apparmor.service + +%preun parser +%service_del_preun apparmor.service + +%postun parser +# don't call try-restart, see bnc#853019 +%if 0%{?suse_version} <= 1500 +export DISABLE_RESTART_ON_UPDATE="yes" +%service_del_postun apparmor.service +%else +%service_del_postun_without_restart apparmor.service +%endif + +%posttrans abstractions +# workaround for bnc#904620#c8 / lp#1392042 +rm -f /var/cache/apparmor/* 2>/dev/null +#restart_on_update apparmor - but non-broken (bnc#853019) +systemctl is-active -q apparmor && systemctl reload apparmor ||: + +%posttrans profiles +# workaround for bnc#904620#c8 / lp#1392042 +# old cache location up to 2.12 +rm -f /var/lib/apparmor/cache/* 2>/dev/null +# cache location starting with 2.13 +rm -f /var/cache/apparmor/* 2>/dev/null +#restart_on_update apparmor - but non-broken (bnc#853019) +systemctl is-active -q apparmor && systemctl reload apparmor ||: + +%if %{with tomcat} + +%post -n tomcat_apparmor -p /sbin/ldconfig + +%postun -n tomcat_apparmor -p /sbin/ldconfig +%endif + +%if %{with pam} + +%post -n pam_apparmor +if [ $1 -eq 1 ]; then + pam-config --add --apparmor || : +fi + +%postun -n pam_apparmor +if [ $1 -eq 0 ]; then + pam-config --delete --apparmor || : +fi +%endif + +%changelog diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..338277c --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,5 @@ +pam_apparmor + supplements "packageand(pam_apparmor:pam-)" +libapparmor1 + obsoletes "libapparmor- <= " + provides "libapparmor- = " diff --git a/dovecot-unix_chkpwd.diff b/dovecot-unix_chkpwd.diff new file mode 100644 index 0000000..499b8ae --- /dev/null +++ b/dovecot-unix_chkpwd.diff @@ -0,0 +1,53 @@ +Index: apparmor-3.1.6/profiles/apparmor.d/unix-chkpwd +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ apparmor-3.1.6/profiles/apparmor.d/unix-chkpwd 2024-01-29 21:53:27.234254724 +0100 +@@ -0,0 +1,31 @@ ++# apparmor.d - Full set of apparmor profiles ++# Copyright (C) 2019-2021 Mikhail Morfikov ++# SPDX-License-Identifier: GPL-2.0-only ++ ++# The apparmor.d project comes with several variables and abstractions ++# that are not part of upstream AppArmor yet. Therefore this profile was ++# adopted to use abstractions and variables that are available. ++# Copyright (C) Christian Boltz 2024 ++ ++abi , ++ ++include ++ ++profile unix-chkpwd /{,usr/}{,s}bin/unix_chkpwd { ++ include ++ include ++ ++ # To write records to the kernel auditing log. ++ capability audit_write, ++ ++ network netlink raw, ++ ++ /{,usr/}{,s}bin/unix_chkpwd mr, ++ ++ /etc/shadow r, ++ ++ # file_inherit ++ owner /dev/tty[0-9]* rw, ++ ++ include if exists ++} +Index: apparmor-3.1.6/profiles/apparmor.d/usr.lib.dovecot.auth +=================================================================== +--- apparmor-3.1.6.orig/profiles/apparmor.d/usr.lib.dovecot.auth 2023-06-21 23:13:41.000000000 +0200 ++++ apparmor-3.1.6/profiles/apparmor.d/usr.lib.dovecot.auth 2024-01-29 21:45:32.528140518 +0100 +@@ -52,8 +52,12 @@ profile dovecot-auth /usr/lib/dovecot/au + @{run}/dovecot/stats-user rw, + @{run}/dovecot/anvil-auth-penalty rw, + ++ owner /proc/@{pid}/loginuid r, ++ + /var/spool/postfix/private/auth rw, + ++ /usr/sbin/unix_chkpwd Px, ++ + # Site-specific additions and overrides. See local/README for details. + include if exists + } diff --git a/libapparmor.spec b/libapparmor.spec new file mode 100644 index 0000000..2c2a76a --- /dev/null +++ b/libapparmor.spec @@ -0,0 +1,119 @@ +# +# spec file for package libapparmor +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2011-2024 Christian Boltz +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libapparmor +Version: 3.1.7 +Release: 0 +Summary: Utility library for AppArmor +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://launchpad.net/apparmor +Source0: apparmor-%{version}.tar.gz +Source1: apparmor-%{version}.tar.gz.asc +BuildRequires: bison +BuildRequires: dejagnu +BuildRequires: flex +BuildRequires: pkg-config +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package provides the libapparmor library, which contains the +change_hat(2) symbol, used for sub-process confinement by AppArmor, as +well as functions to parse AppArmor log messages. + +%package -n libapparmor1 +Summary: Utility library for AppArmor +Group: System/Libraries +%ifarch ppc64 +Obsoletes: libapparmor-64bit < 2.9 +Provides: libapparmor-64bit = %{version} +%endif +Provides: libapparmor = %{version} +Obsoletes: libapparmor < 2.9 + +%description -n libapparmor1 +This package provides the libapparmor library, which contains the +change_hat(2) symbol, used for sub-process confinement by AppArmor, as +well as functions to parse AppArmor log messages. + +%package -n libapparmor-devel +Summary: Development headers and libraries for libapparmor +Group: Development/Libraries/C and C++ +Requires: libapparmor1 = %{version} +Provides: libapparmor:/usr/include/sys/apparmor.h + +%description -n libapparmor-devel +These libraries are needed for developing software that makes use of the +AppArmor API. + +%prep +%setup -q -n apparmor-%{version} + +%build +( + cd ./libraries/libapparmor + %configure \ + --without-perl \ + --without-python \ + --without-ruby \ + + make +) + +%check +make check -C libraries/libapparmor + +%install +%makeinstall -C libraries/libapparmor +# create symlink for old change_hat(2) manpage +( cd %{buildroot}/%{_mandir}/man2/ && ln -s aa_change_hat.2 change_hat.2 ) + +# remove *.la and *.a files +rm -fv %{buildroot}%{_libdir}/libapparmor.la +rm -fv %{buildroot}%{_libdir}/libapparmor.a + +%post -n libapparmor1 -p /sbin/ldconfig + +%postun -n libapparmor1 -p /sbin/ldconfig + +%files -n libapparmor1 +%defattr(-,root,root) +%{_libdir}/libapparmor.so.* + +%files -n libapparmor-devel +%defattr(-,root,root) +%{_libdir}/libapparmor.so +%{_libdir}/pkgconfig/libapparmor.pc +%doc %{_mandir}/man2/aa_change_hat.2.gz +%doc %{_mandir}/man2/aa_change_profile.2.gz +%doc %{_mandir}/man2/aa_stack_profile.2.gz +%doc %{_mandir}/man2/change_hat.2.gz +%doc %{_mandir}/man2/aa_find_mountpoint.2.gz +%doc %{_mandir}/man2/aa_getcon.2.gz +%doc %{_mandir}/man2/aa_query_label.2.gz +%doc %{_mandir}/man3/aa_features.3.gz +%doc %{_mandir}/man3/aa_kernel_interface.3.gz +%doc %{_mandir}/man3/aa_policy_cache.3.gz +%doc %{_mandir}/man3/aa_splitcon.3.gz +%dir %{_includedir}/aalogparse +%{_includedir}/sys/apparmor.h +%{_includedir}/sys/apparmor_private.h +%{_includedir}/aalogparse/* + +%changelog diff --git a/ruby-2_0-mkmf-destdir.patch b/ruby-2_0-mkmf-destdir.patch new file mode 100644 index 0000000..b159eb1 --- /dev/null +++ b/ruby-2_0-mkmf-destdir.patch @@ -0,0 +1,20 @@ +Index: libraries/libapparmor/swig/ruby/extconf.rb +=================================================================== +--- a/libraries/libapparmor/swig/ruby/extconf.rb.orig 2022-02-10 17:54:05.008544807 +0100 ++++ b/libraries/libapparmor/swig/ruby/extconf.rb 2022-02-10 17:54:21.792506325 +0100 +@@ -20,7 +20,14 @@ if find_library('apparmor', 'parse_recor + # hack 2: strip all rpath references + open('Makefile.ruby', 'w') do |out| + IO.foreach('Makefile') do |line| +- out.puts line.gsub(/-Wl,-R'[^']*'/, '') ++ l = line.gsub(/-Wl,-R'[^']*'/, '') ++ # oldincludedir = $(DESTDIR)/usr/include ++ # -> oldincludedir = /usr/include ++ l = l.gsub(/(oldincludedir)\s+=\s+\$\(DESTDIR\)(.*)/) { |m| "#{$1} = #{$2}" } ++ # hdrdir = $(includedir)/$(RUBY_VERSION_NAME) ++ # -> hdrdir = $(oldincludedir)/$(RUBY_VERSION_NAME) ++ l = l.gsub(/(hdrdir)\s+=\s+\$\(includedir\)(.*)/) { |m| "#{$1} = $(oldincludedir)#{$2}" } ++ out.puts l + end + end + else diff --git a/update-trans.sh b/update-trans.sh new file mode 100644 index 0000000..9372f75 --- /dev/null +++ b/update-trans.sh @@ -0,0 +1,71 @@ + +CFILES=" +deprecated/management/applets/apparmorapplet-gnome/src/apparmor-applet.c +deprecated/management/applets/apparmorapplet-gnome/src/preferences_dialog.c +deprecated/management/applets/apparmorapplet-gnome/src/reject_list.c +parser/parser_alias.c +parser/parser_include.c +parser/parser_interface.c +parser/parser_lex.l +parser/parser_main.c +parser/parser_merge.c +parser/parser_misc.c +parser/parser_policy.c +parser/parser_regex.c +parser/parser_symtab.c +parser/parser_variable.c +parser/parser_yacc.y +" + +CPPFILES=" +deprecated/management/profile-editor/src/AboutDialog.cpp +deprecated/management/profile-editor/src/AboutDialog.h +deprecated/management/profile-editor/src/Configuration.cpp +deprecated/management/profile-editor/src/Preferences.cpp +deprecated/management/profile-editor/src/Preferences.h +deprecated/management/profile-editor/src/profileeditor.cpp +deprecated/management/profile-editor/src/SearchAllProfiles.cpp +deprecated/management/profile-editor/src/SearchAllProfiles.h +parser/libapparmor_re/regexp.yy +" + +PERLFILES=" +utils/aa-repo.pl +utils/audit +utils/autodep +utils/complain +utils/enforce +utils/genprof +utils/logprof +utils/Reports.pm +utils/SubDomain.pm +utils/unconfined +" + +ARGS="--keyword=_ --keyword=N_ -n --force-po" + +xgettext $ARGS --output=apparmor-C.pot -L C $CFILES +xgettext $ARGS --output=apparmor-CPP.pot -L C++ $CPPFILES +xgettext $ARGS --output=apparmor-PERL.pot -L Perl $PERLFILES +msgcat apparmor-*.pot > apparmor.pot + +sed \ + -e 's/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: apparmor/g' \ + -e 's/PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE/PO-Revision-Date: 2009-02-05 13:38/' \ + -e 's/Report-Msgid-Bugs-To: /Report-Msgid-Bugs-To: apparmor-general@forge.novell.com/' \ + -e 's/Last-Translator: FULL NAME /Last-Translator: Novell Language /' \ + -e 's/Language-Team: LANGUAGE /Language-Team: Novell Language /' \ + -e 's/Content-Type: text\/plain; charset=CHARSET/Content-Type: text\/plain; charset=UTF-8/' \ + < apparmor.pot > apparmor.pot.new + mv apparmor.pot.new apparmor.pot + +for file in $(find . -name '*.po'); do + f=$(basename $file) + msgmerge -U apparmor.pot $file + if [ -e "po/$f" ]; then + msgcat $file po/$f > $f + mv $f po/$f + else + cp $file po/$f + fi +done