Re: Suggestion for a new system call: convert file handle to a cookie for transfering file handles between processes.

From: RAMON_GARCIA_F (RAMON_GARCIA_F_at_terra.es)
Date: 07/21/03

  • Next message: Michael Abshoff: "Re: Problems with kernel 2.5.75 (Urgent)"
    To: linux-kernel@vger.kernel.org
    Date:	Mon, 21 Jul 2003 18:55:24 +0200
    
    

    My proposal is useful for cases where the server program is running with
    a different priviledge from the user invoking it. Examples where this
    behaviour is useful are writting CDs, saving man pages, saving TeX cache
    files, where full access to a resource would be unsafe, but limited
    access through an intermediate server is safe.

    In addition, this proposal is useful for cases where the server process
    cannot access the named file, becaue it does not have permission to do
    so, or because it is anonymous (example: a pipe).

    I can't see why cookies introduce circular references. A cookie referes
    to an inode, but an inode does not refer to a file.

    However, a cookie introduces a permanent reference to a file handle.
    This reference is not destroyed until the cookie is used. Therefore,
    cookies should have a timeout associated with them, so that if they
    are not consumed they should be destroyed.

    Ramon

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Michael Abshoff: "Re: Problems with kernel 2.5.75 (Urgent)"

    Relevant Pages

    • Re: message communication (VMS <> PC)
      ... The server was on a PC; I needed code to allow a VMS client (one per ... reference local_addr. ... if sys_status not = ss$_normal go to fini. ...
      (comp.os.vms)
    • Re: error code 0x80072EFD
      ... [CallerId = AutomaticUpdates] ... cookie, reporting URL = ... the server with hr = 80072efd. ...
      (microsoft.public.windowsupdate)
    • Re: Login for access to certain pages or parts?
      ... I know roughly what an .htaccess file is and I have access to more than this on my own server, but not more on commercial servers that host various sites I have made or maintain. ... The successful login routine sets the cookie by testing to see if the password the user has entered matches the one in your database for that user. ... For pages that can be accessed by multiple groups, your authorize function could be passed a comma-delimited list of allowable groups for that page. ... // Authorizes user based on group, redirects if necessary. ...
      (alt.php)
    • Re: 4-way Opteron vs. Xeon-IBM X3 architecture
      ... >>>The point here is that the issue concerns both speed AND capacity. ... >As to the reference, the message header points right back in this thread, ... >>>As you may suspect, I read plenty about memory systems, and I would ... >>>from the enthusiast market and assumed that it would work in the server ...
      (comp.sys.ibm.pc.hardware.chips)
    • Chicken and egg issue with Cookie based login?
      ... I have few questions I hope someone can clear up for me with the cookie ... private web server. ... It also says this about the secret key: ... Second, would be an example of the "Session ID" or more general, what is an ...
      (comp.security.misc)