Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2011 22:07:02 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh options.c
Message-ID:  <201105052207.p45M7GFv058781@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2011-05-05 22:07:02 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    bin/sh               options.c 
  Log:
  SVN rev 221515 on 2011-05-05 22:07:02Z by jilles
  
  MFC r221012: sh: Check setuid()/setgid() return values.
  
  If the -p option is turned off, privileges from a setuid or setgid binary
  are dropped. Make sure to check if this succeeds. If it fails, this is an
  error which will cause the shell to abort except in interactive mode or if
  'command' was used to make 'set' or an outer 'eval' or '.' non-special.
  
  Note that taking advantage of this feature and writing setuid shell scripts
  seems unwise.
  
  Revision  Changes    Path
  1.27.2.6  +4 -2      src/bin/sh/options.c



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