]> 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)
commitdbd55694074a4fdbc8a6ec70bfbaad74cb4f08c8
treebf478b36e9305e270ee8b4ad7d8efded3a7f1ac2
parent7fa94f669b2faff1c469c4241da088d7f18043cf
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: 482e3de22aa3 ("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