Smack: Consolidate uses of secmark into a function
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 12 Aug 2020 00:39:41 +0000 (17:39 -0700)
committerCasey Schaufler <cschaufler@localhost.localdomain>
Fri, 11 Sep 2020 22:31:30 +0000 (15:31 -0700)
commit36be81293dbe35aca487917c2d76941bf734d2ad
tree5bda6cc0c8ede1c90962725921932f71ed248cb2
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
Smack: Consolidate uses of secmark into a function

Add a function smack_from_skb() that returns the Smack label
identified by a network secmark. Replace the explicit uses of
the secmark with this function.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c