lsm: remove current_security()
authorPaul Moore <paul@paul-moore.com>
Wed, 4 Sep 2019 22:53:39 +0000 (18:53 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 4 Sep 2019 22:53:39 +0000 (18:53 -0400)
There are no remaining callers and it really is unsafe in the brave
new world of LSM stacking.

Acked-by: James Morris <jamorris@linux.microsoft.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/cred.h

index efb6edf32de7342a4a25520479d2ab3235ab88a5..98b0a23ddd23963ca8a558cb90fbd295baf231f2 100644 (file)
@@ -384,7 +384,6 @@ static inline void put_cred(const struct cred *_cred)
 #define current_fsgid()        (current_cred_xxx(fsgid))
 #define current_cap()          (current_cred_xxx(cap_effective))
 #define current_user()         (current_cred_xxx(user))
-#define current_security()     (current_cred_xxx(security))
 
 extern struct user_namespace init_user_ns;
 #ifdef CONFIG_USER_NS