Print this page
uts: add a concept of a 'default' set of privileges, separate from 'basic'

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/priv.h
          +++ new/usr/src/uts/common/sys/priv.h
↓ open down ↓ 175 lines elided ↑ open up ↑
 176  176          char            names[1];       /* "string1\0string2\0 ..stringN\0" */
 177  177  } priv_info_names_t;
 178  178  
 179  179  /*
 180  180   * Privilege information types.
 181  181   */
 182  182  #define PRIV_INFO_SETNAMES              0x0001
 183  183  #define PRIV_INFO_PRIVNAMES             0x0002
 184  184  #define PRIV_INFO_BASICPRIVS            0x0003
 185  185  #define PRIV_INFO_FLAGS                 0x0004
      186 +#define PRIV_INFO_DEFAULTPRIVS          0x0005
 186  187  
 187  188  /*
 188  189   * Special "privileges" used to indicate special conditions in privilege
 189  190   * debugging/tracing code.
 190  191   */
 191  192  #define PRIV_ALL                        (-1)    /* All privileges required */
 192  193  #define PRIV_MULTIPLE                   (-2)    /* More than one */
 193  194  #define PRIV_NONE                       (-3)    /* No value */
 194  195  #define PRIV_ALLZONE                    (-4)    /* All privileges in zone */
 195  196  #define PRIV_GLOBAL                     (-5)    /* Must be in global zone */
↓ open down ↓ 56 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX