Re: [PATCH] Drop root privileges (if we have them)

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

 



To summarize:
*) we will use -u (--user) command line option to specify
    "run as" user,
*) group is not configurable;
*) I would rather do not add anything new to the config,
    command line option is enough,
*) user is changed before pid/trace files are created,
    so these receive proper ownership,
*) if user change fails gnugk should be terminated
    and an approtiate message displayed,
*) no IsPrivileged... test,
*) user change code should be surrounded with
    #ifdef HAS_SETUSERNAME
    #endif
    
    HAS_SETUSERNAME will be set by configure script
    in the future. Now it will be sufficient to put at the top of gk.cxx
    #ifndef _WIN32
    #define HAS_SETUSERNAME 1
    #endif

---
Zygmuntowicz Michal


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux