DragonFly BSD
DragonFly commits List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: sh: Remove duplicate code resetting uid/gid for set +p/+o privileged.


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Aug 2011 16:31:57 -0700 (PDT)

commit 1bf9817349b98799b92b1e764d4d0855695ce4ea
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date:   Sat Jul 2 13:47:49 2011 -1000

    sh: Remove duplicate code resetting uid/gid for set +p/+o privileged.
    
    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.
    
    Obtained-from:   FreeBSD SVN rev 221011 & 221012

Summary of changes:
 bin/sh/options.c |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1bf9817349b98799b92b1e764d4d0855695ce4ea


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]