]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: update S_ISGID when setting posix ACLs
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 31 Oct 2016 13:42:14 +0000 (14:42 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 31 Oct 2016 13:42:14 +0000 (14:42 +0100)
commit81562630c5ac25db4186c4d641094075f52eb5c5
tree69f329819476f64840bfa280bb83f1504efd7afd
parent1851cb92ff712dd97c8e90966589011220b5eb53
ovl: update S_ISGID when setting posix ACLs

This change fixes xfstest generic/375, which failed to clear the
setgid bit in the following test case on overlayfs:

  touch $testfile
  chown 100:100 $testfile
  chmod 2755 $testfile
  _runas -u 100 -g 101 -- setfacl -m u::rwx,g::rwx,o::rwx $testfile

Reported-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Tested-by: Amir Goldstein <amir73il@gmail.com>
Fixes: 87c4b178742b ("ovl: fix POSIX ACL setting")
Cc: <stable@vger.kernel.org> # v4.8
fs/overlayfs/super.c