[apparmor] [patch] apparmor-utils: Add Immunix::SubDomain alias (apparmor-utils-subdomain-compat)

Christian Boltz apparmor at cboltz.de
Mon Aug 8 22:24:54 UTC 2011


Hello,

this openSUSE patch will preserve backward compatibility for code using
Immunix::SubDomain.


From: Jeff Mahoney <jeffm at suse.com>                                                                                                                                             
Subject: apparmor-utils: Add Immunix::SubDomain alias

 This patch adds an alias so that 'use Immunix::SubDomain;' works with older
 code.

Acked-by: Jeff Mahoney <jeffm at suse.com>
---

 utils/Immunix/SubDomain.pm |    5 +++++
 1 file changed, 5 insertions(+)
 
--- /dev/null
+++ b/utils/Immunix/SubDomain.pm
@@ -0,0 +1,5 @@
+# Use of Immunix::SubDomain is deprecated. 
+# Use Immunix::AppArmor directly instead.
+use Immunix::AppArmor;
+*Immunix::SubDomain:: = *Immunix::AppArmor::;
+1;



Regards,

Christian Boltz
-- 
Um es auf dein Beispiel zu übertragen: [...] - oder -
Wir stehen sowieso mit runtergelassener Unterhose mitten auf der
Autobahn 7 und es ist relativ egal, ob wir jetzt noch eine Gummi-Hupe
und eine Taschenlampe in der Hand halten, während ein Tanklaster auf
uns zuhält. [Ratti in fontlinge-devel]



More information about the AppArmor mailing list