]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix chmod with modefromsid when an older ACE already exists.
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 26 Mar 2021 10:28:16 +0000 (10:28 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 26 Mar 2021 23:04:35 +0000 (18:04 -0500)
commit3f042e5ce1372b7cbd967e4a7ca0dc6461be53dc
treebf478b36e9305e270ee8b4ad7d8efded3a7f1ac2
parentfd2ba09e6d856aab0b159daa3013121abe762d8b
cifs: Fix chmod with modefromsid when an older ACE already exists.

My recent fixes to cifsacl to maintain inherited ACEs had
regressed modefromsid when an older ACL already exists.

Found testing xfstest 495 with modefromsid mount option

Fixes: 41b8930ead49 ("cifs: Retain old ACEs when converting between mode bits and ACL")
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.c