The following commit has been merged in the master branch:
commit dd8d2aa871fc5841c281d1292c39ffb8edf1ebd1
Author: Jeffrey Altman <[email protected]>
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 <[email protected]>
    Reviewed-by: Jeffrey Altman <[email protected]>

 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
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to