libcli-security: Add documentation for object_tree_modify_access
authorMatthieu Patou <mat@matws.net>
Sat, 13 Oct 2012 22:28:08 +0000 (15:28 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Jan 2013 21:31:20 +0000 (22:31 +0100)
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/object_tree.c

index 3e5ee109512f187ff200a1efb3a58ab5054e4a53..fd00068ef7ab8eda788f644494d93afb45abc113 100644 (file)
@@ -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)
 {