video: tegra: host: No S_IWGRP permission for sysfs attrbs
Manoj Gangwal [Fri, 1 Jul 2011 10:32:11 +0000 (15:32 +0530)]
Removing write permission for Group and others for sysfs:
"null_kickoff_pid" attribute as CTS test "android.permission
.cts.FileSystemPermissionTest#testAllFilesInSysAreNotWritable"
requires it as non-writable.

Bug 828100

Original-Change-Id: Ifa2ee439a63f0503bf10f10f3cf31cd7c91c2842
Reviewed-on: http://git-master/r/39367
Tested-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: Rd386df89e37ba55d9157bc71237175d0b6fa6f6b

drivers/video/tegra/host/debug.c

index 07fd184..f4c6562 100644 (file)
@@ -378,7 +378,7 @@ void nvhost_debug_init(struct nvhost_master *master)
        debugfs_create_file("status", S_IRUGO, de,
                        master, &nvhost_debug_fops);
 
-       debugfs_create_u32("null_kickoff_pid", S_IRUGO|S_IWUGO, de,
+       debugfs_create_u32("null_kickoff_pid", S_IRUGO|S_IWUSR, de,
                        &nvhost_debug_null_kickoff_pid);
 }
 #else