CVE-2023-4154 libcli/security: prepare security_descriptor_acl_add() to place the...
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Mar 2023 09:00:11 +0000 (10:00 +0100)
committerJule Anger <janger@samba.org>
Sun, 8 Oct 2023 20:06:22 +0000 (22:06 +0200)
commit8b1f1c9f90fd66c333ce1effab8ab78165266bd5
treee7e6c0dd76259ff118d3fe3516ff8806d0a231d3
parentb59a4266f1b17d9aaf1485b09db15b911b470228
CVE-2023-4154 libcli/security: prepare security_descriptor_acl_add() to place the ace at a position

Often it is important to insert an ace at a specific position in the
ACL. As a default we still append by default by using -1, which is the
generic version of passing the number of existing aces.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15424

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit c3cb915a67aff6739b72b86d7d139609df309ada)
libcli/security/security_descriptor.c