dta-tests.h File Reference


Detailed Description

Declarations for libapol domain transition analysis tests.

Author:
Jeremy A. Mowery jmowery@tresys.com

Jason Tang jtang@tresys.com

Copyright (C) 2007 Tresys Technology, LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file dta-tests.h.

#include <CUnit/CUnit.h>

Go to the source code of this file.


Functions

int dta_init ()
int dta_cleanup ()

Variables

CU_TestInfo dta_tests []

Function Documentation

int dta_init  ) 
 

Definition at line 505 of file dta-tests.c.

References apol_policy_build_domain_trans_table(), apol_policy_create_from_policy_path(), apol_policy_path_create(), apol_policy_path_destroy(), apol_policy_path_t, APOL_POLICY_PATH_TYPE_MONOLITHIC, p, POLICY, and QPOL_POLICY_OPTION_NO_NEVERALLOWS.

00506 {
00507         apol_policy_path_t *ppath = apol_policy_path_create(APOL_POLICY_PATH_TYPE_MONOLITHIC, POLICY, NULL);
00508         if (ppath == NULL) {
00509                 return 1;
00510         }
00511 
00512         if ((p = apol_policy_create_from_policy_path(ppath, QPOL_POLICY_OPTION_NO_NEVERALLOWS, NULL, NULL)) == NULL) {
00513                 apol_policy_path_destroy(&ppath);
00514                 return 1;
00515         }
00516         apol_policy_path_destroy(&ppath);
00517 
00518         int retval = apol_policy_build_domain_trans_table(p);
00519         if (retval != 0) {
00520                 return 1;
00521         }
00522         return 0;
00523 }

int dta_cleanup  ) 
 

Definition at line 525 of file dta-tests.c.

References apol_policy_destroy(), and p.

00526 {
00527         apol_policy_destroy(&p);
00528         return 0;
00529 }


Variable Documentation

CU_TestInfo dta_tests[]
 

Definition at line 487 of file dta-tests.c.

Referenced by main().