GIT Log for 2008-12-15 00:33 GMT

aland aland at deployingradius.com
Mon Dec 15 01:33:01 CET 2008


commit 047fe5ca74e3de2c7f32f98154d6655c0cfd7181
Author: Alan T. DeKok <aland at freeradius.org>
Date:   Sun Dec 14 10:31:17 2008 +0100

    Change where we do suid up/down.
    
    If the server starts as root, but it supposed to run as another
    user, we want to *temporarily* drop permissions very early.  Then,
    when binding to privileged sockets, we re-gain permissions.
    Once all of the sockets are open, we drop them permanently.
    
    However, if we suid up for *all* sockets, then the control socket
    will be created as root, rather than as the unprivileged user.
    To fix that, we put suid up/down just around the 2 calls that
    need it.

Files changed:
 src/include/radiusd.h |    3 -
 src/main/event.c      |   78 +++++++++++++++++++++++++++------
 src/main/listen.c     |   22 +++-------
 src/main/mainconfig.c |  116 +++++++++---------------------------------------
 4 files changed, 92 insertions(+), 127 deletions(-)

======================================================================
commit 7e1186f96db5c71315f774be1e1ea781098eb38c
Author: Alan T. DeKok <aland at freeradius.org>
Date:   Sun Dec 14 09:48:03 2008 +0100

    Work around issue in gmake.
    
    We were using PWD, and expecting it to be the current directory.
    But apparently that's not how gmake works.  We have to call
    $(shell pwd) instead.

Files changed:
 src/modules/rules.mak |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

======================================================================



More information about the Freeradius-Devel mailing list