r4388: - allow ACE flags to be specified in security_descriptor_create()
[samba.git] / source4 / libcli / security / security_descriptor.c
index 1c63478ab2ae7dfd6e20a6169ad56479164a7e2d..ab81a2e5b95f329ee089d6f04e4b8285e9556b3e 100644 (file)
@@ -223,6 +223,7 @@ BOOL security_descriptor_mask_equal(const struct security_descriptor *sd1,
                                    SID_AUTHENTICATED_USERS, 
                                    SEC_ACE_TYPE_ACCESS_ALLOWED,
                                    SEC_FILE_ALL,
+                                   SEC_ACE_FLAG_OBJECT_INHERIT,
                                    NULL);
   that would create a sd with one ACE
 */
@@ -266,7 +267,7 @@ struct security_descriptor *security_descriptor_create(TALLOC_CTX *mem_ctx,
                }
                ace->type = va_arg(ap, unsigned int);
                ace->access_mask = va_arg(ap, unsigned int);
-               ace->flags = 0;
+               ace->flags = va_arg(ap, unsigned int);
                sid = dom_sid_parse_talloc(ace, sidstr);
                if (sid == NULL) {
                        va_end(ap);