diff options
author | Eric Paris <eparis@redhat.com> | 2010-04-07 15:14:50 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-04-11 22:19:15 -0400 |
commit | 9d5ed77dadc66a72b40419c91df942adfa55a102 (patch) | |
tree | eb55062edf757a7b7fe707adda7178181f8a4427 /include/linux | |
parent | 91a9420f5826db482030c21eca8c507271bbc441 (diff) |
security: remove dead hook inode_delete
Unused hook. Remove.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/security.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 4de5bbb39052..ef6edc759891 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -478,12 +478,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
478 | * @mnt is the vfsmount where the dentry was looked up | 478 | * @mnt is the vfsmount where the dentry was looked up |
479 | * @dentry contains the dentry structure for the file. | 479 | * @dentry contains the dentry structure for the file. |
480 | * Return 0 if permission is granted. | 480 | * Return 0 if permission is granted. |
481 | * @inode_delete: | ||
482 | * @inode contains the inode structure for deleted inode. | ||
483 | * This hook is called when a deleted inode is released (i.e. an inode | ||
484 | * with no hard links has its use count drop to zero). A security module | ||
485 | * can use this hook to release any persistent label associated with the | ||
486 | * inode. | ||
487 | * @inode_setxattr: | 481 | * @inode_setxattr: |
488 | * Check permission before setting the extended attributes | 482 | * Check permission before setting the extended attributes |
489 | * @value identified by @name for @dentry. | 483 | * @value identified by @name for @dentry. |
@@ -1502,7 +1496,6 @@ struct security_operations { | |||
1502 | int (*inode_permission) (struct inode *inode, int mask); | 1496 | int (*inode_permission) (struct inode *inode, int mask); |
1503 | int (*inode_setattr) (struct dentry *dentry, struct iattr *attr); | 1497 | int (*inode_setattr) (struct dentry *dentry, struct iattr *attr); |
1504 | int (*inode_getattr) (struct vfsmount *mnt, struct dentry *dentry); | 1498 | int (*inode_getattr) (struct vfsmount *mnt, struct dentry *dentry); |
1505 | void (*inode_delete) (struct inode *inode); | ||
1506 | int (*inode_setxattr) (struct dentry *dentry, const char *name, | 1499 | int (*inode_setxattr) (struct dentry *dentry, const char *name, |
1507 | const void *value, size_t size, int flags); | 1500 | const void *value, size_t size, int flags); |
1508 | void (*inode_post_setxattr) (struct dentry *dentry, const char *name, | 1501 | void (*inode_post_setxattr) (struct dentry *dentry, const char *name, |
@@ -1768,7 +1761,6 @@ int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd); | |||
1768 | int security_inode_permission(struct inode *inode, int mask); | 1761 | int security_inode_permission(struct inode *inode, int mask); |
1769 | int security_inode_setattr(struct dentry *dentry, struct iattr *attr); | 1762 | int security_inode_setattr(struct dentry *dentry, struct iattr *attr); |
1770 | int security_inode_getattr(struct vfsmount *mnt, struct dentry *dentry); | 1763 | int security_inode_getattr(struct vfsmount *mnt, struct dentry *dentry); |
1771 | void security_inode_delete(struct inode *inode); | ||
1772 | int security_inode_setxattr(struct dentry *dentry, const char *name, | 1764 | int security_inode_setxattr(struct dentry *dentry, const char *name, |
1773 | const void *value, size_t size, int flags); | 1765 | const void *value, size_t size, int flags); |
1774 | void security_inode_post_setxattr(struct dentry *dentry, const char *name, | 1766 | void security_inode_post_setxattr(struct dentry *dentry, const char *name, |
@@ -2177,9 +2169,6 @@ static inline int security_inode_getattr(struct vfsmount *mnt, | |||
2177 | return 0; | 2169 | return 0; |
2178 | } | 2170 | } |
2179 | 2171 | ||
2180 | static inline void security_inode_delete(struct inode *inode) | ||
2181 | { } | ||
2182 | |||
2183 | static inline int security_inode_setxattr(struct dentry *dentry, | 2172 | static inline int security_inode_setxattr(struct dentry *dentry, |
2184 | const char *name, const void *value, size_t size, int flags) | 2173 | const char *name, const void *value, size_t size, int flags) |
2185 | { | 2174 | { |