cvs commit: src/sys/kern kern_fork.c

Colin Percival cperciva at FreeBSD.org
Mon Jul 26 00:54:40 PDT 2004


cperciva    2004-07-26 07:54:39 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_fork.c 
  Log:
  In revision 1.228, I accidentally broke the "total number of processes in
  the system" resource limit code: When checking if the caller has superuser
  privileges, we should be checking the *real* user, not the *effective*
  user.  (In general, resource limiting is done based on the real user, in
  order to avoid resource-exhaustion-by-setuid-program attacks.)
  
  Now that a SUSER_RUID flag to suser_cred exists, use it here to return
  this code to its correct behaviour.
  
  Pointed out by: rwatson
  
  Revision  Changes    Path
  1.231     +2 -1      src/sys/kern/kern_fork.c


More information about the cvs-src mailing list