libcli/security: prepare security_descriptor_acl_add() to place the ace at a position
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Mar 2023 09:00:11 +0000 (10:00 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 22 Mar 2023 15:01:32 +0000 (15:01 +0000)
commitc3cb915a67aff6739b72b86d7d139609df309ada
treeb2f8ce5a95da6452fcc1e64fc3442800b4022f5d
parent9d8ff0d1e0b2ba7c84af36e1931f5bc99902a44b
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.

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