home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!eba!svin09!wzv!wietse
- From: wietse@wzv.win.tue.nl (Wietse Venema)
- Newsgroups: comp.unix.programmer
- Subject: Re: shared library and setuid process
- Message-ID: <4308@wzv.win.tue.nl>
- Date: 19 Dec 92 22:02:53 GMT
- References: <1992Dec18.144252.5112@ccd.harris.com>
- Sender: news@eb.ele.tue.nl (The News system)
- Organization: Eindhoven University of Technology, The Netherlands
- Lines: 16
-
- mishra@controls.ccd.harris.com (Sanjoy Mishra) writes:
-
- >Is there a machine independent way of linking a shared library to make
- >a setuid process. LD_LIBRARY_PATH fails if the process is setuid and is
- >owned by root.
-
- Owner does not matter; the point is that LD_xxx variables are ignored
- when as the effective uid differs from the real uid.
-
- Running a set-uid program causes the effective uid of the process to be
- set to the owner of the executable. The real uid remains unchanged.
-
- You do not want LD_xxx variables to be honoured, because that makes
- all programs run by your set-uid program vulnerable to trojan horses.
-
- Wietse
-