Diff for /src/sys/kern/kern_prot.c between versions 1.12 and 1.13

version 1.12, 2003/11/05 20:24:37 version 1.13, 2003/11/22 19:30:56
Line 287  setpgid(struct setpgid_args *uap) Line 287  setpgid(struct setpgid_args *uap)
   
 /*  /*
  * Use the clause in B.4.2.2 that allows setuid/setgid to be 4.2/4.3BSD   * Use the clause in B.4.2.2 that allows setuid/setgid to be 4.2/4.3BSD
 * compatable.  It says that setting the uid/gid to euid/egid is a special * compatible.  It says that setting the uid/gid to euid/egid is a special
  * case of "appropriate privilege".  Once the rules are expanded out, this   * case of "appropriate privilege".  Once the rules are expanded out, this
  * basically means that setuid(nnn) sets all three id's, in all permitted   * basically means that setuid(nnn) sets all three id's, in all permitted
  * cases unless _POSIX_SAVED_IDS is enabled.  In that case, setuid(getuid())   * cases unless _POSIX_SAVED_IDS is enabled.  In that case, setuid(getuid())
Line 315  setuid(struct setuid_args *uap) Line 315  setuid(struct setuid_args *uap)
          *           *
          * Note that setuid(geteuid()) is a special case of            * Note that setuid(geteuid()) is a special case of 
          * "appropriate privileges" in appendix B.4.2.2.  We need           * "appropriate privileges" in appendix B.4.2.2.  We need
         * to use this clause to be compatable with traditional BSD         * to use this clause to be compatible with traditional BSD
          * semantics.  Basically, it means that "setuid(xx)" sets all           * semantics.  Basically, it means that "setuid(xx)" sets all
          * three id's (assuming you have privs).           * three id's (assuming you have privs).
          *           *
Line 429  setgid(struct setgid_args *uap) Line 429  setgid(struct setgid_args *uap)
          *           *
          * Note that setgid(getegid()) is a special case of           * Note that setgid(getegid()) is a special case of
          * "appropriate privileges" in appendix B.4.2.2.  We need           * "appropriate privileges" in appendix B.4.2.2.  We need
         * to use this clause to be compatable with traditional BSD         * to use this clause to be compatible with traditional BSD
          * semantics.  Basically, it means that "setgid(xx)" sets all           * semantics.  Basically, it means that "setgid(xx)" sets all
          * three id's (assuming you have privs).           * three id's (assuming you have privs).
          *           *

Removed from v.1.12  
changed lines
  Added in v.1.13