diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2005-09-09 16:01:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:28 -0400 |
commit | e31e14ec356f36b131576be5bc31d8fef7e95483 (patch) | |
tree | 5597419cf186904d77c4b4ecf117287bcc1db986 /security/dummy.c | |
parent | a74574aafea3a63add3251047601611111f44562 (diff) |
[PATCH] remove the inode_post_link and inode_post_rename LSM hooks
This patch removes the inode_post_link and inode_post_rename LSM hooks as
they are unused (and likely useless).
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security/dummy.c')
-rw-r--r-- | security/dummy.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/security/dummy.c b/security/dummy.c index 5083314e14b1..9623a61dfc76 100644 --- a/security/dummy.c +++ b/security/dummy.c | |||
@@ -276,13 +276,6 @@ static int dummy_inode_link (struct dentry *old_dentry, struct inode *inode, | |||
276 | return 0; | 276 | return 0; |
277 | } | 277 | } |
278 | 278 | ||
279 | static void dummy_inode_post_link (struct dentry *old_dentry, | ||
280 | struct inode *inode, | ||
281 | struct dentry *new_dentry) | ||
282 | { | ||
283 | return; | ||
284 | } | ||
285 | |||
286 | static int dummy_inode_unlink (struct inode *inode, struct dentry *dentry) | 279 | static int dummy_inode_unlink (struct inode *inode, struct dentry *dentry) |
287 | { | 280 | { |
288 | return 0; | 281 | return 0; |
@@ -319,14 +312,6 @@ static int dummy_inode_rename (struct inode *old_inode, | |||
319 | return 0; | 312 | return 0; |
320 | } | 313 | } |
321 | 314 | ||
322 | static void dummy_inode_post_rename (struct inode *old_inode, | ||
323 | struct dentry *old_dentry, | ||
324 | struct inode *new_inode, | ||
325 | struct dentry *new_dentry) | ||
326 | { | ||
327 | return; | ||
328 | } | ||
329 | |||
330 | static int dummy_inode_readlink (struct dentry *dentry) | 315 | static int dummy_inode_readlink (struct dentry *dentry) |
331 | { | 316 | { |
332 | return 0; | 317 | return 0; |
@@ -871,14 +856,12 @@ void security_fixup_ops (struct security_operations *ops) | |||
871 | set_to_dummy_if_null(ops, inode_init_security); | 856 | set_to_dummy_if_null(ops, inode_init_security); |
872 | set_to_dummy_if_null(ops, inode_create); | 857 | set_to_dummy_if_null(ops, inode_create); |
873 | set_to_dummy_if_null(ops, inode_link); | 858 | set_to_dummy_if_null(ops, inode_link); |
874 | set_to_dummy_if_null(ops, inode_post_link); | ||
875 | set_to_dummy_if_null(ops, inode_unlink); | 859 | set_to_dummy_if_null(ops, inode_unlink); |
876 | set_to_dummy_if_null(ops, inode_symlink); | 860 | set_to_dummy_if_null(ops, inode_symlink); |
877 | set_to_dummy_if_null(ops, inode_mkdir); | 861 | set_to_dummy_if_null(ops, inode_mkdir); |
878 | set_to_dummy_if_null(ops, inode_rmdir); | 862 | set_to_dummy_if_null(ops, inode_rmdir); |
879 | set_to_dummy_if_null(ops, inode_mknod); | 863 | set_to_dummy_if_null(ops, inode_mknod); |
880 | set_to_dummy_if_null(ops, inode_rename); | 864 | set_to_dummy_if_null(ops, inode_rename); |
881 | set_to_dummy_if_null(ops, inode_post_rename); | ||
882 | set_to_dummy_if_null(ops, inode_readlink); | 865 | set_to_dummy_if_null(ops, inode_readlink); |
883 | set_to_dummy_if_null(ops, inode_follow_link); | 866 | set_to_dummy_if_null(ops, inode_follow_link); |
884 | set_to_dummy_if_null(ops, inode_permission); | 867 | set_to_dummy_if_null(ops, inode_permission); |