diff options
author | Forest Bond <forest@alittletooquiet.net> | 2009-06-13 11:38:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:32 (GMT) |
commit | 8f9c466f291a94b138560f28242c44e320a79ca4 (patch) | |
tree | 43d816bffbf03dfa759bbe1edab351642b1e7d13 /drivers/staging/vt6656 | |
parent | f02a8cbc50aaef89f56faf0cf1e27fa5a80faec6 (diff) | |
download | linux-fsl-qoriq-8f9c466f291a94b138560f28242c44e320a79ca4.tar.xz |
Staging: vt6656: main_usb.c: Drop obsolete fsuid/fsgid accesses.
drivers/staging/vt6656/main_usb.c: Drop obsolete fsuid/fsgid accesses.
Signed-off-by: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 3368e83..f181d23 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -1655,15 +1655,17 @@ static UCHAR *Config_FileOperation(PSDevice pDevice) { UCHAR *buffer=NULL; struct file *filp=NULL; mm_segment_t old_fs = get_fs(); - int oldfsuid=0,oldfsgid=0; + //int oldfsuid=0,oldfsgid=0; int result=0; set_fs (KERNEL_DS); -//Make sure a caller can read or write power as root - oldfsuid=current->fsuid; - oldfsgid=current->fsgid; + /* Can't do this anymore, so we rely on correct filesystem permissions: + //Make sure a caller can read or write power as root + oldfsuid=current->fsuid; + oldfsgid=current->fsgid; current->fsuid = 0; current->fsgid = 0; + */ //open file filp = filp_open(config_path, O_RDWR, 0); @@ -1697,8 +1699,11 @@ error1: error2: set_fs (old_fs); + + /* current->fsuid=oldfsuid; current->fsgid=oldfsgid; + */ if(result!=0) { if(buffer) |