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
          +++ new/usr/src/man/man3c/priv_addset.3c
   1    1  '\" te
   2    2  .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4    4  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5    5  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6    6  .TH PRIV_ADDSET 3C "Sep 08, 2015"
   7    7  .SH NAME
   8    8  priv_addset, priv_allocset, priv_copyset, priv_delset, priv_emptyset,
   9      -priv_basicset, priv_fillset, priv_freeset, priv_intersect, priv_inverse,
  10      -priv_isemptyset, priv_isequalset, priv_isfullset, priv_ismember,
        9 +priv_basicset, priv_defaultset, priv_fillset, priv_freeset, priv_intersect,
       10 +priv_inverse, priv_isemptyset, priv_isequalset, priv_isfullset, priv_ismember,
  11   11  priv_issubset, priv_union \-
  12   12  privilege set manipulation functions
  13   13  .SH SYNOPSIS
  14   14  .LP
  15   15  .nf
  16   16  #include <priv.h>
  17   17  
  18   18  \fBint\fR \fBpriv_addset\fR(\fBpriv_set_t *\fR\fIsp\fR, \fBconst char *\fR\fIpriv\fR);
  19   19  .fi
  20   20  
↓ open down ↓ 17 lines elided ↑ open up ↑
  38   38  \fBvoid\fR \fBpriv_emptyset\fR(\fBpriv_set_t *\fR\fIsp\fR);
  39   39  .fi
  40   40  
  41   41  .LP
  42   42  .nf
  43   43  \fBvoid\fR \fBpriv_basicset\fR(\fBpriv_set_t *\fR\fIsp\fR);
  44   44  .fi
  45   45  
  46   46  .LP
  47   47  .nf
       48 +\fBvoid\fR \fBpriv_defaultset\fR(\fBpriv_set_t *\fR\fIsp\fR);
       49 +.fi
       50 +
       51 +.LP
       52 +.nf
  48   53  \fBvoid\fR \fBpriv_fillset\fR(\fBpriv_set_t *\fR\fIsp\fR);
  49   54  .fi
  50   55  
  51   56  .LP
  52   57  .nf
  53   58  \fBvoid\fR \fBpriv_freeset\fR(\fBpriv_set_t *\fR\fIsp\fR);
  54   59  .fi
  55   60  
  56   61  .LP
  57   62  .nf
↓ open down ↓ 57 lines elided ↑ open up ↑
 115  120  The \fBpriv_delset()\fR function removes the named privilege \fIpriv\fR from
 116  121  \fIsp\fR.
 117  122  .sp
 118  123  .LP
 119  124  The \fBpriv_emptyset()\fR function clears all privileges from \fIsp\fR.
 120  125  .sp
 121  126  .LP
 122  127  The \fBpriv_basicset()\fR function copies the basic privilege set to \fIsp\fR.
 123  128  .sp
 124  129  .LP
      130 +The \fBpriv_defaultset()\fR function copies the default privilege set to
      131 +\fIsp\fR.
      132 +.sp
      133 +.LP
 125  134  The \fBpriv_fillset()\fR function asserts all privileges in \fIsp\fR, including
 126  135  the privileges not currently defined in the system.
 127  136  .sp
 128  137  .LP
 129  138  The \fBpriv_freeset()\fR function frees the storage allocated by
 130  139  \fBpriv_allocset()\fR.
 131  140  .sp
 132  141  .LP
 133  142  The \fBpriv_intersect()\fR function intersects \fIsrc\fR with \fIdst\fR and
 134  143  places the results in \fIdst\fR.
↓ open down ↓ 103 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX