vt: keyboard, union perm checks in vt_do_kdgkb_ioctl
authorJiri Slaby <jslaby@suse.cz>
Thu, 29 Oct 2020 11:32:19 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Nov 2020 15:43:38 +0000 (16:43 +0100)
commitcb58a5046095c0b28031f1f412c27ce21df604ae
treec2c4e525870dbf0b4b1f5f89ff8f1f2a79dcc1c7
parent2374a045263b47f763571ec87ad7c65ea505188a
vt: keyboard, union perm checks in vt_do_kdgkb_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-14-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c