Commit db7fb6f
ksmbd: remove setattr preparations in set_file_basic_info()
Permission checking and copying over ownership information is the task
of the underlying filesystem not ksmbd. The order is also wrong here.
This modifies the inode before notify_change(). If notify_change() fails
this will have changed ownership nonetheless. All of this is unnecessary
though since the underlying filesystem's ->setattr handler will do all
this (if required) by itself.
Cc: Steve French <stfrench@microsoft.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: Hyunchul Lee <hyc.lee@gmail.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent eb5784f commit db7fb6f
1 file changed
Lines changed: 8 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5440 | 5440 | | |
5441 | 5441 | | |
5442 | 5442 | | |
5443 | | - | |
| 5443 | + | |
5444 | 5444 | | |
5445 | 5445 | | |
5446 | 5446 | | |
| |||
5464 | 5464 | | |
5465 | 5465 | | |
5466 | 5466 | | |
5467 | | - | |
5468 | | - | |
| 5467 | + | |
| 5468 | + | |
5469 | 5469 | | |
5470 | 5470 | | |
5471 | | - | |
| 5471 | + | |
5472 | 5472 | | |
5473 | 5473 | | |
5474 | 5474 | | |
| |||
5507 | 5507 | | |
5508 | 5508 | | |
5509 | 5509 | | |
5510 | | - | |
5511 | | - | |
5512 | | - | |
5513 | | - | |
5514 | | - | |
5515 | | - | |
5516 | | - | |
5517 | 5510 | | |
5518 | 5511 | | |
5519 | 5512 | | |
5520 | 5513 | | |
5521 | 5514 | | |
5522 | 5515 | | |
5523 | 5516 | | |
5524 | | - | |
5525 | | - | |
5526 | | - | |
5527 | | - | |
5528 | 5517 | | |
5529 | | - | |
5530 | | - | |
5531 | 5518 | | |
| 5519 | + | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
5532 | 5523 | | |
5533 | 5524 | | |
5534 | 5525 | | |
| |||
0 commit comments