]> Git Repo - linux.git/commit
security: add sctp_assoc_established hook
authorXin Long <[email protected]>
Tue, 2 Nov 2021 12:02:49 +0000 (08:02 -0400)
committerDavid S. Miller <[email protected]>
Wed, 3 Nov 2021 11:09:20 +0000 (11:09 +0000)
commit7c2ef0240e6abfd3cc59511339517358350a8910
tree9bd085132416fef41a076ecac30cdcc8fa461385
parente215dab1c49070cd75620afd801f777207a5b65c
security: add sctp_assoc_established hook

security_sctp_assoc_established() is added to replace
security_inet_conn_established() called in
sctp_sf_do_5_1E_ca(), so that asoc can be accessed in security
subsystem and save the peer secid to asoc->peer_secid.

v1->v2:
  - fix the return value of security_sctp_assoc_established() in
    security.h, found by kernel test robot and Ondrej.

Fixes: 72e89f50084c ("security: Add support for SCTP security hooks")
Reported-by: Prashanth Prahlad <[email protected]>
Reviewed-by: Richard Haines <[email protected]>
Tested-by: Richard Haines <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Documentation/security/SCTP.rst
include/linux/lsm_hook_defs.h
include/linux/lsm_hooks.h
include/linux/security.h
net/sctp/sm_statefuns.c
security/security.c
This page took 0.06819 seconds and 4 git commands to generate.