aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/domain.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-05-16 21:12:46 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:33:39 -0400
commitc3ef1500ec833890275172c7d063333404b64d60 (patch)
tree2453368e521a1f7a00098eef06afbedb8404503d /security/tomoyo/domain.c
parent17fcfbd9d45b57f38d40e31f9d28db53f4af5c88 (diff)
TOMOYO: Split files into some pieces.
security/tomoyo/common.c became too large to read. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/domain.c')
-rw-r--r--security/tomoyo/domain.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index 7e242d27da5a..08428bc082df 100644
--- a/security/tomoyo/domain.c
+++ b/security/tomoyo/domain.c
@@ -1,12 +1,9 @@
1/* 1/*
2 * security/tomoyo/domain.c 2 * security/tomoyo/domain.c
3 * 3 *
4 * Implementation of the Domain-Based Mandatory Access Control. 4 * Domain transition functions for TOMOYO.
5 *
6 * Copyright (C) 2005-2009 NTT DATA CORPORATION
7 *
8 * Version: 2.2.0 2009/04/01
9 * 5 *
6 * Copyright (C) 2005-2010 NTT DATA CORPORATION
10 */ 7 */
11 8
12#include "common.h" 9#include "common.h"
@@ -697,24 +694,11 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm)
697 struct tomoyo_path_info rn; /* real name */ 694 struct tomoyo_path_info rn; /* real name */
698 struct tomoyo_path_info sn; /* symlink name */ 695 struct tomoyo_path_info sn; /* symlink name */
699 struct tomoyo_path_info ln; /* last name */ 696 struct tomoyo_path_info ln; /* last name */
700 static bool initialized;
701 697
702 tomoyo_init_request_info(&r, NULL); 698 tomoyo_init_request_info(&r, NULL);
703 if (!tmp) 699 if (!tmp)
704 goto out; 700 goto out;
705 701
706 if (!initialized) {
707 /*
708 * Built-in initializers. This is needed because policies are
709 * not loaded until starting /sbin/init.
710 */
711 tomoyo_update_domain_initializer_entry(NULL, "/sbin/hotplug",
712 false, false);
713 tomoyo_update_domain_initializer_entry(NULL, "/sbin/modprobe",
714 false, false);
715 initialized = true;
716 }
717
718 retry: 702 retry:
719 /* Get tomoyo_realpath of program. */ 703 /* Get tomoyo_realpath of program. */
720 retval = -ENOENT; 704 retval = -ENOENT;