-/* $OpenBSD: sfuart.c,v 1.3 2021/06/20 17:55:37 kettenis Exp $ */
+/* $OpenBSD: sfuart.c,v 1.4 2021/08/31 12:24:15 jan Exp $ */
/*
* Copyright (c) 2019 Mark Kettenis <kettenis@openbsd.org>
*
/* No carrier detect support. */
SET(tp->t_state, TS_CARR_ON);
- } else if (ISSET(tp->t_state, TS_XCLUDE) && p->p_ucred->cr_uid != 0)
+ } else if (ISSET(tp->t_state, TS_XCLUDE) && suser(p) != 0)
return EBUSY;
else
s = spltty();
-/* $OpenBSD: amluart.c,v 1.1 2019/08/26 09:10:22 kettenis Exp $ */
+/* $OpenBSD: amluart.c,v 1.2 2021/08/31 12:24:15 jan Exp $ */
/*
* Copyright (c) 2019 Mark Kettenis <kettenis@openbsd.org>
*
/* No carrier detect support. */
SET(tp->t_state, TS_CARR_ON);
- } else if (ISSET(tp->t_state, TS_XCLUDE) && p->p_ucred->cr_uid != 0)
+ } else if (ISSET(tp->t_state, TS_XCLUDE) && suser(p) != 0)
return EBUSY;
else
s = spltty();
-/* $OpenBSD: imxuart.c,v 1.9 2021/02/04 22:40:04 patrick Exp $ */
+/* $OpenBSD: imxuart.c,v 1.10 2021/08/31 12:24:15 jan Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
*
SET(tp->t_state, TS_CARR_ON); /* XXX */
- } else if (ISSET(tp->t_state, TS_XCLUDE) && p->p_ucred->cr_uid != 0)
+ } else if (ISSET(tp->t_state, TS_XCLUDE) && suser(p) != 0)
return EBUSY;
else
s = spltty();
-/* $OpenBSD: mvuart.c,v 1.2 2019/07/19 00:17:15 cheloha Exp $ */
+/* $OpenBSD: mvuart.c,v 1.3 2021/08/31 12:24:15 jan Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
* Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
HSET4(sc, MVUART_CTRL, MVUART_CTRL_RX_RDY_INT);
SET(tp->t_state, TS_CARR_ON); /* XXX */
- } else if (ISSET(tp->t_state, TS_XCLUDE) && p->p_ucred->cr_uid != 0)
+ } else if (ISSET(tp->t_state, TS_XCLUDE) && suser(p) != 0)
return EBUSY;
else
s = spltty();
-/* $OpenBSD: pluart.c,v 1.5 2020/01/10 04:10:15 cheloha Exp $ */
+/* $OpenBSD: pluart.c,v 1.6 2021/08/31 12:24:15 jan Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2005 Dale Rahn <drahn@dalerahn.com>
SET(tp->t_state, TS_CARR_ON); /* XXX */
- } else if (ISSET(tp->t_state, TS_XCLUDE) && p->p_ucred->cr_uid != 0)
+ } else if (ISSET(tp->t_state, TS_XCLUDE) && suser(p) != 0)
return EBUSY;
else
s = spltty();