1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/libcli/security
Noel Power d36bab52d0 s3/utils: when encoding ace string use "FA", "FR", "FW", "FX" string rights
prior to this patch rights matching "FA", "FR", "FW", "FX" were
outputted as the hex string representing the bit value.

While outputting the hex string is perfectly fine, it makes it harder
to compare icacls output (which always uses the special string values)

Additionally adjust various tests to deal with use of shortcut access masks
as sddl format now uses FA, FR, FW & FX strings (like icalcs does) instead
of hex representation of the bit mask.

adjust
  samba4.blackbox.samba-tool_ntacl
  samba3.blackbox.large_acl
  samba.tests.samba_tool.ntacl
  samba.tests.ntacls
  samba.tests.posixacl

so various string comparisons of the sddl format now pass

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

[abartlet@samba.org Adapted to new stricter SDDL behaviour around leading zeros in hex
 numbers, eg 0x001]
2023-04-28 02:15:36 +00:00
..
tests libcli/security: SDDL parse tests to run on Windows 2023-04-28 02:15:36 +00:00
access_check.c libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
access_check.h CVE-2023-0614 libcli/security: Make some parameters const 2023-04-05 02:10:34 +00:00
create_descriptor.c libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
display_sec.c libcli/security: Avoid includes.h 2023-03-09 18:10:33 +00:00
display_sec.h libcli/security: move display_sec headers to own header file and add to 2011-03-16 10:11:08 +01:00
dom_sid.c libcli/security/dom_sid: use (unsigned char) in isdigit() 2023-04-28 02:15:36 +00:00
dom_sid.h libcli/security: Add dom_sid_has_account_domain() to confirm a S-1-5-21 prefix 2023-03-31 08:29:32 +00:00
object_tree.c libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
privileges_private.h
privileges.c libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
privileges.h libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
pysecurity.c Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
sddl.c s3/utils: when encoding ace string use "FA", "FR", "FW", "FX" string rights 2023-04-28 02:15:36 +00:00
sddl.h libcli security/sddl: Make sddl_encode_ace visible 2022-09-27 16:46:35 +00:00
secace.c libcli/security: Avoid includes.h 2023-03-09 18:10:33 +00:00
secace.h lib: Remove some unused code 2015-08-14 07:46:12 +02:00
secacl.c libcli/security: Avoid includes.h 2023-03-09 18:10:33 +00:00
secacl.h libcli: make_sec_acl() copies the ace_list, make that const 2021-01-22 19:54:38 +00:00
secdesc.c lib: Remove a talloc_stackframe() 2023-03-09 18:10:33 +00:00
secdesc.h libcli/security: Remove unused dup_sec_desc_buf() 2019-05-22 05:59:14 +00:00
security_descriptor.c libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
security_descriptor.h libcli/security: add security_descriptor_[s|d]acl_insert() helpers 2023-03-22 15:01:32 +00:00
security_token.c libcli/security: Avoid includes.h 2023-03-09 18:10:33 +00:00
security_token.h lib: librpc/gen_ndr/security.h needs DATA_BLOB 2023-03-09 18:10:33 +00:00
security.h libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
session.c libcli/security: Avoid includes.h 2023-03-09 18:10:33 +00:00
session.h libcli/security: implement SECURITY_GUEST 2016-04-28 16:51:17 +02:00
util_sid.c libcli:security: Fix code spelling 2023-04-27 14:25:38 +00:00
wscript_build build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00