Whamcloud - gitweb
LU-2463 security: osd_mknod shouldn't alter mode after creation
authorLai Siyao <laisiyao@whamcloud.com>
Thu, 13 Dec 2012 06:38:03 +0000 (14:38 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 15 Dec 2012 06:21:00 +0000 (01:21 -0500)
commit6127a5acd943cddee33695056e3ff0908d975e51
tree5ed64b2addcb46490326f825b05cb5939c18166c
parent648873f1f27fe8b99573e88c4a3192159ea73326
LU-2463 security: osd_mknod shouldn't alter mode after creation

osd_mknod() calls init_special_inode(), but it should use
inode->i_mode instead of the one from client.

Test-Parameters: envdefinitions=SLOW=yes testlist=posix
Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: Iee0f49dc4beef4aae6b5b6f57679de2643887e25
Reviewed-on: http://review.whamcloud.com/4820
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c