diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2001-09-26 20:17:15 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2001-09-26 20:17:15 +0000 |
| commit | 8c7cc7234ef7120e485eee661bde8fa9bc781b79 (patch) | |
| tree | fb7ac256662dd882f9e3406a0151d99f1f4557c1 /sys/dev/syscons | |
| parent | 19f1565901e8b66aced13a90ac2b34e4fa4f81ed (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 644864e0c7ef3..be9cc273186a7 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -980,8 +980,9 @@ scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) error = suser_td(td); if (error != 0) return error; - if (securelevel > 0) - return EPERM; + error = securelevel_gt(td->td_proc->p_ucred, 0); + if (error != 0) + return error; #ifdef __i386__ td->td_frame->tf_eflags |= PSL_IOPL; #endif |
