Skip to contentSkip to conversation

ksmbd: bound smb_check_perm_dacl() ACE walks by DACL size

PATCH New Hang Nan 1 participant 1 message Aug 18

Subsystems (2)
lore
Share & tools
lore

Hang Nan

author
#0 lore raw

v3 cover ksmbd: bound smb_check_perm_dacl() ACE walks by DACL size

Changes in v3:

- Split the KUnit tests into patch 1 and patch 2.
- Add patch 3.
- Build the KUnit tests as a separate .ko instead of linking them into ksmbd.ko.

The following patch from v2 have already been merged into #ksmbd-for-next-next:
https://lore.kernel.org/linux-cifs/CAKYAXd9XHJSNfrFr+F8thNxFnXqGGcKpS1b1qR4DNuu82+j_VQ@mail.gmail.com/

Hang Nan (3):
ksmbd: add KUnit test for the DACL walk boundary
ksmbd: test smb_check_perm_dacl() DACL walk boundary
ksmbd: test maximal-access DACL walk boundary

 fs/smb/server/Kconfig       |  15 ++
 fs/smb/server/Makefile      |   1 +
 fs/smb/server/smbacl.c      |   2 +
 fs/smb/server/smbacl_test.c | 301 ++++++++++++++++++++++++++++++++++++
 fs/smb/server/vfs.c         |   2 +
 5 files changed, 321 insertions(+)
 create mode 100644 fs/smb/server/smbacl_test.c
Signature · 1 line
2.55.0