Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126754
b: refs/heads/master
c: 5a501b3
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 6, 2009
1 parent 4f43033 commit 0e44a16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: c55519ff75224222f4668c92ae3733059269f575
refs/heads/master: 5a501b3011095c9afb396cdade5be8db359df977
10 changes: 7 additions & 3 deletions trunk/drivers/staging/rt2870/rt_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,11 @@ NDIS_STATUS RTMPReadParametersHook(

// Save uid and gid used for filesystem access.
// Set user and group to 0 (root)
orgfsuid = current->fsuid;
orgfsgid = current->fsgid;
current->fsuid=current->fsgid = 0;
orgfsuid = current_fsuid();
orgfsgid = current_fsgid();
/* Hm, can't really do this nicely anymore, so rely on these files
* being set to the proper permission to read them... */
/* current->cred->fsuid = current->cred->fsgid = 0; */
orgfs = get_fs();
set_fs(KERNEL_DS);

Expand Down Expand Up @@ -1590,8 +1592,10 @@ NDIS_STATUS RTMPReadParametersHook(
}

set_fs(orgfs);
#if 0
current->fsuid = orgfsuid;
current->fsgid = orgfsgid;
#endif

kfree(buffer);
kfree(tmpbuf);
Expand Down

0 comments on commit 0e44a16

Please sign in to comment.