diff options
-rw-r--r-- | drivers/char/vt_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c index 1d44f69e1fda..003dda147cd0 100644 --- a/drivers/char/vt_ioctl.c +++ b/drivers/char/vt_ioctl.c | |||
@@ -192,6 +192,9 @@ do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm) | |||
192 | int i, j, k; | 192 | int i, j, k; |
193 | int ret; | 193 | int ret; |
194 | 194 | ||
195 | if (!capable(CAP_SYS_TTY_CONFIG)) | ||
196 | return -EPERM; | ||
197 | |||
195 | kbs = kmalloc(sizeof(*kbs), GFP_KERNEL); | 198 | kbs = kmalloc(sizeof(*kbs), GFP_KERNEL); |
196 | if (!kbs) { | 199 | if (!kbs) { |
197 | ret = -ENOMEM; | 200 | ret = -ENOMEM; |