Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2007 18:00:28 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/libexec/rtld-elf rtld.c
Message-ID:  <200705171800.l4HI0TmL077802@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2007-05-17 18:00:28 UTC

  FreeBSD src repository

  Modified files:
    libexec/rtld-elf     rtld.c 
  Log:
  In the event a process is tainted (setuid/setgid binaries), un-set any
  potentially dangerous environment variables all together. It should be
  noted that the run-time linker will not honnor these environment variables
  if the process is tainted currently. However, once a child of the tainted
  process calls setuid(2), it's status as being tainted (as defined by
  issetugid(2)) will be removed. This could be problematic because
  subsequent activations of the run-time linker could honnor these
  dangerous variables.
  
  This is more of an anti foot-shot mechanism, there is nothing I am
  aware of in base that does this, however there may be third party
  utilities which do, and there is no real negative impact of clearing
  these environment variables.
  
  Discussed on:   secteam
  Reviewed by:    cperciva
  PR:             kern/109836
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.124     +20 -10    src/libexec/rtld-elf/rtld.c



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