diff options
Diffstat (limited to 'include/linux/bpf_lsm.h')
| -rw-r--r-- | include/linux/bpf_lsm.h | 22 | 
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/bpf_lsm.h b/include/linux/bpf_lsm.h index 0d1c33ace398..479c101546ad 100644 --- a/include/linux/bpf_lsm.h +++ b/include/linux/bpf_lsm.h @@ -38,21 +38,9 @@ static inline struct bpf_storage_blob *bpf_inode(  	return inode->i_security + bpf_lsm_blob_sizes.lbs_inode;  } -static inline struct bpf_storage_blob *bpf_task( -	const struct task_struct *task) -{ -	if (unlikely(!task->security)) -		return NULL; - -	return task->security + bpf_lsm_blob_sizes.lbs_task; -} -  extern const struct bpf_func_proto bpf_inode_storage_get_proto;  extern const struct bpf_func_proto bpf_inode_storage_delete_proto; -extern const struct bpf_func_proto bpf_task_storage_get_proto; -extern const struct bpf_func_proto bpf_task_storage_delete_proto;  void bpf_inode_storage_free(struct inode *inode); -void bpf_task_storage_free(struct task_struct *task);  #else /* !CONFIG_BPF_LSM */ @@ -73,20 +61,10 @@ static inline struct bpf_storage_blob *bpf_inode(  	return NULL;  } -static inline struct bpf_storage_blob *bpf_task( -	const struct task_struct *task) -{ -	return NULL; -} -  static inline void bpf_inode_storage_free(struct inode *inode)  {  } -static inline void bpf_task_storage_free(struct task_struct *task) -{ -} -  #endif /* CONFIG_BPF_LSM */  #endif /* _LINUX_BPF_LSM_H */  |