Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161988
b: refs/heads/master
c: 8f9c466
h: refs/heads/master
v: v3
  • Loading branch information
Forest Bond authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent eb277fa commit 316cdd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f02a8cbc50aaef89f56faf0cf1e27fa5a80faec6
refs/heads/master: 8f9c466f291a94b138560f28242c44e320a79ca4
13 changes: 9 additions & 4 deletions trunk/drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1697,8 +1699,11 @@ static UCHAR *Config_FileOperation(PSDevice pDevice) {

error2:
set_fs (old_fs);

/*
current->fsuid=oldfsuid;
current->fsgid=oldfsgid;
*/

if(result!=0) {
if(buffer)
Expand Down

0 comments on commit 316cdd9

Please sign in to comment.