00001 /** 00002 * @file 00003 * Defines the interface for the attributes without rules module. 00004 * 00005 * @author Kevin Carr kcarr@tresys.com 00006 * @author Jeremy A. Mowery jmowery@tresys.com 00007 * @author Jason Tang jtang@tresys.com 00008 * 00009 * Copyright (C) 2005-2007 Tresys Technology, LLC 00010 * 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 */ 00025 00026 #ifndef ATTRIBS_WO_RULES 00027 #define ATTRIBS_WO_RULES 00028 00029 #ifdef __cplusplus 00030 extern "C" 00031 { 00032 #endif 00033 00034 #include "sechecker.h" 00035 #include <apol/policy.h> 00036 #include <apol/role-query.h> 00037 #include <apol/avrule-query.h> 00038 #include <apol/terule-query.h> 00039 #include <apol/type-query.h> 00040 00041 /* Module functions: 00042 * Do not change any of these prototypes or you will not be 00043 * able to run the module in the library 00044 * NOTE: while using a modular format SEChecker is built 00045 * statically; this means that all modules and their functions 00046 * are in the same namespace. */ 00047 int attribs_wo_rules_register(sechk_lib_t * lib); 00048 int attribs_wo_rules_init(sechk_module_t * mod, apol_policy_t * policy, void *arg); 00049 int attribs_wo_rules_run(sechk_module_t * mod, apol_policy_t * policy, void *arg); 00050 int attribs_wo_rules_print(sechk_module_t * mod, apol_policy_t * policy, void *arg); 00051 00052 /* NOTE: While SEChecker is build statically, it is 00053 * intended that no module directly call a function 00054 * from another but instead use get_module_function() 00055 * to get the desired function from the library. */ 00056 00057 int attribs_wo_rules_get_list(sechk_module_t * mod, apol_policy_t * policy, void *arg); 00058 00059 #ifdef __cplusplus 00060 } 00061 #endif 00062 00063 #endif