diff options
author | Miroslav Grepl <mgrepl@redhat.com> | 2014-04-11 09:37:53 +0200 |
---|---|---|
committer | Miroslav Grepl <mgrepl@redhat.com> | 2014-04-11 09:37:53 +0200 |
commit | 47be9ff57e72906660bb62a515222f482131e1fb (patch) | |
tree | 2cb0ef0ba48d73b1df7cc0915754a17e19464bb6 /sechecker/register_list.h | |
download | setools-master.tar.gz setools-master.tar.xz setools-master.zip |
Create setools-3.3.7 git repomaster
Diffstat (limited to 'sechecker/register_list.h')
-rw-r--r-- | sechecker/register_list.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sechecker/register_list.h b/sechecker/register_list.h new file mode 100644 index 0000000..0a0a6fc --- /dev/null +++ b/sechecker/register_list.h @@ -0,0 +1,64 @@ +/* Copyright (C) 2005-2007 Tresys Technology, LLC + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/* + * Author: jmowery@tresys.com + * + */ + +#ifndef SECHK_REGISTER_LIST_H +#define SECHK_REGISTER_LIST_H + +#include "sechecker.h" + +/* TODO: to add a module declare it's register function as + * extern int <module_name>_register(sechk_lib_t *lib); + * here and add it's address to the array in register_list.c + * don't forget to add any necessary options to the config file */ + +/* extern register functions declarations */ +extern int find_domains_register(sechk_lib_t * lib); +extern int find_file_types_register(sechk_lib_t * lib); +extern int domain_and_file_register(sechk_lib_t * lib); +extern int attribs_wo_types_register(sechk_lib_t * lib); +extern int roles_wo_types_register(sechk_lib_t * lib); +extern int users_wo_roles_register(sechk_lib_t * lib); +extern int roles_wo_allow_register(sechk_lib_t * lib); +extern int types_wo_allow_register(sechk_lib_t * lib); +extern int spurious_audit_register(sechk_lib_t * lib); +extern int attribs_wo_rules_register(sechk_lib_t * lib); +extern int inc_mount_register(sechk_lib_t * lib); +extern int roles_wo_users_register(sechk_lib_t * lib); +/* Deprecated * + extern int rules_exp_nothing_register(sechk_lib_t *lib); +*/ +extern int domains_wo_roles_register(sechk_lib_t * lib); +extern int inc_dom_trans_register(sechk_lib_t * lib); +extern int find_port_types_register(sechk_lib_t * lib); +extern int find_node_types_register(sechk_lib_t * lib); +extern int find_netif_types_register(sechk_lib_t * lib); +extern int find_assoc_types_register(sechk_lib_t * lib); +extern int find_net_domains_register(sechk_lib_t * lib); +extern int inc_net_access_register(sechk_lib_t * lib); +extern int unreachable_doms_register(sechk_lib_t * lib); +extern int imp_range_trans_register(sechk_lib_t * lib); +/* TODO: additional externs go here ... */ + +size_t sechk_register_list_get_num_modules(void); +const sechk_module_name_reg_t *sechk_register_list_get_modules(void); +size_t sechk_register_list_get_num_profiles(void); +const sechk_profile_name_reg_t *sechk_register_list_get_profiles(void); +#endif /* SECHK_REGISTER_LIST_H */ |