apparmor/kernel-patches/for-mainline/export-profile-list.diff
2007-02-21 01:08:46 +00:00

29 lines
907 B
Diff

Index: b/security/apparmor/apparmor.h
===================================================================
--- a/security/apparmor/apparmor.h
+++ b/security/apparmor/apparmor.h
@@ -119,6 +119,9 @@ struct aa_profile {
struct kref count;
};
+extern struct list_head profile_list;
+extern rwlock_t profile_list_lock;
+
/**
* struct aa_task_context - primary label for confined tasks
* @profile: the current profile
Index: b/security/apparmor/list.c
===================================================================
--- a/security/apparmor/list.c
+++ b/security/apparmor/list.c
@@ -14,8 +14,8 @@
#include "inline.h"
/* list of all profiles and lock */
-static LIST_HEAD(profile_list);
-static rwlock_t profile_list_lock = RW_LOCK_UNLOCKED;
+LIST_HEAD(profile_list);
+rwlock_t profile_list_lock = RW_LOCK_UNLOCKED;
/* list of all task_contexts and lock */
static LIST_HEAD(task_context_list);