security: Add documentation
authorMatthieu Patou <mat@matws.net>
Sat, 13 Oct 2012 22:02:57 +0000 (15:02 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Jan 2013 21:31:20 +0000 (22:31 +0100)
Names seems to be a bit cryptic and misleading (at least for me).
So documenting them should remove at least partially this problem.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/security.h

index 659d34157b07fa226d1e1492c839d34c3a3dfef7..6e4b172e66e1fc08d30eab6c4ead9ea104962bd9 100644 (file)
 #define SHARE_ALL_ACCESS      FILE_GENERIC_ALL
 #define SHARE_READ_ONLY       (FILE_GENERIC_READ|FILE_EXECUTE)
 
+/**
+ * Remaining access is a bit mask of remaining access rights (bits) that have
+ * to be granted in order to fulfill the requested access.
+ *
+ * The GUID is optional, if specified it restricts this object tree and its
+ * childs to object/attributes that inherits from this GUID.
+ * For DS access an object inherits from a GUID if one of its class has this GUID
+ * in the schemaIDGUID attribute.
+ */
 struct object_tree {
        uint32_t remaining_access;
        struct GUID guid;