BACKPORT: Smack: Assign smack_known_web label for kernel thread's
authorjooseong lee <jooseong.lee@samsung.com>
Thu, 3 Nov 2016 10:54:39 +0000 (11:54 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 14:37:06 +0000 (15:37 +0100)
commitd8c5f96afa5f1ecf0a4ddbaeca457a12f3690709
treef5ea01714f2e4c52ae35f7a2d81e599fd546456a
parentc2a45560c773362ac6c348a2d224e6c1be6ab7f0
BACKPORT: Smack: Assign smack_known_web label for kernel thread's

Assign smack_known_web label for kernel thread's socket

Creating struct sock by sk_alloc function in various kernel subsystems
like bluetooth doesn't call smack_socket_post_create(). In such case,
received sock label is the floor('_') label and makes access deny.

Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream 08382c9f6efe08b8bb30645c2744480cbd8f161a)
security/smack/smack_lsm.c