Smack: Traverse the smack_known_list using list_for_each_entry_rcu macro
authorVishal Goel <vishal.goel@samsung.com>
Wed, 23 Nov 2016 05:15:31 +0000 (10:45 +0530)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 10 Jan 2017 17:47:20 +0000 (09:47 -0800)
commit348dc288d4bf4c0272a46a80f97748f36916601b
treea95c23588984356c64a58c444b92e238718f59b5
parent3d4f673a6988f57e6f6ccd1a3b79eee171545e08
Smack: Traverse the smack_known_list using list_for_each_entry_rcu macro

In smack_from_secattr function,"smack_known_list" is being traversed
using list_for_each_entry macro, although it is a rcu protected
structure. So it should be traversed using "list_for_each_entry_rcu"
macro to fetch the rcu protected entry.

Signed-off-by: Vishal Goel <vishal.goel@samsung.com>
Signed-off-by: Himanshu Shukla <himanshu.sh@samsung.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c