diff options
Diffstat (limited to 'sechecker/modules/inc_mount.h')
-rw-r--r-- | sechecker/modules/inc_mount.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sechecker/modules/inc_mount.h b/sechecker/modules/inc_mount.h new file mode 100644 index 0000000..18d5179 --- /dev/null +++ b/sechecker/modules/inc_mount.h @@ -0,0 +1,54 @@ +/** + * @file + * Defines the interface for the incomplete mount permissions module. + * + * @author Kevin Carr kcarr@tresys.com + * @author Jeremy A. Mowery jmowery@tresys.com + * @author Jason Tang jtang@tresys.com + * + * 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 + */ + +#ifndef INC_MOUNT +#define INC_MOUNT + +#ifdef __cplusplus +extern "C" +{ +#endif + +#include "sechecker.h" +#include <apol/policy.h> +#include <apol/avrule-query.h> + +#define SECHK_MOUNT_ONLY_MOUNT 0x01 +#define SECHK_MOUNT_ONLY_MOUNTON 0x02 + +/* Module functions: + * NOTE: while using a modular format SEChecker is built + * statically; this means that all modules and their functions + * are in the same namespace. */ + int inc_mount_register(sechk_lib_t * lib); + int inc_mount_init(sechk_module_t * mod, apol_policy_t * policy, void *arg); + int inc_mount_run(sechk_module_t * mod, apol_policy_t * policy, void *arg); + int inc_mount_print(sechk_module_t * mod, apol_policy_t * policy, void *arg); + +#ifdef __cplusplus +} +#endif + +#endif |