diff options
Diffstat (limited to 'include/linux/security.h')
| -rw-r--r-- | include/linux/security.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 31c8851ec5d0..fd96e7f8a6f9 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -102,9 +102,7 @@ extern unsigned long mmap_min_addr; | |||
| 102 | #define LSM_SETID_FS 8 | 102 | #define LSM_SETID_FS 8 |
| 103 | 103 | ||
| 104 | /* forward declares to avoid warnings */ | 104 | /* forward declares to avoid warnings */ |
| 105 | struct nfsctl_arg; | ||
| 106 | struct sched_param; | 105 | struct sched_param; |
| 107 | struct swap_info_struct; | ||
| 108 | struct request_sock; | 106 | struct request_sock; |
| 109 | 107 | ||
| 110 | /* bprm_apply_creds unsafe reasons */ | 108 | /* bprm_apply_creds unsafe reasons */ |
| @@ -1364,7 +1362,7 @@ struct security_operations { | |||
| 1364 | struct inode *new_dir, struct dentry *new_dentry); | 1362 | struct inode *new_dir, struct dentry *new_dentry); |
| 1365 | int (*inode_readlink) (struct dentry *dentry); | 1363 | int (*inode_readlink) (struct dentry *dentry); |
| 1366 | int (*inode_follow_link) (struct dentry *dentry, struct nameidata *nd); | 1364 | int (*inode_follow_link) (struct dentry *dentry, struct nameidata *nd); |
| 1367 | int (*inode_permission) (struct inode *inode, int mask, struct nameidata *nd); | 1365 | int (*inode_permission) (struct inode *inode, int mask); |
| 1368 | int (*inode_setattr) (struct dentry *dentry, struct iattr *attr); | 1366 | int (*inode_setattr) (struct dentry *dentry, struct iattr *attr); |
| 1369 | int (*inode_getattr) (struct vfsmount *mnt, struct dentry *dentry); | 1367 | int (*inode_getattr) (struct vfsmount *mnt, struct dentry *dentry); |
| 1370 | void (*inode_delete) (struct inode *inode); | 1368 | void (*inode_delete) (struct inode *inode); |
| @@ -1630,7 +1628,7 @@ int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
| 1630 | struct inode *new_dir, struct dentry *new_dentry); | 1628 | struct inode *new_dir, struct dentry *new_dentry); |
| 1631 | int security_inode_readlink(struct dentry *dentry); | 1629 | int security_inode_readlink(struct dentry *dentry); |
| 1632 | int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd); | 1630 | int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd); |
| 1633 | int security_inode_permission(struct inode *inode, int mask, struct nameidata *nd); | 1631 | int security_inode_permission(struct inode *inode, int mask); |
| 1634 | int security_inode_setattr(struct dentry *dentry, struct iattr *attr); | 1632 | int security_inode_setattr(struct dentry *dentry, struct iattr *attr); |
| 1635 | int security_inode_getattr(struct vfsmount *mnt, struct dentry *dentry); | 1633 | int security_inode_getattr(struct vfsmount *mnt, struct dentry *dentry); |
| 1636 | void security_inode_delete(struct inode *inode); | 1634 | void security_inode_delete(struct inode *inode); |
| @@ -2023,8 +2021,7 @@ static inline int security_inode_follow_link(struct dentry *dentry, | |||
| 2023 | return 0; | 2021 | return 0; |
| 2024 | } | 2022 | } |
| 2025 | 2023 | ||
| 2026 | static inline int security_inode_permission(struct inode *inode, int mask, | 2024 | static inline int security_inode_permission(struct inode *inode, int mask) |
| 2027 | struct nameidata *nd) | ||
| 2028 | { | 2025 | { |
| 2029 | return 0; | 2026 | return 0; |
| 2030 | } | 2027 | } |
