Smack: Assign smack_known_web label for kernel thread's socket in the sk_alloc_securi... 58/80758/1
authorjooseong lee <jooseong.lee@samsung.com>
Wed, 20 Jul 2016 01:07:11 +0000 (10:07 +0900)
committerjooseong lee <jooseong.lee@samsung.com>
Wed, 20 Jul 2016 04:55:14 +0000 (13:55 +0900)
commitaa404a01f55b1d2cea9c4fd5a1c7ecba99f80b94
treeab6479df3c3d8a28c940d598883ebe19f19b1d2c
parent2b3b918206050c63320ff3c07eee7b0c7b3c8f15
Smack: Assign smack_known_web label for kernel thread's socket in the sk_alloc_security hook

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

Refers to:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7412301b76bd53ee53b860f611fc3b5b1c2245b5

Change-Id: I614c5f0e6d59be5ca6b49f0581edfef79fc334cf
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
security/smack/smack_lsm.c