Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 708c29db03110212ac696a25bcd7531e2f6c1f8a
Ticket: 930225ffffffffffffffffffffffffffffffffff
access() - safe to use?
User & Date: dkf on 2004-04-06 21:38:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    OK, access(2) is broken-by-design but we can't substitute
    for anything else.  Solution is for *users* to avoid it when
    running in a Tcl interpreter with non-trivial privileges. 
    In theory we could enforce this by refusing to call access()
    when the real and effective [ug]ids are different, but that
    would be very intrusive.
    
    A better solution would be to provide access to something
    like fstat() so that code could check that it has opened
    what it thinks it has opened...?
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"