diff options
author | Mike Isely <isely@pobox.com> | 2007-01-28 13:08:36 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-28 13:08:36 -0600 |
commit | fa3c54d7157ced7633dabdf681c21f139976f384 (patch) | |
tree | e9ee99994643127bb6ce53c809460ccbf3b10602 /linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |
parent | 8b4ce16d98330197e98a4fba5c0e753fd03de634 (diff) | |
download | mediapointer-dvb-s2-fa3c54d7157ced7633dabdf681c21f139976f384.tar.gz mediapointer-dvb-s2-fa3c54d7157ced7633dabdf681c21f139976f384.tar.bz2 |
pvrusb2: VIDIOC_DBG_[S|G]_REGISTER fixups
From: Mike Isely <isely@pobox.com>
Support 64 bit register IDs internally. Only allow root access to
this API (for both set and get). Note that actual 64 bit access only
becomes possible once the definition for v4l2_register is updated, but
this change clears the way for it from the viewpoint of the pvrusb2
driver.
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 9bc03cfda..165c00f44 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c @@ -739,10 +739,6 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, } #ifdef CONFIG_VIDEO_ADV_DEBUG case VIDIOC_DBG_S_REGISTER: - if (!capable(CAP_SYS_ADMIN)) { - ret = -EPERM; - break; - } /* fall through */ case VIDIOC_DBG_G_REGISTER: { u32 val; |