]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: fix permission check issue on chown and chmod
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 21 Aug 2021 14:26:01 +0000 (23:26 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Sat, 21 Aug 2021 14:26:34 +0000 (23:26 +0900)
commit9ae42080752929078ea56b1fc2747e3a5fca16f4
tree0cfee79dd3e560ca1399274fe8f72424f8809b8d
parente995c9207f3ef7a4496638f2b26900870e4b1863
ksmbd: fix permission check issue on chown and chmod

When commanding chmod and chown on cifs&ksmbd, ksmbd allows it without file
permissions check. There is code to check it in settattr_prepare.
Instead of setting the inode directly, update the mode and uid/gid
through notify_change.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c
fs/ksmbd/smbacl.c