aboutsummaryrefslogtreecommitdiffstats
path: root/security/dummy.c
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2005-09-09 16:01:44 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:57:28 -0400
commita74574aafea3a63add3251047601611111f44562 (patch)
treea8f4a809589513c666c6f5518cbe84f50ee5523e /security/dummy.c
parent570bc1c2e5ccdb408081e77507a385dc7ebed7fa (diff)
[PATCH] Remove security_inode_post_create/mkdir/symlink/mknod hooks
This patch removes the inode_post_create/mkdir/mknod/symlink LSM hooks as they are obsoleted by the new inode_init_security hook that enables atomic inode security labeling. If anyone sees any reason to retain these hooks, please speak now. Also, is anyone using the post_rename/link hooks; if not, those could also be removed. 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.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/security/dummy.c b/security/dummy.c
index e8a00fa8046..5083314e14b 100644
--- a/security/dummy.c
+++ b/security/dummy.c
@@ -270,12 +270,6 @@ static int dummy_inode_create (struct inode *inode, struct dentry *dentry,
270 return 0; 270 return 0;
271} 271}
272 272
273static void dummy_inode_post_create (struct inode *inode, struct dentry *dentry,
274 int mask)
275{
276 return;
277}
278
279static int dummy_inode_link (struct dentry *old_dentry, struct inode *inode, 273static int dummy_inode_link (struct dentry *old_dentry, struct inode *inode,
280 struct dentry *new_dentry) 274 struct dentry *new_dentry)
281{ 275{
@@ -300,24 +294,12 @@ static int dummy_inode_symlink (struct inode *inode, struct dentry *dentry,
300 return 0; 294 return 0;
301} 295}
302 296
303static void dummy_inode_post_symlink (struct inode *inode,
304 struct dentry *dentry, const char *name)
305{
306 return;
307}
308
309static int dummy_inode_mkdir (struct inode *inode, struct dentry *dentry, 297static int dummy_inode_mkdir (struct inode *inode, struct dentry *dentry,
310 int mask) 298 int mask)
311{ 299{
312 return 0; 300 return 0;
313} 301}
314 302
315static void dummy_inode_post_mkdir (struct inode *inode, struct dentry *dentry,
316 int mask)
317{
318 return;
319}
320
321static int dummy_inode_rmdir (struct inode *inode, struct dentry *dentry) 303static int dummy_inode_rmdir (struct inode *inode, struct dentry *dentry)
322{ 304{
323 return 0; 305 return 0;
@@ -329,12 +311,6 @@ static int dummy_inode_mknod (struct inode *inode, struct dentry *dentry,
329 return 0; 311 return 0;
330} 312}
331 313
332static void dummy_inode_post_mknod (struct inode *inode, struct dentry *dentry,
333 int mode, dev_t dev)
334{
335 return;
336}
337
338static int dummy_inode_rename (struct inode *old_inode, 314static int dummy_inode_rename (struct inode *old_inode,
339 struct dentry *old_dentry, 315 struct dentry *old_dentry,
340 struct inode *new_inode, 316 struct inode *new_inode,
@@ -894,17 +870,13 @@ void security_fixup_ops (struct security_operations *ops)
894 set_to_dummy_if_null(ops, inode_free_security); 870 set_to_dummy_if_null(ops, inode_free_security);
895 set_to_dummy_if_null(ops, inode_init_security); 871 set_to_dummy_if_null(ops, inode_init_security);
896 set_to_dummy_if_null(ops, inode_create); 872 set_to_dummy_if_null(ops, inode_create);
897 set_to_dummy_if_null(ops, inode_post_create);
898 set_to_dummy_if_null(ops, inode_link); 873 set_to_dummy_if_null(ops, inode_link);
899 set_to_dummy_if_null(ops, inode_post_link); 874 set_to_dummy_if_null(ops, inode_post_link);
900 set_to_dummy_if_null(ops, inode_unlink); 875 set_to_dummy_if_null(ops, inode_unlink);
901 set_to_dummy_if_null(ops, inode_symlink); 876 set_to_dummy_if_null(ops, inode_symlink);
902 set_to_dummy_if_null(ops, inode_post_symlink);
903 set_to_dummy_if_null(ops, inode_mkdir); 877 set_to_dummy_if_null(ops, inode_mkdir);
904 set_to_dummy_if_null(ops, inode_post_mkdir);
905 set_to_dummy_if_null(ops, inode_rmdir); 878 set_to_dummy_if_null(ops, inode_rmdir);
906 set_to_dummy_if_null(ops, inode_mknod); 879 set_to_dummy_if_null(ops, inode_mknod);
907 set_to_dummy_if_null(ops, inode_post_mknod);
908 set_to_dummy_if_null(ops, inode_rename); 880 set_to_dummy_if_null(ops, inode_rename);
909 set_to_dummy_if_null(ops, inode_post_rename); 881 set_to_dummy_if_null(ops, inode_post_rename);
910 set_to_dummy_if_null(ops, inode_readlink); 882 set_to_dummy_if_null(ops, inode_readlink);