1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/librpc
Douglas Bagnall c73034cf7c librpc/security.idl: adjust size calculations for upcoming ace types
Soon we will get Conditional ACEs and Resource Attribute ACES, each of
which have trailing bytes at the end of the ACE. Here's a diagram:

              ____      The ACE size field may indicate a size bigger
  .type      /    |     than the known parts, even when you take
  .flags    /     |     rounding to a multiple of four into account.
  .size  --'      |     This extra data is meaningful in some ACEs.
  .access_mask    |
  .trustee (sid) _|  <- known data ends here.
                  :
   "coda"      ___:  <- the trailing part, Zero size unless the size
                        field points beyond the end of the known data.
			Probably empty for ordinary ACE types.

Until now we have thrown away these extra bytes, because they have no
meaning in the ACE types we recognise. But with conditional and
resource attribute ACEs we need to catch and process these bytes, so
we add an extra field for that.

Thus we can drop the manually written ndr_pull_security_ace() that
discarded the trailing bytes, because we just allow it to be pulled
into an unused blob. In the very common case, the blob will be empty.

Microsoft does not use a common name across different ACE types to
describe this end-data -- "coda" is a Samba term.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-24 02:53:31 +00:00
..
ABI librpc:ndr: Add ‘int64’ type 2023-08-15 18:46:33 +00:00
gen_ndr
idl librpc/security.idl: adjust size calculations for upcoming ace types 2023-08-24 02:53:31 +00:00
ndr librpc/security.idl: adjust size calculations for upcoming ace types 2023-08-24 02:53:31 +00:00
rpc librpc/rpc: let dcerpc_read_ncacn_packet_next_vector() handle fragments without any payload 2023-08-08 08:02:40 +00:00
tests libprc/test: add pull_string_array large array test 2020-08-07 04:44:17 +00:00
tools ndrdump: Allow a long string of hexidecimal digits as well as a hex dump for --hex-input 2023-03-31 01:48:30 +00:00
binding-strings.txt
ndr_krb5pac.pc.in
ndr_nbt.pc.in
ndr_standard.pc.in
ndr.pc.in
tables.pl
wscript_build librpc:ndr: Add ‘int64’ type 2023-08-15 18:46:33 +00:00