Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e27108d1ed16220a4890f0ac44686f06457fcb4d
Ticket: 3385749fffffffffffffffffffffffffffffffff
File open failures audited
User & Date: sampsonr on 2011-08-03 17:36:31
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    At some points in the TCL C source, as well as in init.tcl, auto.tcl, and autoload.tcl, there are are file open(read) operations that do not check first to see if the file exists.  Instead, they rely on a catch, or reacting to the open calls' return code. 
    
    Granted, this is a fairly common programming practice, but it presents a hassle in environments where the system is subject to high-level auditing (e.g. government systems). In those cases, every single failed file open call results in an audit record being generated. On a system with hundreds of users, this contributes to a management burden for the S/A.
    
    I recommend that each such open attempt be wrapped with a [file exists] or a stat() call in the C. 
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "sampsonr"
  10. subsystem changed to: "38. Init - Library - Autoload"
  11. title changed to: "File open failures audited"
  12. type changed to: "Bug"