Print this page
uts: give privilege macros more sensible names

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/exec.c
          +++ new/usr/src/uts/common/os/exec.c
↓ open down ↓ 798 lines elided ↑ open up ↑
 799  799                          /*
 800  800                           * DTrace accesses t_cred in probe context.  t_cred
 801  801                           * must always be either NULL, or point to a valid,
 802  802                           * allocated cred structure.
 803  803                           */
 804  804                          oldcred = curthread->t_cred;
 805  805                          curthread->t_cred = cred;
 806  806                          crfree(oldcred);
 807  807  
 808  808                          if (priv_basic_test >= 0 &&
 809      -                            !PRIV_ISASSERT(&CR_IPRIV(newcred),
      809 +                            !PRIV_ISMEMBER(&CR_IPRIV(newcred),
 810  810                              priv_basic_test)) {
 811  811                                  pid_t pid = pp->p_pid;
 812  812                                  char *fn = PTOU(pp)->u_comm;
 813  813  
 814  814                                  cmn_err(CE_WARN, "%s[%d]: exec: basic_test "
 815  815                                      "privilege removed from E/I", fn, pid);
 816  816                          }
 817  817                  }
 818  818                  /*
 819  819                   * On emerging from a successful exec(), the saved
↓ open down ↓ 1214 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX