Re: Changing argv[0] under Linux.

From: DervishD (raul@pleyades.net)
Date: Thu Jan 16 2003 - 05:32:58 EST


    Hi Jon :)

> exec("/proc/self/exe", ...)

    That's good, but I would like to avoid to mount procfs: what if
the mount point '/proc' doesn't exist? If you create it, you must
mount root rw and remount ro again, not a very good idea if it
haven't been fscked yet, for example. You can mount under /tmp, if it
exists at all, but that simply displaces the problem. What if
/proc/self/exe is not part form procfs, but from some evil user ;))

    Thanks a lot for your answer :)

    Raśl
-
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/



This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 22:00:12 EST