mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
libcli/security: create_descriptor handles unknown ACE types
Because we're going to add more ACE types. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
676a7152d1
commit
a84e89aa71
@ -215,6 +215,11 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
DBG_WARNING("ACE type %d is not handled\n", ace->type);
|
||||
TALLOC_FREE(tmp_acl);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (ace->flags & SEC_ACE_FLAG_NO_PROPAGATE_INHERIT) {
|
||||
@ -327,6 +332,9 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
|
||||
case SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT:
|
||||
tmp_ace->type = SEC_ACE_TYPE_SYSTEM_AUDIT;
|
||||
break;
|
||||
default:
|
||||
/* all the _CALLBACK types */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user