|
|
|
@ -174,17 +174,15 @@ int Booster::launchProcess()
|
|
|
|
if (!errno && cur_prio < m_app.priority())
|
|
|
|
if (!errno && cur_prio < m_app.priority())
|
|
|
|
setpriority(PRIO_PROCESS, 0, m_app.priority());
|
|
|
|
setpriority(PRIO_PROCESS, 0, m_app.priority());
|
|
|
|
|
|
|
|
|
|
|
|
// Possible set user ID and group ID of calling process
|
|
|
|
// Set user ID and group ID of calling process if differing
|
|
|
|
uid_t uid = getuid();
|
|
|
|
// from the ones we got from invoker
|
|
|
|
gid_t gid = getgid();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (uid != m_app.userId())
|
|
|
|
if (getuid() != m_app.userId())
|
|
|
|
setuid(m_app.userId());
|
|
|
|
setuid(m_app.userId());
|
|
|
|
|
|
|
|
|
|
|
|
if (gid != m_app.groupId())
|
|
|
|
if (getgid() != m_app.groupId())
|
|
|
|
setgid(m_app.groupId());
|
|
|
|
setgid(m_app.groupId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Load the application and find out the address of main()
|
|
|
|
// Load the application and find out the address of main()
|
|
|
|
void* handle = loadMain();
|
|
|
|
void* handle = loadMain();
|
|
|
|
|
|
|
|
|
|
|
|
|