Print this page
uts: give privilege macros more sensible names

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/tsol/priv.h
          +++ new/usr/src/uts/common/sys/tsol/priv.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  #ifndef _SYS_TSOL_PRIV_H
  27   27  #define _SYS_TSOL_PRIV_H
  28   28  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   29  #include <sys/priv.h>
  32   30  
  33   31  #ifdef  __cplusplus
  34   32  extern "C" {
  35   33  #endif
  36   34  
  37   35  typedef enum priv_ftype {
  38   36          PRIV_ALLOWED,
  39   37          PRIV_FORCED
  40   38  } priv_ftype_t;
  41   39  
  42   40  /*
  43   41   * Privilege macros.
       42 + *
       43 + * These names are here for compatibility reasons, and thus do not match
       44 + * priv_impl.h
  44   45   */
  45   46  
  46   47  /*
  47   48   * PRIV_ASSERT(a, b) setst.privilege "b" in privilege set "a".
  48   49   */
  49   50  #define PRIV_ASSERT(a, b) (priv_addset(a, b))
  50   51  
  51   52  /*
  52   53   * PRIV_CLEAR(a,b) clearst.privilege "b" in privilege set "a".
  53   54   */
↓ open down ↓ 63 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX