Whamcloud - gitweb
LU-4924 llite: Only kill SGID/SUID bits 71/10071/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Wed, 23 Apr 2014 21:39:46 +0000 (17:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 29 Apr 2014 17:54:31 +0000 (17:54 +0000)
commit70c37954649fbc4fc2d0820d5d422f96144071f9
tree2f767810a94180e39e3e764c360857961d5bdbe4
parent73ef5dcd8bcf32e4127e0011357b8bc39472cdba
LU-4924 llite: Only kill SGID/SUID bits

Check that attr mode is valid before using it when determining if to
clear SGID and SUID bits in ll_setattr.
Add regression test.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I2b221e80a5bb167f8670f376ce97d62d720ad857
Reviewed-on: http://review.whamcloud.com/10071
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
lustre/llite/llite_lib.c
lustre/tests/acl/4924.test [new file with mode: 0644]
lustre/tests/sanity.sh