[apparmor] [PATCH 1/2] Introduce UI_Changes functions.
Christian Boltz
apparmor at cboltz.de
Wed Oct 25 22:12:25 UTC 2017
Hello,
Am Montag, 23. Oktober 2017, 12:38:33 CEST schrieb Goldwyn Rodrigues:
> From: Goldwyn Rodrigues <rgoldwyn at suse.com>
>
> This is a preparation patch to use for JSON mode of conveying
> diff filename. In this patch we move diff generation functions to UI.
> In the process, I have cleaned up the code to reduce code and enable
> reuse.
>
> Remove unused function get_profile_diff().
>
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn at suse.com>
Acked-by: Christian Boltz <apparmor at cboltz.de>
on the condition that someone acks this small patch to avoid breaking
aa-mergeprof.
Hint: Whenever you delete a function, grep -r for it ;-)
=== modified file 'utils/aa-mergeprof'
--- utils/aa-mergeprof 2017-03-02 21:21:53 +0000
+++ utils/aa-mergeprof 2017-10-25 22:01:19 +0000
@@ -128,7 +128,7 @@
apparmor.aa.original_aa[program] = apparmor.aa.deepcopy(apparmor.aa.aa[program])
#oldprofile = apparmor.serialize_profile(apparmor.original_aa[program], program, '')
newprofile = apparmor.aa.serialize_profile(mergeprofiles.user.aa[program], program, '')
- apparmor.aa.display_changes_with_comments(mergeprofiles.user.filename, newprofile)
+ aaui.UI_Changes(mergeprofiles.user.filename, newprofile, comments=True)
elif ans == 'CMD_IGNORE_ENTRY':
break
(I'll commit this together with the main patch.)
Regards,
Christian Boltz
--
> ...womit die Geschichte wieder von vorn losgeht...
Jaha, aber nun ist das eine vollkommen andere Situation: Jetzt hast Du
nämlich eine von Suse generierte kdmrc für ein von Suse geliefertes KDE,
und KDE ist eine vom Installationssupport abgedeckte Komponente.
Also ist das ein meldefähiger und supportberechtigter Bug! :-)
[> Gerald Martin und Kristian Köhntopp in suse-linux]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20171026/0b13e9a6/attachment-0001.sig>
More information about the AppArmor
mailing list