Whamcloud - gitweb
LU-3727 nfs: Fix ll_get_parent() LBUG caused by permission 27/7327/13
authorLi Xi <lixi@ddn.com>
Wed, 8 Oct 2014 12:27:22 +0000 (20:27 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 26 Dec 2014 16:57:20 +0000 (16:57 +0000)
commita0b959c53d10bf3f0fd6b22de46397d0c7e5f667
treef11b1915f30055d71c359f022326fe268f81d332
parent27f65af06d0906856041cbcf2537cfabe2a90583
LU-3727 nfs: Fix ll_get_parent() LBUG caused by permission

When ll_get_parent() is trying to get the attributes of parent
directory, EACCES will be returned if NFS daemon user does not
have the execute permission of the child directory. This patch
fixes the problem by skipping permission check for ll_get_parent().

Signed-off-by: Li Xi <lixi@ddn.com>
Change-Id: Id922d170c89519b755f69a2818d6ed53f8cc7ad9
Reviewed-on: http://review.whamcloud.com/7327
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Jenkins
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/md_object.h
lustre/mdd/mdd_dir.c
lustre/mdt/mdt_handler.c