diff options
Diffstat (limited to 'include/linux/security.h')
| -rw-r--r-- | include/linux/security.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index dbfb5a66babb..b2c5333ed4b5 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -366,8 +366,10 @@ int security_sem_semctl(struct kern_ipc_perm *sma, int cmd); | |||
| 366 | int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, | 366 | int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, |
| 367 | unsigned nsops, int alter); | 367 | unsigned nsops, int alter); |
| 368 | void security_d_instantiate(struct dentry *dentry, struct inode *inode); | 368 | void security_d_instantiate(struct dentry *dentry, struct inode *inode); |
| 369 | int security_getprocattr(struct task_struct *p, char *name, char **value); | 369 | int security_getprocattr(struct task_struct *p, const char *lsm, char *name, |
| 370 | int security_setprocattr(const char *name, void *value, size_t size); | 370 | char **value); |
| 371 | int security_setprocattr(const char *lsm, const char *name, void *value, | ||
| 372 | size_t size); | ||
| 371 | int security_netlink_send(struct sock *sk, struct sk_buff *skb); | 373 | int security_netlink_send(struct sock *sk, struct sk_buff *skb); |
| 372 | int security_ismaclabel(const char *name); | 374 | int security_ismaclabel(const char *name); |
| 373 | int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen); | 375 | int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen); |
| @@ -1112,15 +1114,18 @@ static inline int security_sem_semop(struct kern_ipc_perm *sma, | |||
| 1112 | return 0; | 1114 | return 0; |
| 1113 | } | 1115 | } |
| 1114 | 1116 | ||
| 1115 | static inline void security_d_instantiate(struct dentry *dentry, struct inode *inode) | 1117 | static inline void security_d_instantiate(struct dentry *dentry, |
| 1118 | struct inode *inode) | ||
| 1116 | { } | 1119 | { } |
| 1117 | 1120 | ||
| 1118 | static inline int security_getprocattr(struct task_struct *p, char *name, char **value) | 1121 | static inline int security_getprocattr(struct task_struct *p, const char *lsm, |
| 1122 | char *name, char **value) | ||
| 1119 | { | 1123 | { |
| 1120 | return -EINVAL; | 1124 | return -EINVAL; |
| 1121 | } | 1125 | } |
| 1122 | 1126 | ||
| 1123 | static inline int security_setprocattr(char *name, void *value, size_t size) | 1127 | static inline int security_setprocattr(const char *lsm, char *name, |
| 1128 | void *value, size_t size) | ||
| 1124 | { | 1129 | { |
| 1125 | return -EINVAL; | 1130 | return -EINVAL; |
| 1126 | } | 1131 | } |
