OSDN Git Service

vt: keyboard, union perm checks in vt_do_kdsk_ioctl
authorJiri Slaby <jslaby@suse.cz>
Thu, 29 Oct 2020 11:32:12 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Nov 2020 15:43:38 +0000 (16:43 +0100)
commitee1cf8a58273d53ef56c578810f2a94b1aeb55a4
tree7ed8585b881c9cb48d62cb257171110eadcdf29d
parentfe6416e126cc17c0454c9c32d06b81a4e58ed8b7
vt: keyboard, union perm checks in vt_do_kdsk_ioctl

Do the permission check on a single place. That is where perm is really
checked.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20201029113222.32640-7-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c