python:sd_utils: add dacl_{prepend,append,delete}_aces() helpers
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Mar 2023 17:03:10 +0000 (18:03 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 22 Mar 2023 15:01:32 +0000 (15:01 +0000)
commita1109a9bf12e020636b8d66fc54984aac58bfe6b
tree0beb824b7b2ac04703e0d81924de52619c1ee49f
parent8411e6d302e25d10f1035ebbdcbde7308566e930
python:sd_utils: add dacl_{prepend,append,delete}_aces() helpers

They better represent what they are doing, we keep dacl_add_ace()
as wrapper of dacl_prepend_aces() in order to let existing callers
work as before.

In future it would be good to have a dacl_insert_aces() that
would canonicalize the ace order before storing, but that a task
for another day.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/sd_utils.py