Whamcloud - gitweb
LU-5560 security: send file security context for creates 71/19971/29
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 11 Feb 2016 14:36:37 +0000 (08:36 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 11 Aug 2016 05:50:55 +0000 (05:50 +0000)
commit4ea24bdabb2b318721605bd185c32bbc1e9bc924
tree70671b426dd200478c0e8a274cd99ffd48a18372
parent250e826cd3902cd8e06cb7ee5167f2814219f63f
LU-5560 security: send file security context for creates

Send file security context to MDT along with create RPCs. This closes
the insecure window between creation and setting of the security
context that existed previously. It also avoids a potential LDLM hang
which arises from ll_create_it() when we send a MDS_SETXATTR RPC while
holding the lookup+layout lock returned from open.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I21415593b7dd362fecbb18cf90b1dc9fbf1c13db
Reviewed-on: http://review.whamcloud.com/19971
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
16 files changed:
lustre/autoconf/lustre-core.m4
lustre/include/lustre_req_layout.h
lustre/include/md_object.h
lustre/include/obd.h
lustre/llite/dir.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/llite/xattr_security.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_reint.c
lustre/mdd/mdd_dir.c
lustre/mdt/mdt_lib.c
lustre/ptlrpc/layout.c