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/head/priv.h
          +++ new/usr/src/head/priv.h
↓ open down ↓ 58 lines elided ↑ open up ↑
  59   59  extern const char *priv_getbynum(int);
  60   60  extern int priv_getsetbyname(const char *);
  61   61  extern const char *priv_getsetbynum(int);
  62   62  extern char *priv_gettext(const char *);
  63   63  
  64   64  extern priv_set_t *priv_allocset(void);
  65   65  extern void priv_freeset(priv_set_t *);
  66   66  
  67   67  extern void priv_emptyset(priv_set_t *);
  68   68  extern void priv_basicset(priv_set_t *);
       69 +extern void priv_defaultset(priv_set_t *);
  69   70  extern void priv_fillset(priv_set_t *);
  70   71  extern boolean_t priv_isemptyset(const priv_set_t *);
  71   72  extern boolean_t priv_isfullset(const priv_set_t *);
  72   73  extern boolean_t priv_isequalset(const priv_set_t *, const priv_set_t *);
  73   74  extern boolean_t priv_issubset(const priv_set_t *, const priv_set_t *);
  74   75  extern void priv_intersect(const priv_set_t *, priv_set_t *);
  75   76  extern void priv_union(const priv_set_t *, priv_set_t *);
  76   77  extern void priv_inverse(priv_set_t *);
  77   78  extern int priv_addset(priv_set_t *, const char *);
  78   79  extern void priv_copyset(const priv_set_t *, priv_set_t *);
  79   80  extern int priv_delset(priv_set_t *, const char *);
  80   81  extern boolean_t priv_ismember(const priv_set_t *, const char *);
  81   82  
  82   83  #ifdef  __cplusplus
  83   84  }
  84   85  #endif
  85   86  
  86   87  #endif  /* _PRIV_H_ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX