5 |
* |
* |
6 |
* Copyright (C) 2005-2008 NTT DATA CORPORATION |
* Copyright (C) 2005-2008 NTT DATA CORPORATION |
7 |
* |
* |
8 |
* Version: 1.6.5 2008/11/11 |
* Version: 1.6.6-pre 2008/12/01 |
9 |
* |
* |
10 |
* This file is applicable to both 2.4.30 and 2.6.11 and later. |
* This file is applicable to both 2.4.30 and 2.6.11 and later. |
11 |
* See README.ccs for ChangeLog. |
* See README.ccs for ChangeLog. |
1419 |
struct task_struct *task = current; |
struct task_struct *task = current; |
1420 |
char *buffer = r->obj->tmp->buffer; |
char *buffer = r->obj->tmp->buffer; |
1421 |
/* Allocate memory for execute handler's pathname. */ |
/* Allocate memory for execute handler's pathname. */ |
1422 |
char *execute_handler = ccs_alloc(sizeof(struct ccs_page_buffer)); |
char *execute_handler = ccs_alloc(sizeof(struct ccs_page_buffer), |
1423 |
|
false); |
1424 |
*eh_path = execute_handler; |
*eh_path = execute_handler; |
1425 |
if (!execute_handler) |
if (!execute_handler) |
1426 |
return -ENOMEM; |
return -ENOMEM; |
1684 |
* Thus, keep valid until search_binary_handler() finishes. |
* Thus, keep valid until search_binary_handler() finishes. |
1685 |
*/ |
*/ |
1686 |
char *eh_path = NULL; |
char *eh_path = NULL; |
1687 |
struct ccs_page_buffer *tmp = ccs_alloc(sizeof(struct ccs_page_buffer)); |
struct ccs_page_buffer *tmp = ccs_alloc(sizeof(struct ccs_page_buffer), |
1688 |
|
false); |
1689 |
memset(&obj, 0, sizeof(obj)); |
memset(&obj, 0, sizeof(obj)); |
1690 |
if (!sbin_init_started) |
if (!sbin_init_started) |
1691 |
ccs_load_policy(bprm->filename); |
ccs_load_policy(bprm->filename); |