mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allow root to open prison pts devices too.
Pointed out by: rwatson
This commit is contained in:
parent
8f2df498c8
commit
b4e12c03e9
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ ptsopen(struct cdev *dev, int flag, int devtype, struct thread *td)
|
|||
ttyinitmode(tp, 1, 0);
|
||||
else if (tp->t_state & TS_XCLUDE && suser(td)) {
|
||||
return (EBUSY);
|
||||
} else if (pt->pt_prison != td->td_ucred->cr_prison) {
|
||||
} else if (pt->pt_prison != td->td_ucred->cr_prison && suser(td)) {
|
||||
return (EBUSY);
|
||||
}
|
||||
if (tp->t_oproc) /* Ctrlr still around. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue