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: NVishal Goel <vishal.goel@samsung.com> Signed-off-by: NHimanshu Shukla <himanshu.sh@samsung.com> Signed-off-by: NCasey Schaufler <casey@schaufler-ca.com>
Showing
想要评论请 注册 或 登录