diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-10 19:55:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-10 19:55:27 +0100 |
commit | 64d74c6cbe52fbec90ead8f3bf53bfb10a1540d5 (patch) | |
tree | bd2dfeefbc227b36926ac89cfdd19874d57b634e | |
parent | Staging: cxt1e1: rename global log_level variable (diff) | |
download | linux-64d74c6cbe52fbec90ead8f3bf53bfb10a1540d5.tar.xz linux-64d74c6cbe52fbec90ead8f3bf53bfb10a1540d5.zip |
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: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c b/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c index da76f11a552f..e39809229d46 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c @@ -173,7 +173,7 @@ int ft1000_create_dev(struct ft1000_device *dev) 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); if (IS_ERR(file)) { result = PTR_ERR(file); |