Print this page
OS-5440 pfexec and the case of the missing error message
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/pfexec.1
          +++ new/usr/src/man/man1/pfexec.1
↓ open down ↓ 45 lines elided ↑ open up ↑
  46   46  profile, the profile shell uses the first matching entry.
  47   47  .sp
  48   48  .LP
  49   49  The second form, \fBpfexec\fR \fB-P\fR \fIprivspec\fR, allows a user to obtain
  50   50  the additional privileges awarded to the user's profiles in \fBprof_attr\fR(4).
  51   51  The privileges specification on the commands line is parsed using
  52   52  \fBpriv_str_to_set\fR(3C). The resulting privileges are intersected with the
  53   53  union of the privileges specified using the "\fBprivs\fR" keyword in
  54   54  \fBprof_attr\fR(4) for all the user's profiles and added to the inheritable set
  55   55  before executing the command.
       56 +.sp
       57 +.LP
       58 +For \fBpfexec\fR to function correctly, the \fBpfexecd\fR daemon must be running
       59 +in the current zone. This is normally managed by the
       60 +"\fBsvc:/system/pfexec:default\fR" SMF service (see \fBsmf\fR(5)).
  56   61  .SH USAGE
  57   62  .sp
  58   63  .LP
  59   64  \fBpfexec\fR is used to execute commands with predefined process attributes,
  60   65  such as specific user or group \fBID\fRs.
  61   66  .sp
  62   67  .LP
  63   68  Refer to the \fBsh\fR(1), \fBcsh\fR(1), and \fBksh\fR(1) man pages for complete
  64   69  usage descriptions of the profile shells.
  65   70  .SH EXAMPLES
↓ open down ↓ 31 lines elided ↑ open up ↑
  97  102  \fB\fB1\fR \fR
  98  103  .ad
  99  104  .RS 6n
 100  105  An error occurred.
 101  106  .RE
 102  107  
 103  108  .SH SEE ALSO
 104  109  .sp
 105  110  .LP
 106  111  \fBcsh\fR(1), \fBksh\fR(1), \fBprofiles\fR(1), \fBsh\fR(1), \fBexec_attr\fR(4),
 107      -\fBprof_attr\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5)
      112 +\fBprof_attr\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5), \fBsmf\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX