diff options
Diffstat (limited to 'include/linux/security.h')
| -rw-r--r-- | include/linux/security.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index a1b7dbd127ff..18264ea9e314 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -1556,7 +1556,7 @@ struct security_operations { | |||
| 1556 | int (*inode_follow_link) (struct dentry *dentry, struct nameidata *nd); | 1556 | int (*inode_follow_link) (struct dentry *dentry, struct nameidata *nd); |
| 1557 | int (*inode_permission) (struct inode *inode, int mask); | 1557 | int (*inode_permission) (struct inode *inode, int mask); |
| 1558 | int (*inode_setattr) (struct dentry *dentry, struct iattr *attr); | 1558 | int (*inode_setattr) (struct dentry *dentry, struct iattr *attr); |
| 1559 | int (*inode_getattr) (struct vfsmount *mnt, struct dentry *dentry); | 1559 | int (*inode_getattr) (const struct path *path); |
| 1560 | int (*inode_setxattr) (struct dentry *dentry, const char *name, | 1560 | int (*inode_setxattr) (struct dentry *dentry, const char *name, |
| 1561 | const void *value, size_t size, int flags); | 1561 | const void *value, size_t size, int flags); |
| 1562 | void (*inode_post_setxattr) (struct dentry *dentry, const char *name, | 1562 | void (*inode_post_setxattr) (struct dentry *dentry, const char *name, |
| @@ -1716,7 +1716,6 @@ struct security_operations { | |||
| 1716 | int (*tun_dev_attach_queue) (void *security); | 1716 | int (*tun_dev_attach_queue) (void *security); |
| 1717 | int (*tun_dev_attach) (struct sock *sk, void *security); | 1717 | int (*tun_dev_attach) (struct sock *sk, void *security); |
| 1718 | int (*tun_dev_open) (void *security); | 1718 | int (*tun_dev_open) (void *security); |
| 1719 | void (*skb_owned_by) (struct sk_buff *skb, struct sock *sk); | ||
| 1720 | #endif /* CONFIG_SECURITY_NETWORK */ | 1719 | #endif /* CONFIG_SECURITY_NETWORK */ |
| 1721 | 1720 | ||
| 1722 | #ifdef CONFIG_SECURITY_NETWORK_XFRM | 1721 | #ifdef CONFIG_SECURITY_NETWORK_XFRM |
| @@ -1843,7 +1842,7 @@ int security_inode_readlink(struct dentry *dentry); | |||
| 1843 | int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd); | 1842 | int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd); |
| 1844 | int security_inode_permission(struct inode *inode, int mask); | 1843 | int security_inode_permission(struct inode *inode, int mask); |
| 1845 | int security_inode_setattr(struct dentry *dentry, struct iattr *attr); | 1844 | int security_inode_setattr(struct dentry *dentry, struct iattr *attr); |
| 1846 | int security_inode_getattr(struct vfsmount *mnt, struct dentry *dentry); | 1845 | int security_inode_getattr(const struct path *path); |
| 1847 | int security_inode_setxattr(struct dentry *dentry, const char *name, | 1846 | int security_inode_setxattr(struct dentry *dentry, const char *name, |
| 1848 | const void *value, size_t size, int flags); | 1847 | const void *value, size_t size, int flags); |
| 1849 | void security_inode_post_setxattr(struct dentry *dentry, const char *name, | 1848 | void security_inode_post_setxattr(struct dentry *dentry, const char *name, |
| @@ -2259,8 +2258,7 @@ static inline int security_inode_setattr(struct dentry *dentry, | |||
| 2259 | return 0; | 2258 | return 0; |
| 2260 | } | 2259 | } |
| 2261 | 2260 | ||
| 2262 | static inline int security_inode_getattr(struct vfsmount *mnt, | 2261 | static inline int security_inode_getattr(const struct path *path) |
| 2263 | struct dentry *dentry) | ||
| 2264 | { | 2262 | { |
| 2265 | return 0; | 2263 | return 0; |
| 2266 | } | 2264 | } |
| @@ -2735,8 +2733,6 @@ int security_tun_dev_attach_queue(void *security); | |||
| 2735 | int security_tun_dev_attach(struct sock *sk, void *security); | 2733 | int security_tun_dev_attach(struct sock *sk, void *security); |
| 2736 | int security_tun_dev_open(void *security); | 2734 | int security_tun_dev_open(void *security); |
| 2737 | 2735 | ||
| 2738 | void security_skb_owned_by(struct sk_buff *skb, struct sock *sk); | ||
| 2739 | |||
| 2740 | #else /* CONFIG_SECURITY_NETWORK */ | 2736 | #else /* CONFIG_SECURITY_NETWORK */ |
| 2741 | static inline int security_unix_stream_connect(struct sock *sock, | 2737 | static inline int security_unix_stream_connect(struct sock *sock, |
| 2742 | struct sock *other, | 2738 | struct sock *other, |
| @@ -2928,11 +2924,6 @@ static inline int security_tun_dev_open(void *security) | |||
| 2928 | { | 2924 | { |
| 2929 | return 0; | 2925 | return 0; |
| 2930 | } | 2926 | } |
| 2931 | |||
| 2932 | static inline void security_skb_owned_by(struct sk_buff *skb, struct sock *sk) | ||
| 2933 | { | ||
| 2934 | } | ||
| 2935 | |||
| 2936 | #endif /* CONFIG_SECURITY_NETWORK */ | 2927 | #endif /* CONFIG_SECURITY_NETWORK */ |
| 2937 | 2928 | ||
| 2938 | #ifdef CONFIG_SECURITY_NETWORK_XFRM | 2929 | #ifdef CONFIG_SECURITY_NETWORK_XFRM |
