home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / softsys / andrew / 1360 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.9 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!rchland.ibm.com!tinglett+
  2. From: tinglett+@rchland.ibm.com (Todd Inglett)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: Re: Making a hyperlink running another program ?
  5. Message-ID: <If0acMM91JbdJJYGcA@rchland.ibm.com>
  6. Date: 12 Nov 92 14:28:40 GMT
  7. References: <1992Nov11.094617.15591@atomica.fi>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Reply-To: "Todd Inglett" <tinglett@vnet.ibm.com>
  10. Distribution: world
  11. Organization: The Internet
  12. Lines: 29
  13.  
  14. Excerpts from ext.misc.info-andrew: 11-Nov-92 Making ahyperlink running
  15. .. Dag Nygren@bloom-beacon. (533)
  16.  
  17. > is there a way of using pushbuttons to run other programs from a ezdocument?
  18.  
  19. I just finished a small project which does just this, however it is a
  20. bit moredifficult than to simply create a button that runs a command. 
  21. Obviously thecommand could do something malicious.  Just look at the
  22. hoops that ness goesthrough to protect users!
  23.  
  24. My idea is to create a button (I call it runbutton for lack of abetter
  25. name) that could run an arbitrary command, but the ordinary PATH isnot
  26. used to execute the command.  Instead a preference is used tosearch a
  27. limited set of directories.  Presumably administrators would policethe
  28. commands in those directories.  Also, the command name cannot
  29. containslashes (no absolute or ../../xxx relative commands).  It also
  30. does not use ashell to execute the command so shell metacharacters like
  31. backquote are notinterpreted.
  32.  
  33. I also plan to look for command's whose names are the form xxx.n, which
  34. I willassume is a ness script.  In this case, I will compile and execute
  35. the nesscode automatically when the button is pushed.  This allows the
  36. ness to takecontrol of the window, asking questions, etc.
  37.  
  38. Anybody see any security holes in this plan?  I haven't looked at the
  39. Nessidea too closely yet, but it looks trivial.  I don't know about
  40. securitythere, though.
  41.  
  42. -todd inglett
  43.