lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 12 Jan 2021 06:45:42 +0000
From:   jason_wang <jason_wang@...lsil.com.cn>
To:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-media@...r.kernel.org" <linux-media@...r.kernel.org>
CC:     "jason.root.w@...il.com" <jason.root.w@...il.com>,
        Mauro Carvalho Chehab <mchehab@...nel.org>
Subject: [PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr

From: Jason_wang <Jason_wang@...lsil.com.cn>

if CONFIG_COMPAT is enabled.  dvr ioctl can not be invoked by user.
need .compat_ioctl to identify the ioctl function.

Signed-off-by: jason_wang <jason_wang@...lsil.com.cn>
---
 drivers/media/dvb-core/dmxdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c index f14a872d1268..4a9e027de827 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -1393,6 +1393,7 @@ static const struct file_operations dvb_dvr_fops = {
  .read = dvb_dvr_read,
  .write = dvb_dvr_write,
  .unlocked_ioctl = dvb_dvr_ioctl,
+ .compat_ioctl = dvb_dvr_ioctl,
  .open = dvb_dvr_open,
  .release = dvb_dvr_release,
  .poll = dvb_dvr_poll,
--
2.25.1

Powered by blists - more mailing lists