Adding YAMA hooks also when YAMA is not stacked.
authorSalvatore Mesoraca <s.mesoraca16@gmail.com>
Mon, 3 Aug 2015 10:40:51 +0000 (12:40 +0200)
committerJames Morris <james.l.morris@oracle.com>
Mon, 3 Aug 2015 15:36:18 +0000 (01:36 +1000)
commit5413fcdbe9e7ca32ce3f00fd5251dfa560b7484b
tree8cd7967bdd3f62d7f7827fe511574b6e093480af
parent74d33293e467df61de1b1d8b2fbe29e550dec33b
Adding YAMA hooks also when YAMA is not stacked.

Without this patch YAMA will not work at all if it is chosen
as the primary LSM instead of being "stacked".

Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/yama/yama_lsm.c