OpenAFS Master Repository branch, openafs-devel-1_7_x, updated. openafs-devel-1_7_29-21-g6060987
Gerrit Code Review
gerrit@openafs.org
Thu, 17 Apr 2014 05:50:21 -0700 (PDT)
The following commit has been merged in the openafs-devel-1_7_x branch:
commit 606098746c7d6a3bf6c9151ef12edfef579ddca4
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date: Fri Apr 4 16:42:36 2014 -0400
Windows: Deny writes/truncation to files w RO attr
If the readonly file attribute is set on a file, refuse to process
writes, truncations or overwrites. The afsd_service will do so
and this can lead to data corruption.
At the same time, writes from the redirector to afsd_service must
not be denied because of the readonly attribute. That check was
performed during the CreateFile. Otherwise, a new file can be
created with the readonly attribute and then not be writable.
Reviewed-on: http://gerrit.openafs.org/10985
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit dd8d2aa871fc5841c281d1292c39ffb8edf1ebd1)
Change-Id: I6c941c9a8323a9b699135005ef901d5f56f5288d
Reviewed-on: http://gerrit.openafs.org/11083
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp | 12 ++++++++++++
src/WINNT/afsrdr/kernel/lib/AFSWrite.cpp | 2 +-
src/WINNT/afsrdr/user/RDRFunction.c | 11 +++++++++--
3 files changed, 22 insertions(+), 3 deletions(-)
--
OpenAFS Master Repository