From 31c43691242c234c1c9bca336eda6647b79d1442 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Sun, 18 Mar 2012 14:54:37 -0400 Subject: Check access function Added check access constants and the check access function. The function is effectively copied from ini_metadata.c The flags are copied from ini_config.h --- ini/ini_configobj.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'ini/ini_configobj.h') diff --git a/ini/ini_configobj.h b/ini/ini_configobj.h index 8984402..eccad71 100644 --- a/ini/ini_configobj.h +++ b/ini/ini_configobj.h @@ -99,6 +99,41 @@ /** @brief Collect file stats. */ #define INI_META_STATS 1 +/** + * @} + */ + +/** + * @defgroup accesscheck Access control check flags + * + * @{ + */ + +/** + * @brief Validate access mode + * + * If this flag is specified the mode parameter + * will be matched against the permissions set on the file + * using the provided mask. + */ +#define INI_ACCESS_CHECK_MODE 0x00000001 + +/** + * @brief Validate uid + * + * Provided uid will be checked against uid + * of the file. + */ +#define INI_ACCESS_CHECK_UID 0x00000002 + +/** + * @brief Validate gid + * + * Provided gid will be checked against gid + * of the file. + */ +#define INI_ACCESS_CHECK_GID 0x00000004 + /** * @} */ -- cgit