BACKPORT: Smack: Remove pointless hooks
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 26 Jan 2016 23:08:35 +0000 (15:08 -0800)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:02:08 +0000 (17:02 +0100)
commit5ccbe056d05024a44e568092b9a0f46f70bb950f
treed7450789faf7f04f753ebc2fc4d7b5186c4c2214
parent6b1ad9ab2f5dde6ebdf656598a6b60a0096cd2ef
BACKPORT: Smack: Remove pointless hooks

Prior to the 4.2 kernel there no no harm in providing
a security module hook that does nothing, as the default
hook would get called if the module did not supply one.
With the list based infrastructure an empty hook adds
overhead. This patch removes the three Smack hooks that
don't actually do anything.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream 491a0b08d38e7f0961a1850d43d0dea02f918d66)
security/smack/smack_lsm.c