home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3929 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.8 KB  |  36 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!uunet.ca!cognos!dealwisb
  3. From: dealwisb@cognos.com (Brian de Alwis)
  4. Subject: Re: named pipes (was: Finger and .plan, .project)
  5. Message-ID: <1992Jul26.234959.23251@cognos.com>
  6. Keywords: named pipes, fopen, popen, .plan, .profile, .signature
  7. Organization: Cognos Incorporated, Ottawa CANADA
  8. References: <19076@fritz.filenet.com> <14u80cINNbd8@grasp1.univ-lyon1.fr> <1992Jul26.165838.1278@news.eng.convex.com>
  9. Date: Sun, 26 Jul 1992 23:49:59 GMT
  10. Lines: 24
  11.  
  12. In article <1992Jul26.165838.1278@news.eng.convex.com> tchrist@pixel.convex.COM
  13. (Tom Christiansen) writes:
  14. >What programs would break drastically if we changed the library fopen()
  15. >call to either accept "rx"/"wx" to indicate a popen(), or else for the
  16. >sake of transparency, to have it stat() the file and check for the execute
  17. >bit?  (Should we to do it for open() as well?  Probably.)  Certainly editors
  18. >would prefer the former solution, but most general purpose programs the
  19. >latter one.
  20.  
  21. What would happen if a program did an open/fopen on a directory? Many
  22. directories have rx/wx on them... I like your idea, however, I'd
  23. suggest having a special group for these files. When fopen/open
  24. detected this special group, they would do the popen. Since no user
  25. would belong to this group, only the owner would be able to edit it
  26. (provided appropriate permissions were setup).
  27.  
  28. The largest problems I see with the above would be the uid/gid that the
  29. file would be executed under - I'd suggest the uid/gid a la
  30. set[ug]id(); handling of command-line arguments (none); and set[ud]id
  31. bits (ignore them?).
  32. -- 
  33. +++BdA  Brian de Alwis. Brain on loan to Cognos Inc, Ottawa, Ontario.
  34.     dealwisb@cognos.com, or bsdealwi@napier.{waterloo.edu,uwaterloo.ca}
  35.     "Nine out of ten men who tried camels said they preferred women"
  36.