diff options
author | Namjae Jeon <[email protected]> | 2024-01-07 21:24:07 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2024-01-09 12:55:01 -0600 |
commit | d592a9158a112d419f341f035d18d02f8d232def (patch) | |
tree | 0c4a4c665993b331978ce31af7b7f5675ceb42cb /tools/perf/scripts/python/sched-migration.py | |
parent | 8d99c1131d9d03053b7b1e1245b8f6e6846d9c69 (diff) |
ksmbd: don't allow O_TRUNC open on read-only share
When file is changed using notepad on read-only share(read_only = yes in
ksmbd.conf), There is a problem where existing data is truncated.
notepad in windows try to O_TRUNC open(FILE_OVERWRITE_IF) and all data
in file is truncated. This patch don't allow O_TRUNC open on read-only
share and add KSMBD_TREE_CONN_FLAG_WRITABLE check in smb2_set_info().
Cc: [email protected]
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions