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/man/man3c/priv_addset.3c.man.txt
          +++ new/usr/src/man/man3c/priv_addset.3c.man.txt
   1    1  PRIV_ADDSET(3C)          Standard C Library Functions          PRIV_ADDSET(3C)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         priv_addset, priv_allocset, priv_copyset, priv_delset, priv_emptyset,
   7      -       priv_basicset, priv_fillset, priv_freeset, priv_intersect,
   8      -       priv_inverse, priv_isemptyset, priv_isequalset, priv_isfullset,
   9      -       priv_ismember, priv_issubset, priv_union - privilege set manipulation
  10      -       functions
        7 +       priv_basicset, priv_defaultset, priv_fillset, priv_freeset,
        8 +       priv_intersect, priv_inverse, priv_isemptyset, priv_isequalset,
        9 +       priv_isfullset, priv_ismember, priv_issubset, priv_union - privilege
       10 +       set manipulation functions
  11   11  
  12   12  SYNOPSIS
  13   13         #include <priv.h>
  14   14  
  15   15         int priv_addset(priv_set_t *sp, const char *priv);
  16   16  
  17   17  
  18   18         priv_set_t *priv_allocset(void);
  19   19  
  20   20  
↓ open down ↓ 2 lines elided ↑ open up ↑
  23   23  
  24   24         int priv_delset(priv_set_t *sp, const char *priv);
  25   25  
  26   26  
  27   27         void priv_emptyset(priv_set_t *sp);
  28   28  
  29   29  
  30   30         void priv_basicset(priv_set_t *sp);
  31   31  
  32   32  
       33 +       void priv_defaultset(priv_set_t *sp);
       34 +
       35 +
  33   36         void priv_fillset(priv_set_t *sp);
  34   37  
  35   38  
  36   39         void priv_freeset(priv_set_t *sp);
  37   40  
  38   41  
  39   42         void priv_intersect(const priv_set_t *src, priv_set_t *dst);
  40   43  
  41   44  
  42   45         void priv_inverse(priv_set_t *sp);
↓ open down ↓ 36 lines elided ↑ open up ↑
  79   82  
  80   83         The priv_delset() function removes the named privilege priv from sp.
  81   84  
  82   85  
  83   86         The priv_emptyset() function clears all privileges from sp.
  84   87  
  85   88  
  86   89         The priv_basicset() function copies the basic privilege set to sp.
  87   90  
  88   91  
       92 +       The priv_defaultset() function copies the default privilege set to sp.
       93 +
       94 +
  89   95         The priv_fillset() function asserts all privileges in sp, including the
  90   96         privileges not currently defined in the system.
  91   97  
  92   98  
  93   99         The priv_freeset() function frees the storage allocated by
  94  100         priv_allocset().
  95  101  
  96  102  
  97  103         The priv_intersect() function intersects src with dst and places the
  98  104         results in dst.
↓ open down ↓ 89 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX