diff options
| author | Robert Richter <robert.richter@amd.com> | 2010-10-25 10:28:14 -0400 | 
|---|---|---|
| committer | Robert Richter <robert.richter@amd.com> | 2010-10-25 10:29:12 -0400 | 
| commit | dbd1e66e04558a582e673bc4a9cd933ce0228d93 (patch) | |
| tree | 85f3633276282cde0a3ac558d988704eaa3e68af /security/tomoyo/common.c | |
| parent | 328b8f1ba50b708a1b3c0acd7c41ee1b356822f6 (diff) | |
| parent | 4a60cfa9457749f7987fd4f3c956dbba5a281129 (diff) | |
Merge commit 'linux-2.6/master' (early part) into oprofile/core
This branch depends on these apic patches:
      apic, x86: Use BIOS settings for IBS and MCE threshold interrupt LVT offsets
      apic, x86: Check if EILVT APIC registers are available (AMD only)
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'security/tomoyo/common.c')
| -rw-r--r-- | security/tomoyo/common.c | 17 | 
1 files changed, 14 insertions, 3 deletions
| diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index c668b447c725..7556315c1978 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c | |||
| @@ -768,8 +768,10 @@ static bool tomoyo_select_one(struct tomoyo_io_buffer *head, const char *data) | |||
| 768 | return true; /* Do nothing if open(O_WRONLY). */ | 768 | return true; /* Do nothing if open(O_WRONLY). */ | 
| 769 | memset(&head->r, 0, sizeof(head->r)); | 769 | memset(&head->r, 0, sizeof(head->r)); | 
| 770 | head->r.print_this_domain_only = true; | 770 | head->r.print_this_domain_only = true; | 
| 771 | head->r.eof = !domain; | 771 | if (domain) | 
| 772 | head->r.domain = &domain->list; | 772 | head->r.domain = &domain->list; | 
| 773 | else | ||
| 774 | head->r.eof = 1; | ||
| 773 | tomoyo_io_printf(head, "# select %s\n", data); | 775 | tomoyo_io_printf(head, "# select %s\n", data); | 
| 774 | if (domain && domain->is_deleted) | 776 | if (domain && domain->is_deleted) | 
| 775 | tomoyo_io_printf(head, "# This is a deleted domain.\n"); | 777 | tomoyo_io_printf(head, "# This is a deleted domain.\n"); | 
| @@ -2051,13 +2053,22 @@ void tomoyo_check_profile(void) | |||
| 2051 | const u8 profile = domain->profile; | 2053 | const u8 profile = domain->profile; | 
| 2052 | if (tomoyo_profile_ptr[profile]) | 2054 | if (tomoyo_profile_ptr[profile]) | 
| 2053 | continue; | 2055 | continue; | 
| 2056 | printk(KERN_ERR "You need to define profile %u before using it.\n", | ||
| 2057 | profile); | ||
| 2058 | printk(KERN_ERR "Please see http://tomoyo.sourceforge.jp/2.3/ " | ||
| 2059 | "for more information.\n"); | ||
| 2054 | panic("Profile %u (used by '%s') not defined.\n", | 2060 | panic("Profile %u (used by '%s') not defined.\n", | 
| 2055 | profile, domain->domainname->name); | 2061 | profile, domain->domainname->name); | 
| 2056 | } | 2062 | } | 
| 2057 | tomoyo_read_unlock(idx); | 2063 | tomoyo_read_unlock(idx); | 
| 2058 | if (tomoyo_profile_version != 20090903) | 2064 | if (tomoyo_profile_version != 20090903) { | 
| 2065 | printk(KERN_ERR "You need to install userland programs for " | ||
| 2066 | "TOMOYO 2.3 and initialize policy configuration.\n"); | ||
| 2067 | printk(KERN_ERR "Please see http://tomoyo.sourceforge.jp/2.3/ " | ||
| 2068 | "for more information.\n"); | ||
| 2059 | panic("Profile version %u is not supported.\n", | 2069 | panic("Profile version %u is not supported.\n", | 
| 2060 | tomoyo_profile_version); | 2070 | tomoyo_profile_version); | 
| 2071 | } | ||
| 2061 | printk(KERN_INFO "TOMOYO: 2.3.0\n"); | 2072 | printk(KERN_INFO "TOMOYO: 2.3.0\n"); | 
| 2062 | printk(KERN_INFO "Mandatory Access Control activated.\n"); | 2073 | printk(KERN_INFO "Mandatory Access Control activated.\n"); | 
| 2063 | } | 2074 | } | 
