Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11868
b: refs/heads/master
c: 0b360ad
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Oct 31, 2005
1 parent f1b25d8 commit 85c9644
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb8e317998e55dc1f9e6288564052b577327b766
refs/heads/master: 0b360adbdb54d5b98b78d57ba0916bc4b8871968
3 changes: 3 additions & 0 deletions trunk/drivers/char/vt_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm)
int i, j, k;
int ret;

if (!capable(CAP_SYS_TTY_CONFIG))
return -EPERM;

kbs = kmalloc(sizeof(*kbs), GFP_KERNEL);
if (!kbs) {
ret = -ENOMEM;
Expand Down

0 comments on commit 85c9644

Please sign in to comment.