diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-02-11 14:45:57 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-02-22 09:19:41 +0100 |
commit | 87db2331fc855473d8b3cad1c4149807823aa3c4 (patch) | |
tree | 5b78be0b6ce1f6c5b8bfb99c3ae0c6977bc121e2 | |
parent | a166a3484a68dc5328ee1d3e65221c30c081204b (diff) | |
download | samba-87db2331fc855473d8b3cad1c4149807823aa3c4.tar.gz samba-87db2331fc855473d8b3cad1c4149807823aa3c4.tar.bz2 samba-87db2331fc855473d8b3cad1c4149807823aa3c4.zip |
dsdb-descriptor: Spell out security descriptor flags as constants
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl_util.c | 2 | ||||
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/descriptor.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl_util.c b/source4/dsdb/samdb/ldb_modules/acl_util.c index 9be376d556..1f64ab1865 100644 --- a/source4/dsdb/samdb/ldb_modules/acl_util.c +++ b/source4/dsdb/samdb/ldb_modules/acl_util.c @@ -272,7 +272,7 @@ uint32_t dsdb_request_sd_flags(struct ldb_request *req, bool *explicit) * equals all 4 bits */ if (sd_flags == 0) { - sd_flags = 0xF; + sd_flags = SECINFO_OWNER | SECINFO_GROUP | SECINFO_DACL | SECINFO_SACL; } return sd_flags; diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c index d9bc89fe62..859558ca1e 100644 --- a/source4/dsdb/samdb/ldb_modules/descriptor.c +++ b/source4/dsdb/samdb/ldb_modules/descriptor.c @@ -643,7 +643,7 @@ static int descriptor_add(struct ldb_module *module, struct ldb_request *req) * The SD_FLAG control is ignored on add * and we default to all bits set. */ - sd_flags = 0xF; + sd_flags = SECINFO_OWNER|SECINFO_GROUP|SECINFO_SACL|SECINFO_DACL; sd = get_new_descriptor(module, dn, req, objectclass, parent_sd, |