summaryrefslogtreecommitdiffstats
path: root/ini/ini_configobj.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2012-03-18 14:54:37 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-05 11:20:09 -0700
commit31c43691242c234c1c9bca336eda6647b79d1442 (patch)
treec196fe9b22ce2541b0f8357e9a94eab95e341fd2 /ini/ini_configobj.h
parent89bd6c4dbb49ed8e6a540bb934ac7ac1ded1940e (diff)
downloadding-libs-31c43691242c234c1c9bca336eda6647b79d1442.tar.gz
ding-libs-31c43691242c234c1c9bca336eda6647b79d1442.tar.xz
ding-libs-31c43691242c234c1c9bca336eda6647b79d1442.zip
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
Diffstat (limited to 'ini/ini_configobj.h')
-rw-r--r--ini/ini_configobj.h35
1 files changed, 35 insertions, 0 deletions
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
@@ -104,6 +104,41 @@
*/
/**
+ * @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
+
+/**
+ * @}
+ */
+
+/**
* @defgroup collisionflags Flags that define collision resolution logic.
*
* @{