16cd6a6acSopenharmony_ci/* 26cd6a6acSopenharmony_ci * Authors: Chad Sellers <csellers@tresys.com> 36cd6a6acSopenharmony_ci * Joshua Brindle <jbrindle@tresys.com> 46cd6a6acSopenharmony_ci * Chris PeBenito <cpebenito@tresys.com> 56cd6a6acSopenharmony_ci * 66cd6a6acSopenharmony_ci * Copyright (C) 2006 Tresys Technology, LLC 76cd6a6acSopenharmony_ci * 86cd6a6acSopenharmony_ci * This library is free software; you can redistribute it and/or 96cd6a6acSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 106cd6a6acSopenharmony_ci * License as published by the Free Software Foundation; either 116cd6a6acSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 126cd6a6acSopenharmony_ci * 136cd6a6acSopenharmony_ci * This library is distributed in the hope that it will be useful, 146cd6a6acSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 156cd6a6acSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 166cd6a6acSopenharmony_ci * Lesser General Public License for more details. 176cd6a6acSopenharmony_ci * 186cd6a6acSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 196cd6a6acSopenharmony_ci * License along with this library; if not, write to the Free Software 206cd6a6acSopenharmony_ci * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 216cd6a6acSopenharmony_ci */ 226cd6a6acSopenharmony_ci 236cd6a6acSopenharmony_ci#include "test-expander-roles.h" 246cd6a6acSopenharmony_ci#include "test-common.h" 256cd6a6acSopenharmony_ci#include "helpers.h" 266cd6a6acSopenharmony_ci 276cd6a6acSopenharmony_ci#include <sepol/policydb/policydb.h> 286cd6a6acSopenharmony_ci#include <CUnit/Basic.h> 296cd6a6acSopenharmony_ci#include <stdlib.h> 306cd6a6acSopenharmony_ci 316cd6a6acSopenharmony_ciextern policydb_t role_expanded; 326cd6a6acSopenharmony_ci 336cd6a6acSopenharmony_civoid test_expander_role_mapping(void) 346cd6a6acSopenharmony_ci{ 356cd6a6acSopenharmony_ci const char *types1[] = { "role_check_1_1_t", "role_check_1_2_t" }; 366cd6a6acSopenharmony_ci 376cd6a6acSopenharmony_ci test_role_type_set(&role_expanded, "role_check_1", NULL, types1, 2, 0); 386cd6a6acSopenharmony_ci} 39