Skip to content

Commit 14ddc31

Browse files
segoonMauro Carvalho Chehab
authored andcommitted
[media] video: sn9c102: world-wirtable sysfs files
Don't allow everybody to change video settings. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by: Luca Risolia <luca.risolia@studio.unibo.it> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 8aff8ba commit 14ddc31

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/media/video/sn9c102/sn9c102_core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,9 +1430,9 @@ static DEVICE_ATTR(i2c_reg, S_IRUGO | S_IWUSR,
14301430
sn9c102_show_i2c_reg, sn9c102_store_i2c_reg);
14311431
static DEVICE_ATTR(i2c_val, S_IRUGO | S_IWUSR,
14321432
sn9c102_show_i2c_val, sn9c102_store_i2c_val);
1433-
static DEVICE_ATTR(green, S_IWUGO, NULL, sn9c102_store_green);
1434-
static DEVICE_ATTR(blue, S_IWUGO, NULL, sn9c102_store_blue);
1435-
static DEVICE_ATTR(red, S_IWUGO, NULL, sn9c102_store_red);
1433+
static DEVICE_ATTR(green, S_IWUSR, NULL, sn9c102_store_green);
1434+
static DEVICE_ATTR(blue, S_IWUSR, NULL, sn9c102_store_blue);
1435+
static DEVICE_ATTR(red, S_IWUSR, NULL, sn9c102_store_red);
14361436
static DEVICE_ATTR(frame_header, S_IRUGO, sn9c102_show_frame_header, NULL);
14371437

14381438

0 commit comments

Comments
 (0)