[BACK]Return to ucom.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/usb/ucom.c between version 1.61 and 1.61.4.2

version 1.61, 2006/02/20 16:50:37 version 1.61.4.2, 2006/03/10 14:39:03
Line 328  ucomopen(dev_t dev, int flag, int mode, 
Line 328  ucomopen(dev_t dev, int flag, int mode, 
   
         if (ISSET(tp->t_state, TS_ISOPEN) &&          if (ISSET(tp->t_state, TS_ISOPEN) &&
             ISSET(tp->t_state, TS_XCLUDE) &&              ISSET(tp->t_state, TS_XCLUDE) &&
             suser(p->p_ucred, &p->p_acflag) != 0)              kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER, &p->p_acflag) != 0)
                 return (EBUSY);                  return (EBUSY);
   
         s = spltty();          s = spltty();
Line 657  ucom_do_ioctl(struct ucom_softc *sc, u_l
Line 657  ucom_do_ioctl(struct ucom_softc *sc, u_l
                 break;                  break;
   
         case TIOCSFLAGS:          case TIOCSFLAGS:
                 error = suser(p->p_ucred, &p->p_acflag);                  error = kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER, &p->p_acflag);
                 if (error)                  if (error)
                         break;                          break;
                 sc->sc_swflags = *(int *)data;                  sc->sc_swflags = *(int *)data;

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.61.4.2

CVSweb <webmaster@jp.NetBSD.org>