VirtualBox

Changeset 49530 in vbox


Ignore:
Timestamp:
Nov 18, 2013 1:08:36 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90705
Message:

Runtime/posix/process-creation: handle supplemental groups properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp

    r48935 r49530  
    4040#include <fcntl.h>
    4141#include <signal.h>
     42#include <grp.h>
    4243#if defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS)
    4344# include <crypt.h>
     
    586587             */
    587588#if 1 /** @todo This needs more work, see suplib/hardening. */
     589            if (pszAsUser)
     590            {
     591                int ret = initgroups(pszAsUser, gid);
     592                if (ret)
     593                {
     594                    if (fFlags & RTPROC_FLAGS_DETACHED)
     595                        _Exit(126);
     596                    else
     597                        exit(126);
     598                }
     599            }
    588600            if (gid != ~(gid_t)0)
    589601            {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette