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>
Fri, 18 Nov 2016 10:57:07 +0000 (11:57 +0100)
commitfa9cded6b8d23ad101fec4cedb300424b000115b
treec6e3c39c60782d5b8d96a599ff6eddf87a5565b1
parentf6a6811295e1d788c112b96b62bc242c7f1bba34
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