"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/extensions/localworker.cpp" between
openlitespeed-1.6.3.src.tgz and openlitespeed-1.6.4.src.tgz

About: OpenLiteSpeed is a high-performance, lightweight HTTP server with optional HTTP/2 support (open sourve version of the commercial LiteSpeed Web Server). Sources.

localworker.cpp  (openlitespeed-1.6.3.src.tgz):localworker.cpp  (openlitespeed-1.6.4.src.tgz)
skipping to change at line 411 skipping to change at line 411
const HttpVHost *pVHost = config.getVHost(); const HttpVHost *pVHost = config.getVHost();
uid = config.getUid(); uid = config.getUid();
gid = config.getGid(); gid = config.getGid();
if ((int)uid == -1) if ((int)uid == -1)
uid = procConfig.getUid(); uid = procConfig.getUid();
if ((int)gid == -1) if ((int)gid == -1)
gid = procConfig.getGid(); gid = procConfig.getGid();
if (pVHost) if (pVHost)
{ {
LS_DBG_H("[LocalWorker::workerExec] VHost:%s suExec check " LS_NOTICE("[LocalWorker::workerExec] VHost:%s suExec check "
"uid %d gid %d setuidmode %d.", "uid %d gid %d setuidmode %d.",
pVHost->getName(), pVHost->getUid(), pVHost->getGid(), pVHost->getName(), pVHost->getUid(), pVHost->getGid(),
pVHost->getRootContext().getSetUidMode()); pVHost->getRootContext().getSetUidMode());
} }
if (pVHost && pVHost->getRootContext().getSetUidMode() == UID_DOCROOT) if (pVHost && pVHost->getRootContext().getSetUidMode() == UID_DOCROOT)
{ {
uid = pVHost->getUid(); uid = pVHost->getUid();
gid = pVHost->getGid(); gid = pVHost->getGid();
if (procConfig.getForceGid() != 0) if (procConfig.getForceGid() != 0)
skipping to change at line 483 skipping to change at line 483
SUExec::buildArgv(achBuf, &pDir, argv, 256); SUExec::buildArgv(achBuf, &pDir, argv, 256);
if (pDir) if (pDir)
*(argv[0] - 1) = '/'; *(argv[0] - 1) = '/';
else else
pDir = argv[0]; pDir = argv[0];
SUExec::getSUExec()->prepare(uid, gid, config.getPriority(), SUExec::getSUExec()->prepare(uid, gid, config.getPriority(),
config.getUmask(), config.getUmask(),
pChrootPath, chrootLen, pChrootPath, chrootLen,
pDir, strlen(pDir), config.getRLimits()); pDir, strlen(pDir), config.getRLimits());
LS_INFO("[LocalWorker::workerExec] Config[%s]: suExec uid %d gid %d cmd %s," LS_NOTICE("[LocalWorker::workerExec] Config[%s]: suExec uid %d gid %d cmd %s ,"
" final uid %d gid %d.", " final uid %d gid %d.",
config.getName(), config.getUid(), config.getName(), config.getUid(),
config.getGid(), config.getCommand(), config.getGid(), config.getCommand(),
uid, gid); uid, gid);
int rfd = -1; int rfd = -1;
int pid; int pid;
//if ( config.getStartByServer() == 2 ) //if ( config.getStartByServer() == 2 )
//{ //{
pid = SUExec::getSUExec()->cgidSuEXEC( pid = SUExec::getSUExec()->cgidSuEXEC(
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)