kernel_optimize_test/security/safesetid
Wei Yongjun e7a44cfd63 LSM: fix return value check in safesetid_init_securityfs()
In case of error, the function securityfs_create_dir() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: aeca4e2ca6 ("LSM: add SafeSetID module that gates setid calls")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
2019-02-12 10:59:22 -08:00
..
Kconfig LSM: SafeSetID: 'depend' on CONFIG_SECURITY 2019-01-29 11:50:48 -08:00
lsm.c LSM: SafeSetID: remove unused include 2019-01-30 12:29:53 -08:00
lsm.h
Makefile
securityfs.c LSM: fix return value check in safesetid_init_securityfs() 2019-02-12 10:59:22 -08:00