s3/utils: Add functionality to smbcacls to save dacl(s) to a restore file
authorNoel Power <noel.power@suse.com>
Fri, 12 Aug 2022 10:27:58 +0000 (11:27 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Nov 2023 04:05:34 +0000 (04:05 +0000)
commitdb88697df2be2db1284feecaf595362ebbef94cc
treef5c0eed53a76d1cc6eb1409e03b16ee7a07933ca
parentdd2133ba4862add1943e1a08469780695874f06c
s3/utils: Add functionality to smbcacls to save dacl(s) to a restore file

Add similar functionality to 'icacls name /save'

Save dacls for a file/directory to a restore/save file.
When saving dacls associated with a directory, using the 'recusive'
switch '-T' will recursively save the content of the directory.

Note: the save file produced by smbcacls and icacls are interchangeable
      as smbcacls produces (and uses) the same file format.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/smbcacls.c