OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-4220-gdd8d2aa
Gerrit Code Review
gerrit@openafs.org
Wed, 16 Apr 2014 21:10:59 -0700 (PDT)
The following commit has been merged in the master branch:
commit dd8d2aa871fc5841c281d1292c39ffb8edf1ebd1
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.
Change-Id: I921a11eb8c1a3e642d60c23fc905b3febc0f0761
Reviewed-on: http://gerrit.openafs.org/10985
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