summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-10-13 15:28:08 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-01-21 22:31:20 +0100
commitc0638dae6cbf8915e6a436d575562fc131ba772a (patch)
treee40788cd362c08ba6bd2e35763bd6f8e2a4b2643 /libcli/security
parent3b7977419726a8630de828b634d669625ee358dd (diff)
downloadsamba-c0638dae6cbf8915e6a436d575562fc131ba772a.tar.gz
samba-c0638dae6cbf8915e6a436d575562fc131ba772a.tar.bz2
samba-c0638dae6cbf8915e6a436d575562fc131ba772a.zip
libcli-security: Add documentation for object_tree_modify_access
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/object_tree.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/libcli/security/object_tree.c b/libcli/security/object_tree.c
index 3e5ee10951..fd00068ef7 100644
--- a/libcli/security/object_tree.c
+++ b/libcli/security/object_tree.c
@@ -104,8 +104,18 @@ struct object_tree *get_object_tree_by_GUID(struct object_tree *root,
return result;
}
-/* Change the granted access per each ACE */
-
+/**
+ * @brief Modify the tree to mark specified access rights as granted
+ *
+ * This function will modify the root and the child of the tree pointed by
+ * root, so that for each tree element the bits set in access_mask are
+ * marked as granted.
+ *
+ * @param[in] root An object_tree structure that we want to modify
+ *
+ * @param[in] access_mask A bitfield of access right that we want to mark as
+ * granted in the whole tree.
+ */
void object_tree_modify_access(struct object_tree *root,
uint32_t access_mask)
{