home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 21179 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!usc!howland.reston.ans.net!sol.ctr.columbia.edu!eff!world!ksr!zdenek
  2. From: zdenek@ksr.com (Zdenek Radouch)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: ps and /dev/kmem
  5. Message-ID: <20282@ksr.com>
  6. Date: 20 Dec 92 19:22:03 GMT
  7. References: <1992Dec18.063831.24368@news.stolaf.edu> <20234@ksr.com> <1992Dec19.122420.11305@klaava.Helsinki.FI>
  8. Sender: news@ksr.com
  9. Organization: Kendall Square Research Corp.
  10. Lines: 29
  11.  
  12. I wrote:
  13.    This is unfortunately impossible to do with a single executable (you
  14.    need two, one suid) under POSIX or Sys V, so GNUmake will not work on
  15.    these machines.
  16.  
  17. >Gee, I had no problem configuring out the load average counting in GNU
  18. >make.  I didn't want it (even under Linux) because of the set_g_id
  19. >stuff, so I changed the Makefile as indicated in itself, and it
  20. >worked.  Can't imagine why it wouldn't work under POSIX or SYSV.
  21. >
  22. >--
  23.  
  24. Yes, you can configure the loading stuff out, but as I said in my article,
  25. the problem is that they coded the whole program assuming that it would
  26. have to toggle uid (to be able to go to /dev/kmem).  Unfortunately, they
  27. didn't understand how the get/setuid() work under POSIX or SystemV so
  28. the GNUmake will either screw up your permissions or simply fail, if
  29. you invoke it with uid != euid. The only way to fix it is (assuming
  30. you don't need to suid) is to edit out all the get/setuid code since
  31. it can't be disabled.
  32.  
  33. My point was that not only is /dev/kmem concept and its hacking questionable
  34. because it requires recompiling, but it also involves complete understanding
  35. of security issues and definitions of setuid(). Setuid under POSIX and
  36. SystemV is very complicated and different from BSD setuid.
  37.  
  38. When I get more time I'll take a look at the linux implementation and
  39. tell you if it's POSIX compliant.
  40. -Z
  41.