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; |