diff options
author | Ryan Moeller <[email protected]> | 2021-03-07 12:31:52 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-03-08 09:07:29 -0800 |
commit | cda6fdd5005b3e158b34756ee44f574042b98d7b (patch) | |
tree | 9a6c5f5e8f047665325fd1239b9608a3561eca3c /cppcheck-suppressions.txt | |
parent | df8271301e2b73154fe16006627ae3d9ab517f1c (diff) |
Intentionally allow ZFS_READONLY in zfs_write
ZFS_READONLY represents the "DOS R/O" attribute.
When that flag is set, we should behave as if write access
were not granted by anything in the ACL. In particular:
We _must_ allow writes after opening the file r/w, then
setting the DOS R/O attribute, and writing some more.
(Similar to how you can write after fchmod(fd, 0444).)
Restore these semantics which were lost on FreeBSD when refactoring
zfs_write. To my knowledge Linux does not actually expose this flag,
but we'll need it to eventually so I've added the supporting checks.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11693
Diffstat (limited to 'cppcheck-suppressions.txt')
0 files changed, 0 insertions, 0 deletions