home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v5 / text0044.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.4 KB

  1. Date: Sun, 9 Feb 86 22:00:20 pst
  2. >From: pyramid!csg (Carl S. Gutekunst)
  3. Organization: Pyramid Technology Corp., Mountain View, CA
  4.  
  5. >> The answer is only to do limited operations when in setuid.  The best
  6. >> way to do this would be to allow processes to painlessly shift back and
  7. >> forth between their real-uid and effective-uid.  This is allowed, but
  8. >> not documented on BSD, but appears not to be allowed at all on SV.
  9. >
  10. >System Vr2 allows a non-root setuid process to call setuid(2) with either
  11. >the real uid or the saved effective uid, allowing the process to painlessly
  12. >switch back and forth. This change occurred between System V and Vr2.
  13.  
  14. Something is silly here; if you think it's important I'd appreciate it if
  15. you'd verify this with someone who knows:
  16.  
  17. System V has always had the ability to switch the effective UID between the
  18. real UID and the saved effective UID. (And it isn't documented, BTW. We
  19. discovered it the hard way when some of the V.0 utilities wouldn't run.)
  20. Berkeley, however, has never had this capability. There are a number of other
  21. curious variations and exceptions, although that's fodder for net.unix... :-) 
  22.  
  23. [ Does anybody know when the capability was introduced?  PWB, System III,
  24. System V?  As for what BSD has along these lines, see previous article.
  25.  
  26. I'm beginning to agree that this discussion really belongs on net.unix.
  27. -mod ]
  28.  
  29. <csg>
  30.  
  31. Volume-Number: Volume 5, Number 45
  32.  
  33.