aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-02-10 19:42:40 -0500
committerJames Morris <jmorris@namei.org>2010-02-14 17:00:18 -0500
commit76bb0895d038be7bcdb6ccfcd2dd7deb30371d6b (patch)
tree5948c68b08561deb20d155853faed475a15a4235 /security/tomoyo/common.c
parentbf24fb016c861b7f52be0c36c4cedd3e89afa2e2 (diff)
TOMOYO: Merge headers.
Gather structures and constants scattered around security/tomoyo/ directory. This is for preparation for adding garbage collector since garbage collector needs to know structures and constants which TOMOYO uses. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.c')
-rw-r--r--security/tomoyo/common.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c
index 0c7ea51e7a45..634f7449e8ba 100644
--- a/security/tomoyo/common.c
+++ b/security/tomoyo/common.c
@@ -13,8 +13,6 @@
13#include <linux/security.h> 13#include <linux/security.h>
14#include <linux/hardirq.h> 14#include <linux/hardirq.h>
15#include "common.h" 15#include "common.h"
16#include "realpath.h"
17#include "tomoyo.h"
18 16
19/* Lock for protecting policy. */ 17/* Lock for protecting policy. */
20DEFINE_MUTEX(tomoyo_policy_lock); 18DEFINE_MUTEX(tomoyo_policy_lock);
@@ -1040,27 +1038,6 @@ static int tomoyo_read_profile(struct tomoyo_io_buffer *head)
1040} 1038}
1041 1039
1042/* 1040/*
1043 * tomoyo_policy_manager_entry is a structure which is used for holding list of
1044 * domainnames or programs which are permitted to modify configuration via
1045 * /sys/kernel/security/tomoyo/ interface.
1046 * It has following fields.
1047 *
1048 * (1) "list" which is linked to tomoyo_policy_manager_list .
1049 * (2) "manager" is a domainname or a program's pathname.
1050 * (3) "is_domain" is a bool which is true if "manager" is a domainname, false
1051 * otherwise.
1052 * (4) "is_deleted" is a bool which is true if marked as deleted, false
1053 * otherwise.
1054 */
1055struct tomoyo_policy_manager_entry {
1056 struct list_head list;
1057 /* A path to program or a domainname. */
1058 const struct tomoyo_path_info *manager;
1059 bool is_domain; /* True if manager is a domainname. */
1060 bool is_deleted; /* True if this entry is deleted. */
1061};
1062
1063/*
1064 * tomoyo_policy_manager_list is used for holding list of domainnames or 1041 * tomoyo_policy_manager_list is used for holding list of domainnames or
1065 * programs which are permitted to modify configuration via 1042 * programs which are permitted to modify configuration via
1066 * /sys/kernel/security/tomoyo/ interface. 1043 * /sys/kernel/security/tomoyo/ interface.