home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / internal / 1962 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.unix.internals
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!stanford.edu!leland.Stanford.EDU!dkeisen
  3. From: dkeisen@leland.Stanford.EDU (Dave Eisen)
  4. Subject: Re: Changing the owner of a process
  5. Message-ID: <1992Nov17.231339.29632@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Sequoia Peripherals, Inc.
  8. References: <1992Nov5.152833.27744@dale.ksc.nasa.gov> <1992Nov17.142837.21252@dale.ksc.nasa.gov> <Uf2Hn7G00WB4MtP4gQ@andrew.cmu.edu>
  9. Date: Tue, 17 Nov 92 23:13:39 GMT
  10. Lines: 27
  11.  
  12. In article <Uf2Hn7G00WB4MtP4gQ@andrew.cmu.edu> Tod McQuillin <tm8t+@andrew.cmu.edu> writes:
  13. >> What I was looking for was something along the lines of how to change the 
  14. >> effective user id of a process who's source I may not be able to modify, by 
  15. >> some other means, e.g. from another process.  Many suggested writing a device
  16. >> driver or system call to do this.  Here is one answer along those lines. 
  17.  
  18. >Yeah, but you don't need a device driver to do that.  Just use
  19. >/dev/kmem, /vmunix, and nlist(3).
  20.  
  21. True. But....
  22.  
  23. There is some risk involved in fiddling with /dev/kmem this way. It
  24. is quite possible for the process in question to disappear between
  25. the time you read /dev/kmem to find the proc table slot and the
  26. time you write the new value back. This could cause massive security
  27. problems if an unrelated process has started and was assigned this
  28. slot.
  29.  
  30. I'd probably do this using /dev/kmem if I were to do it. But using a
  31. driver is definitely safer.
  32.  
  33.  
  34. -- 
  35. Dave Eisen                               Sequoia Peripherals: (415) 967-5644
  36. dkeisen@leland.Stanford.EDU              Home:                (415) 321-5154
  37.        There's something in my library to offend everybody. 
  38.           --- Washington Coalition Against Censorship
  39.