media: video: tegra: ar0832: reduce permissions
schowdary [Thu, 26 Jul 2012 13:42:17 +0000 (18:42 +0530)]
CTS test fails if there are write permissions for user.
Hence reduce permissions for test_pattern.

bug 1001925

Change-Id: I769ff501671182965a8b699d7bbd580400ccd1c1
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118871
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/media/video/tegra/ar0832_main.c

index 0016f70..904619c 100644 (file)
@@ -2424,7 +2424,7 @@ static void ar0832_create_debugfs(struct ar0832_dev *dev)
                goto remove_debugfs;
 
        ret = debugfs_create_file("test_pattern",
-                               S_IWUGO | S_IRUGO,
+                               S_IWUSR | S_IRUGO,
                                dev->debugdir, dev,
                                &ar0832_debugfs_fops);
        if (!ret)