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


  49 extern int setpflags(uint_t, uint_t);
  50 extern uint_t getpflags(uint_t);
  51 extern const priv_impl_info_t *getprivimplinfo(void);
  52 
  53 extern int priv_set(priv_op_t, priv_ptype_t, ...);
  54 extern boolean_t priv_ineffect(const char *);
  55 extern priv_set_t *priv_str_to_set(const char *, const char *, const char **);
  56 extern char *priv_set_to_str(const priv_set_t *, char, int);
  57 
  58 extern int priv_getbyname(const char *);
  59 extern const char *priv_getbynum(int);
  60 extern int priv_getsetbyname(const char *);
  61 extern const char *priv_getsetbynum(int);
  62 extern char *priv_gettext(const char *);
  63 
  64 extern priv_set_t *priv_allocset(void);
  65 extern void priv_freeset(priv_set_t *);
  66 
  67 extern void priv_emptyset(priv_set_t *);
  68 extern void priv_basicset(priv_set_t *);

  69 extern void priv_fillset(priv_set_t *);
  70 extern boolean_t priv_isemptyset(const priv_set_t *);
  71 extern boolean_t priv_isfullset(const priv_set_t *);
  72 extern boolean_t priv_isequalset(const priv_set_t *, const priv_set_t *);
  73 extern boolean_t priv_issubset(const priv_set_t *, const priv_set_t *);
  74 extern void priv_intersect(const priv_set_t *, priv_set_t *);
  75 extern void priv_union(const priv_set_t *, priv_set_t *);
  76 extern void priv_inverse(priv_set_t *);
  77 extern int priv_addset(priv_set_t *, const char *);
  78 extern void priv_copyset(const priv_set_t *, priv_set_t *);
  79 extern int priv_delset(priv_set_t *, const char *);
  80 extern boolean_t priv_ismember(const priv_set_t *, const char *);
  81 
  82 #ifdef  __cplusplus
  83 }
  84 #endif
  85 
  86 #endif  /* _PRIV_H_ */


  49 extern int setpflags(uint_t, uint_t);
  50 extern uint_t getpflags(uint_t);
  51 extern const priv_impl_info_t *getprivimplinfo(void);
  52 
  53 extern int priv_set(priv_op_t, priv_ptype_t, ...);
  54 extern boolean_t priv_ineffect(const char *);
  55 extern priv_set_t *priv_str_to_set(const char *, const char *, const char **);
  56 extern char *priv_set_to_str(const priv_set_t *, char, int);
  57 
  58 extern int priv_getbyname(const char *);
  59 extern const char *priv_getbynum(int);
  60 extern int priv_getsetbyname(const char *);
  61 extern const char *priv_getsetbynum(int);
  62 extern char *priv_gettext(const char *);
  63 
  64 extern priv_set_t *priv_allocset(void);
  65 extern void priv_freeset(priv_set_t *);
  66 
  67 extern void priv_emptyset(priv_set_t *);
  68 extern void priv_basicset(priv_set_t *);
  69 extern void priv_defaultset(priv_set_t *);
  70 extern void priv_fillset(priv_set_t *);
  71 extern boolean_t priv_isemptyset(const priv_set_t *);
  72 extern boolean_t priv_isfullset(const priv_set_t *);
  73 extern boolean_t priv_isequalset(const priv_set_t *, const priv_set_t *);
  74 extern boolean_t priv_issubset(const priv_set_t *, const priv_set_t *);
  75 extern void priv_intersect(const priv_set_t *, priv_set_t *);
  76 extern void priv_union(const priv_set_t *, priv_set_t *);
  77 extern void priv_inverse(priv_set_t *);
  78 extern int priv_addset(priv_set_t *, const char *);
  79 extern void priv_copyset(const priv_set_t *, priv_set_t *);
  80 extern int priv_delset(priv_set_t *, const char *);
  81 extern boolean_t priv_ismember(const priv_set_t *, const char *);
  82 
  83 #ifdef  __cplusplus
  84 }
  85 #endif
  86 
  87 #endif  /* _PRIV_H_ */