diff options
-rw-r--r-- | source3/utils/net_registry.c | 2 | ||||
-rw-r--r-- | source3/utils/net_rpc_registry.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index e2f410b9ac..a504bcfd0b 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -411,7 +411,7 @@ static int net_registry_getsd(struct net_context *c, int argc, struct security_descriptor *secdesc = NULL; TALLOC_CTX *ctx = talloc_stackframe(); uint32_t access_mask = REG_KEY_READ | - SEC_RIGHT_MAXIMUM_ALLOWED | + SEC_FLAG_MAXIMUM_ALLOWED | SEC_RIGHT_SYSTEM_SECURITY; /* diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index 203a0cc9e3..3076866a3a 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -1147,7 +1147,7 @@ static NTSTATUS rpc_registry_getsd_internal(struct net_context *c, DATA_BLOB blob; struct security_descriptor sec_desc; uint32_t access_mask = REG_KEY_READ | - SEC_RIGHT_MAXIMUM_ALLOWED | + SEC_FLAG_MAXIMUM_ALLOWED | SEC_RIGHT_SYSTEM_SECURITY; if (argc <1 || argc > 2 || c->display_usage) { |