From c3ef1500ec833890275172c7d063333404b64d60 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Mon, 17 May 2010 10:12:46 +0900 Subject: TOMOYO: Split files into some pieces. security/tomoyo/common.c became too large to read. Signed-off-by: Tetsuo Handa Signed-off-by: James Morris --- security/tomoyo/domain.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'security/tomoyo/domain.c') 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 @@ /* * security/tomoyo/domain.c * - * Implementation of the Domain-Based Mandatory Access Control. - * - * Copyright (C) 2005-2009 NTT DATA CORPORATION - * - * Version: 2.2.0 2009/04/01 + * Domain transition functions for TOMOYO. * + * Copyright (C) 2005-2010 NTT DATA CORPORATION */ #include "common.h" @@ -697,24 +694,11 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm) struct tomoyo_path_info rn; /* real name */ struct tomoyo_path_info sn; /* symlink name */ struct tomoyo_path_info ln; /* last name */ - static bool initialized; tomoyo_init_request_info(&r, NULL); if (!tmp) goto out; - if (!initialized) { - /* - * Built-in initializers. This is needed because policies are - * not loaded until starting /sbin/init. - */ - tomoyo_update_domain_initializer_entry(NULL, "/sbin/hotplug", - false, false); - tomoyo_update_domain_initializer_entry(NULL, "/sbin/modprobe", - false, false); - initialized = true; - } - retry: /* Get tomoyo_realpath of program. */ retval = -ENOENT; -- cgit v1.2.2