xref: /linux/security/lsm.h (revision 67a4b6a89b99aff0883114e4ecba4b11aedc29a5)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * LSM functions
4  */
5 
6 #ifndef _LSM_H_
7 #define _LSM_H_
8 
9 #include <linux/lsm_hooks.h>
10 
11 /* LSM blob configuration */
12 extern struct lsm_blob_sizes blob_sizes;
13 
14 /* LSM blob caches */
15 extern struct kmem_cache *lsm_file_cache;
16 extern struct kmem_cache *lsm_inode_cache;
17 
18 /* LSM blob allocators */
19 int lsm_cred_alloc(struct cred *cred, gfp_t gfp);
20 int lsm_task_alloc(struct task_struct *task);
21 
22 #endif /* _LSM_H_ */
23