home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / solaris / 332 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.2 KB

  1. Xref: sparky comp.unix.solaris:332 comp.unix.bsd:9079
  2. Newsgroups: comp.unix.solaris,comp.unix.bsd
  3. Path: sparky!uunet!think.com!ames!agate!doc.ic.ac.uk!syma!tauk0
  4. From: tauk0@syma.sussex.ac.uk (Fredrik Staxang)
  5. Subject: Re: Solaris 1.1 vs. Solaris 2.0 (BSD vs AT&T)
  6. Message-ID: <1992Nov19.165146.22006@syma.sussex.ac.uk>
  7. Organization: University of Sussex
  8. References: <1992Nov13.232053.7061@sjsumcs.sjsu.edu> <1992Nov15.014513.28154@nobeltech.se> <1992Nov15.035135.15514@ra.msstate.edu>
  9. Date: Thu, 19 Nov 1992 16:51:46 GMT
  10. Lines: 23
  11.  
  12. In article <1992Nov15.035135.15514@ra.msstate.edu> fwp@CC.MsState.Edu (Frank Peters) writes:
  13. >scales better to the larger systems sun is beginning to offer (there is
  14. >a reason that just about every large scale multiprocessor system vendor
  15. >from Sequent to Cray uses SYSV).
  16.       ^^^^^^^
  17.  
  18. Sequent uses a BSD kernel, very thinly disguised. Eg. the following does not
  19. work in setuid program. 
  20.  
  21. real = getuid() ;
  22. eff = geteuid() ;
  23. setuid(real) ;
  24. system("..") ;
  25. setuid(eff) ; /* This fails, whereas in SysV it works */
  26.  
  27. So instead you use setreuid(), which is a BSD call. There is also som other
  28. things that work the BSD way, but the real giveaway is when you start to look 
  29. at the VM system.
  30.  
  31. /Fredrik
  32.  
  33.  
  34.  
  35.