lkml.org 
[lkml]   [2004]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRE: [PATCH] Handle non-readable binfmt misc executables
    Date
    From
    >-----Original Message-----
    >From: Albert Cahalan [mailto:albert@users.sourceforge.net]
    >Sent: Sunday, June 20, 2004 15:17
    >To: Zach, Yoav
    >Cc: linux-kernel mailing list
    >Subject: RE: [PATCH] Handle non-readable binfmt misc executables
    >


    >So the content of /proc/*/cmdline is correct?
    >

    After the translator fixes it - yes.

    >At a minimum, you will have a problem at startup.
    >The process might be observed before you fix argv.
    >

    Right. It might happen once in a (long) while that
    'ps -f' doesn't show the correct command line.

    >What about apps that walk off the end of argv to get
    >at the environment?
    >

    Please note that the stack is that of the translator, which
    is aware of the fixing of argv.

    >It seems cleaner to use some other mechanism.
    >Assuming your interpreter is ELF, ELF notes are good.

    Using ELF notes means changing the binaries, which is not
    suitable for cases where the use of translator for running
    the binaries is not 'known' to the binaries. For example,
    an administrator might start using a translator to enhance
    performance of existing binaries. In such a case, re-building
    the binaries will probably be out of the question.

    >You might use prctl().
    >

    Do you mean enhancing sys_prctl to allow for fixing
    the argv ?

    Thanks,
    Yoav.
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:04    [W:3.219 / U:1.620 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site