]> Git Repo - linux.git/commit
Networking
authorHerbert Xu <[email protected]>
Mon, 10 Jul 2017 14:00:48 +0000 (22:00 +0800)
committerHerbert Xu <[email protected]>
Wed, 12 Jul 2017 10:38:06 +0000 (18:38 +0800)
commit2acce6aa9f6569d4e135b2c4cfb56acce95efaeb
tree3975af5b52a0f680eee115ee70d59adc51eaef57
parent7459e1d25ffefa2b1be799477fcc1f6c62f6cec7
Networking

crypto: af_alg - Avoid sock_graft call warning

The newly added sock_graft warning triggers in af_alg_accept.
It's harmless as we're essentially doing sock->sk = sock->sk.

The sock_graft call is actually redundant because all the work
it does is subsumed by sock_init_data.  However, it was added
to placate SELinux as it uses it to initialise its internal state.

This patch avoisd the warning by making the SELinux call directly.

Reported-by: Linus Torvalds <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Acked-by: David S. Miller <[email protected]>
crypto/af_alg.c
This page took 0.050745 seconds and 4 git commands to generate.