Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jun 2005 03:34:50 +0000 (UTC)
From:      Dima Dorfman <dd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_descrip.c
Message-ID:  <200506250334.j5P3YoOw011205@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dd          2005-06-25 03:34:49 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c 
  Log:
  Fix fdcheckstd to pass the file descriptor along through vn_open. When
  opening a device, devfs_open needs the file descriptor to install its
  own fileops. Failing to pass the file descriptor causes the vnode to
  be returned with the regular vnops, which will cause a panic on the
  first read or write because devfs_specops is not meant to support
  those operations.
  
  This bug caused a panic after exec'ing any set[ug]id program with
  fds 0..2 closed (i.e., if any action had to be taken by fdcheckstd, we
  would panic if the exec'd program ever tried to use any of those
  descriptors).
  
  Reviewed by:    phk
  Approved by:    re (scottl)
  
  Revision  Changes    Path
  1.279     +1 -1      src/sys/kern/kern_descrip.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506250334.j5P3YoOw011205>