Commit 64d74c6c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: ft1000: fix world writable debugfs file

You should not be able to write to a debugfs file from any user.

Cc: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b8b73994
...@@ -173,7 +173,7 @@ int ft1000_create_dev(struct ft1000_device *dev) ...@@ -173,7 +173,7 @@ int ft1000_create_dev(struct ft1000_device *dev)
goto debug_dir_fail; goto debug_dir_fail;
} }
file = debugfs_create_file("device", S_IRUGO | S_IWUGO, dir, file = debugfs_create_file("device", S_IRUGO | S_IWUSR, dir,
NULL, &ft1000fops); NULL, &ft1000fops);
if (IS_ERR(file)) { if (IS_ERR(file)) {
result = PTR_ERR(file); result = PTR_ERR(file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment