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: 72e89f50 ("security: Add support for SCTP security hooks") Reported-by:Prashanth Prahlad <pprahlad@redhat.com> Reviewed-by:
Richard Haines <richard_c_haines@btinternet.com> Tested-by:
Richard Haines <richard_c_haines@btinternet.com> Signed-off-by:
Xin Long <lucien.xin@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/security/SCTP.rst 10 additions, 12 deletionsDocumentation/security/SCTP.rst
- include/linux/lsm_hook_defs.h 2 additions, 0 deletionsinclude/linux/lsm_hook_defs.h
- include/linux/lsm_hooks.h 5 additions, 0 deletionsinclude/linux/lsm_hooks.h
- include/linux/security.h 7 additions, 0 deletionsinclude/linux/security.h
- net/sctp/sm_statefuns.c 1 addition, 1 deletionnet/sctp/sm_statefuns.c
- security/security.c 7 additions, 0 deletionssecurity/security.c
Loading
Please register or sign in to comment