Date: Mon, 25 Apr 2011 10:14:29 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh options.c Message-ID: <201104251014.p3PAEdZK011032@repoman.freebsd.org>
index | next in thread | raw e-mail
jilles 2011-04-25 10:14:29 UTC
FreeBSD src repository
Modified files:
bin/sh options.c
Log:
SVN rev 221012 on 2011-04-25 10:14:29Z by jilles
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.
MFC after: 1 week
Revision Changes Path
1.35 +4 -2 src/bin/sh/options.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104251014.p3PAEdZK011032>
