[apparmor] [PATCH 4/4] libapparmor: Provide privately exported aa_is_blacklisted() through swig
Tyler Hicks
tyhicks at canonical.com
Tue Jun 16 00:33:16 UTC 2015
Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
libraries/libapparmor/swig/SWIG/libapparmor.i | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libraries/libapparmor/swig/SWIG/libapparmor.i b/libraries/libapparmor/swig/SWIG/libapparmor.i
index 6a44f50..e5c39bd 100644
--- a/libraries/libapparmor/swig/SWIG/libapparmor.i
+++ b/libraries/libapparmor/swig/SWIG/libapparmor.i
@@ -3,6 +3,7 @@
%{
#include <aalogparse.h>
#include <sys/apparmor.h>
+#include <sys/apparmor_private.h>
%}
@@ -19,10 +20,12 @@
}
#endif
-/* swig doesn't like the macro magic we do in apparmor.h so the fn prototypes
- * are manually inserted here
+/* swig doesn't like the macro magic we do in apparmor.h an apparmor_private.h
+ * so the fn prototypes are manually inserted here
*/
+/* apparmor.h */
+
extern int aa_is_enabled(void);
extern int aa_find_mountpoint(char **mnt);
extern int aa_change_hat(const char *subprofile, unsigned long magic_token);
@@ -52,4 +55,8 @@ extern int aa_query_link_path_len(const char *label, size_t label_len,
extern int aa_query_link_path(const char *label, const char *target,
const char *link, int *allowed, int *audited);
+/* apparmor_private.h */
+
+extern int _aa_is_blacklisted(const char *name, const char *path);
+
%exception;
--
2.1.4
More information about the AppArmor
mailing list