aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-06-23 18:07:58 +0000
committerSteve French <[email protected]>2024-07-14 23:00:35 +0000
commit051d469be1b355ffc62fcd9c82195230c780228a (patch)
treec5449d07734e5d16e9d45f2f4201fc987baf6926 /rust/helpers.c
parentksmbd: remove duplicate SMB2 Oplock levels definitions (diff)
downloadkernel-051d469be1b355ffc62fcd9c82195230c780228a.tar.gz
kernel-051d469be1b355ffc62fcd9c82195230c780228a.zip
ksmbd: Constify struct ksmbd_transport_ops
'struct ksmbd_transport_ops' is not modified in these drivers. Constifying this structure moves some data to a read-only section, so increase overall security. On a x86_64, with allmodconfig, as an example: Before: ====== text data bss dec hex filename 52184 2085 256 54525 d4fd fs/smb/server/transport_rdma.o After: ===== text data bss dec hex filename 52260 2021 256 54537 d509 fs/smb/server/transport_rdma.o Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions