Skip to content

Commit 76bb089

Browse files
Tetsuo Handaxjamesmorris
authored andcommitted
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>
1 parent bf24fb0 commit 76bb089

8 files changed

Lines changed: 351 additions & 397 deletions

File tree

‎security/tomoyo/common.c‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include <linux/security.h>
1414
#include <linux/hardirq.h>
1515
#include "common.h"
16-
#include "realpath.h"
17-
#include "tomoyo.h"
1816

1917
/* Lock for protecting policy. */
2018
DEFINE_MUTEX(tomoyo_policy_lock);
@@ -1039,27 +1037,6 @@ static int tomoyo_read_profile(struct tomoyo_io_buffer *head)
10391037
return 0;
10401038
}
10411039

1042-
/*
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-
*/
1055-
struct 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-
10631040
/*
10641041
* tomoyo_policy_manager_list is used for holding list of domainnames or
10651042
* programs which are permitted to modify configuration via

0 commit comments

Comments
 (0)