[apparmor] [PATCH 5/6] Update change_hatv and change_hat_vargs prototypes to use long

John Johansen john.johansen at canonical.com
Fri Feb 18 01:22:19 UTC 2011


Signed-off-by: John Johansen <john.johansen at canonical.com>
---
 libraries/libapparmor/src/apparmor.h          |    4 ++--
 libraries/libapparmor/swig/SWIG/libapparmor.i |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libraries/libapparmor/src/apparmor.h b/libraries/libapparmor/src/apparmor.h
index abb4c8a..4f6e465 100644
--- a/libraries/libapparmor/src/apparmor.h
+++ b/libraries/libapparmor/src/apparmor.h
@@ -23,8 +23,8 @@ extern int aa_change_hat(const char *subprofile, unsigned long magic_token);
 extern int aa_change_profile(const char *profile);
 extern int aa_change_onexec(const char *profile);
 
-extern int aa_change_hatv(const char *subprofiles[], unsigned int token);
-extern int (aa_change_hat_vargs)(unsigned int token, int count, ...);
+extern int aa_change_hatv(const char *subprofiles[], unsigned long token);
+extern int (aa_change_hat_vargs)(unsigned long token, int count, ...);
 
 #define __macroarg_counter(Y...) __macroarg_count1 ( , ##Y)
 #define __macroarg_count1(Y...) __macroarg_count2 (Y, 16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)
diff --git a/libraries/libapparmor/swig/SWIG/libapparmor.i b/libraries/libapparmor/swig/SWIG/libapparmor.i
index f6d1001..1f2ede3 100644
--- a/libraries/libapparmor/swig/SWIG/libapparmor.i
+++ b/libraries/libapparmor/swig/SWIG/libapparmor.i
@@ -16,6 +16,6 @@
 extern int aa_change_hat(const char *subprofile, unsigned long magic_token);
 extern int aa_change_profile(const char *profile);
 extern int aa_change_onexec(const char *profile);
-extern int aa_change_hatv(const char *subprofiles[], unsigned int token);
-extern int aa_change_hat_vargs(unsigned int token, int count, ...);
+extern int aa_change_hatv(const char *subprofiles[], unsigned long token);
+extern int aa_change_hat_vargs(unsigned long token, int count, ...);
 
-- 
1.7.1




More information about the AppArmor mailing list