diff options
author | Liangcai Li <liangcail@nvidia.com> | 2013-12-19 10:26:57 +0800 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2013-12-24 00:20:10 -0800 |
commit | e3814b23c72feb10ec646bcd0674f0a90a3c9ae4 (patch) | |
tree | bba52f0fb9df51e3a22f32457b9281adc5a47fed | |
parent | 82d040a3852b9984470550b0d0fa0dc490bbefd5 (diff) |
ata:Remove write permission of tegra_ahci_idle_ms
To pass CTS, which guarantees that all
files under /sys are not writable for others.
Change the flag when creating tegra_ahci_idle_ms.
Bug 1389582
Change-Id: I76f14841e4640cdb963566b5bdb232acbe2e8909
Signed-off-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-on: http://git-master/r/347298
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | drivers/ata/ahci-tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c index d52a3bc1e354..638e26314d5a 100644 --- a/drivers/ata/ahci-tegra.c +++ b/drivers/ata/ahci-tegra.c @@ -2709,7 +2709,8 @@ static int __init tegra_ahci_dump_debuginit(void) (void) debugfs_create_file("tegra_ahci", S_IRUGO, NULL, NULL, &debug_fops); #ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE - (void) debugfs_create_u32("tegra_ahci_idle_ms", S_IRWXUGO, + (void) debugfs_create_u32("tegra_ahci_idle_ms", S_IRUGO | S_IXUGO + | S_IWUSR | S_IWGRP, NULL, &tegra_ahci_idle_time); #endif return 0; |