- Update to AppArmor 4.0.1 Too many changes to list them here. See https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.0.1 for the detailed upstream release notes - add tools-fix-redefinition.diff: fix redefinition of _ in tools - add test-aa-notify.diff: relax test-aa-notify to avoid a mismatch with argparse on Leap 15.5 - drop upstreamed patches: - apparmor-abstractions-openssl-allow-version-specific-en.patch - dovecot-unix_chkpwd.diff - smbd-unix_chkpwd.diff - apparmor-lessopen-profile.patch: update lessopen profile to abi/4.0 - mark local/* as %ghost so that these dummy files don't get installed anymore (changed existing local/files will be kept, unchanged files will be deleted) - switch to gitlab tarballs (without pregenerated libapparmor configure script and prebuilt techdoc.pdf) - run libapparmor autogen.sh (needs additional BuildRequires autoconf, autoconf-archive, automake and libtool) - no longer package techdoc.pdf - old documentation, not worth the texlive BuildRequires we would need to build it - drop old (up to 2.12) cache location /var/lib/apparmor/ and the /etc/apparmor.d/cache symlink pointing to it - drop apparmor-samba-include-permissions-for-shares.diff - no longer needed, update-apparmor-samba-profile in Tumbleweed works without a pre-existing local/usr.sbin.smbd-shares file - drop ruby-2_0-mkmf-destdir.patch - this ancient patch doesn't change a single bit in the resulting build (anymore?) - drop apparmor-lessopen-nfs-workaround.diff - no longer needed OBS-URL: https://build.opensuse.org/request/show/1176504 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=404
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From 553acd22324ed013d9f468aa8585518cf68b34f7 Mon Sep 17 00:00:00 2001
|
|
From: Christian Boltz <apparmor@cboltz.de>
|
|
Date: Sun, 21 Apr 2024 17:32:24 +0200
|
|
Subject: [PATCH] Fix redefinition of _
|
|
|
|
... which unsurprisingly broke using the translations.
|
|
|
|
This was a regression introduced in 4f51c93f9dc2516a32bfccc79b4dcf4985e61f47
|
|
|
|
Fixes: https://gitlab.com/apparmor/apparmor/-/issues/387
|
|
---
|
|
utils/apparmor/tools.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/utils/apparmor/tools.py b/utils/apparmor/tools.py
|
|
index e8a99bbe6..f7d4a0d36 100644
|
|
--- a/utils/apparmor/tools.py
|
|
+++ b/utils/apparmor/tools.py
|
|
@@ -90,7 +90,7 @@ class aa_tools:
|
|
def get_next_for_modechange(self):
|
|
"""common code for mode/flags changes"""
|
|
|
|
- for (program, _, prof_filename) in self.get_next_to_profile():
|
|
+ for (program, ignored, prof_filename) in self.get_next_to_profile():
|
|
output_name = prof_filename if program is None else program
|
|
|
|
if not os.path.isfile(prof_filename) or is_skippable_file(prof_filename):
|
|
@@ -162,7 +162,7 @@ class aa_tools:
|
|
def cmd_autodep(self):
|
|
apparmor.loadincludes()
|
|
|
|
- for (program, _, prof_filename) in self.get_next_to_profile():
|
|
+ for (program, ignored, prof_filename) in self.get_next_to_profile():
|
|
if not program:
|
|
aaui.UI_Info(_('Please pass an application to generate a profile for, not a profile itself - skipping %s.') % prof_filename)
|
|
continue
|
|
--
|
|
GitLab
|
|
|