]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b812288636b8ca813c959425e26e9f7db32eb9b
tree79cf98e0f59ceac89f71942927812d50a2de6f7b
parentc349ffa234032e770b5c40f2055f60109e0e759f
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