regulator: write permission for only user
Sachin Nikam [Thu, 16 Jun 2011 09:52:26 +0000 (14:52 +0530)]
Write permission only for User for syncevent_regulators
sysfs attribute.

This is needed so as to pass FileSystemPermission CTS.

Bug 840409

Original-Change-Id: Iad1ac9fc63b9471b2f7c9f2c12524512b3f5941e
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/36897
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Rb71c94a12e155ae630d09f30fb42df4d83cc6e7c

drivers/regulator/core.c

index bd081d4..3cc55d6 100644 (file)
@@ -3037,7 +3037,7 @@ static const struct file_operations regulator_syncevent_fops = {
 
 static int __init regulator_init_debugfs(void)
 {
-       debugfs_create_file("syncevent_regulators", S_IWUGO, NULL, NULL,
+       debugfs_create_file("syncevent_regulators", S_IWUSR, NULL, NULL,
                        &regulator_syncevent_fops);
 
        return 0;