VirtualBox

Changeset 77073 in vbox for trunk


Ignore:
Timestamp:
Jan 31, 2019 12:54:25 PM (6 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Also check process priority flags in GuestSession::i_processCreateEx() and point out whats validated where.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r77072 r77073  
    23622362    }
    23632363
     2364    if (procInfo.mPriority)
     2365    {
     2366        if (!(procInfo.mPriority & ProcessPriority_Default))
     2367            return VERR_INVALID_PARAMETER;
     2368    }
     2369
    23642370    /* Adjust timeout.
    23652371     * If set to 0, we define an infinite timeout (unlimited process run time). */
     
    40154021        return hr;
    40164022
    4017     /** @todo r=bird: Check input better? aPriority is passed on to the guest
    4018      * without any validation.  Flags not existing in this vbox version are
    4019      * ignored, potentially doing something entirely different than what the
    4020      * caller had in mind. */
    4021 
    40224023    /*
    40234024     * Must have an executable to execute.  If none is given, we try use the
     
    40324033            return setError(E_INVALIDARG, tr("No command to execute specified"));
    40334034    }
     4035
     4036    /* The rest of the input is being validated in i_processCreateEx(). */
    40344037
    40354038    LogFlowThisFuncEnter();
Note: See TracChangeset for help on using the changeset viewer.

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