cvs commit: src/sys/kern kern_resource.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Mar 16 10:55:07 PDT 2008


pjd         2008-03-16 17:55:06 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_resource.c 
  Log:
  Fix information leak. We can find PIDs of running processes from within
  a jail, etc. by simply calling setpriority(PRIO_PROCESS, <PID>, 0) and
  checking the return value: 0 means that the process exists and -1 that
  it doesn't exist.
  
  Reviewed by:    rwatson
  MFC after:      1 week
  
  Revision  Changes    Path
  1.184     +2 -1      src/sys/kern/kern_resource.c


More information about the cvs-src mailing list