Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c
··· 173 173 goto debug_dir_fail; 174 174 } 175 175 176 - file = debugfs_create_file("device", S_IRUGO | S_IWUGO, dir, 176 + file = debugfs_create_file("device", S_IRUGO | S_IWUSR, dir, 177 177 NULL, &ft1000fops); 178 178 if (IS_ERR(file)) { 179 179 result = PTR_ERR(file);