vt_ioctl: move perm checks level up
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Jun 2020 07:49:10 +0000 (09:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:08:35 +0000 (17:08 +0200)
commit5ba1278787225629fb0b58de768e744714215678
tree79cf98e0f59ceac89f71942927812d50a2de6f7b
parenta4c53c830b2722f7cd30f58740fd9955ea4eed2c
vt_ioctl: move perm checks level up

Synchronize with others and check perm directly in vt_k_ioctl.
We do not need to pass perm to do_fontx_ioctl and do_unimap_ioctl then.

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