| 1 |
/* |
| 2 |
* Authors: Chad Sellers <[email protected]> |
| 3 |
* Joshua Brindle <[email protected]> |
| 4 |
* Chris PeBenito <[email protected]> |
| 5 |
* |
| 6 |
* Copyright (C) 2006 Tresys Technology, LLC |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Lesser General Public |
| 10 |
* License as published by the Free Software Foundation; either |
| 11 |
* version 2.1 of the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public |
| 19 |
* License along with this library; if not, write to the Free Software |
| 20 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 |
*/ |
| 22 |
|
| 23 |
#include "test-expander-roles.h" |
| 24 |
#include "test-common.h" |
| 25 |
#include "helpers.h" |
| 26 |
|
| 27 |
#include <sepol/policydb/policydb.h> |
| 28 |
#include <CUnit/Basic.h> |
| 29 |
#include <stdlib.h> |
| 30 |
|
| 31 |
extern policydb_t role_expanded; |
| 32 |
|
| 33 |
void test_expander_role_mapping(void) |
| 34 |
{ |
| 35 |
const char *types1[] = { "role_check_1_1_t", "role_check_1_2_t" }; |
| 36 |
|
| 37 |
test_role_type_set(&role_expanded, "role_check_1", NULL, types1, 2, 0); |
| 38 |
} |