VirtualBox

Changeset 71589 in vbox for trunk


Ignore:
Timestamp:
Mar 31, 2018 6:32:58 PM (7 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Added macros for marking various types of untrusted data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r69686 r71589  
    15721572#endif
    15731573
     1574
     1575/** @name Untrusted data classifications.
     1576 * @{ */
     1577/** @def RT_UNTRUSTED_USER
     1578 * For marking non-volatile (race free) data from user mode as untrusted.
     1579 * This is just for visible documentation. */
     1580#define RT_UNTRUSTED_USER
     1581/** @def RT_UNTRUSTED_VOLATILE_USER
     1582 * For marking volatile data shared with user mode as untrusted.
     1583 * This is more than just documentation as it specifies the 'volatile' keyword,
     1584 * because the guest could modify the data at any time. */
     1585#define RT_UNTRUSTED_VOLATILE_USER      volatile
     1586
     1587/** @def RT_UNTRUSTED_GUEST
     1588 * For marking non-volatile (race free) data from the guest as untrusted.
     1589 * This is just for visible documentation. */
     1590#define RT_UNTRUSTED_GUEST
     1591/** @def RT_UNTRUSTED_VOLATILE_GUEST
     1592 * For marking volatile data shared with the guest as untrusted.
     1593 * This is more than just documentation as it specifies the 'volatile' keyword,
     1594 * because the guest could modify the data at any time. */
     1595#define RT_UNTRUSTED_VOLATILE_GUEST     volatile
     1596
     1597/** @def RT_UNTRUSTED_HOST
     1598 * For marking non-volatile (race free) data from the host as untrusted.
     1599 * This is just for visible documentation. */
     1600#define RT_UNTRUSTED_HOST
     1601/** @def RT_UNTRUSTED_VOLATILE_HOST
     1602 * For marking volatile data shared with the host as untrusted.
     1603 * This is more than just documentation as it specifies the 'volatile' keyword,
     1604 * because the host could modify the data at any time. */
     1605#define RT_UNTRUSTED_VOLATILE_HOST      volatile
     1606
     1607/** @def RT_UNTRUSTED_HSTGST
     1608 * For marking non-volatile (race free) data from the host/gust as untrusted.
     1609 * This is just for visible documentation. */
     1610#define RT_UNTRUSTED_HSTGST
     1611/** @def RT_UNTRUSTED_VOLATILE_HSTGST
     1612 * For marking volatile data shared with the host/guest as untrusted.
     1613 * This is more than just documentation as it specifies the 'volatile' keyword,
     1614 * because the host could modify the data at any time. */
     1615#define RT_UNTRUSTED_VOLATILE_HSTGST    volatile
     1616/** @} */
    15741617
    15751618
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