home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!caen!uvaarpa!mmdf
- From: Al Gaspar <gaspar@stepsun.army.mil>
- Subject: setuid question
- Message-ID: <1992Dec23.211810.9925@uvaarpa.Virginia.EDU>
- Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
- Reply-To: gaspar@st-louis-emh2.army.mil
- Organization: The Internet
- Date: Wed, 23 Dec 1992 21:18:10 GMT
- Lines: 26
-
-
- This is probably a dumb question, but... I am trying to write a setuid
- program using taintperl and the suidscript utility. I want to be able
- to open a pipe from ps and check for some particular processes running.
- No matter what I try with execs or opens, it won't let me get at the
- output of that ps. Even trying to capture it into a file first doesn't
- seem to work. Taintperl continues to bitch that my path is insecure.
- I have tried the following:
-
- 1. open(FOO,"ps ax|");
- 2. open(FOO,"-|") || exec 'ps -af';
- 3. various combinations of exec to try and capture the ps output
- to a file.
-
- Tainperl keeps saying that my path is insecure. Is there a way to do
- this? Thanks for the help.
-
- Cheers, Happy, Happy, Merry, Merry--
-
- Al
-
- --
- Al Gaspar <gaspar@st-louis-emh2.army.mil>
- USAMC SIMA, ATTN: AMXSI-TTC, 1222 Spruce St., St. Louis, MO 63103-2834
- COMMERCIAL: (314) 331-4354 AUTOVON: 555-4354
- relay1.uu.net!st-louis-emh2.army.mil!gaspar
-