git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CRED: Wrap task credential accesses in the UBIFS filesystem
[pandora-kernel.git]
/
fs
/
ubifs
/
budget.c
diff --git
a/fs/ubifs/budget.c
b/fs/ubifs/budget.c
index
1a4973e
..
4a18f08
100644
(file)
--- a/
fs/ubifs/budget.c
+++ b/
fs/ubifs/budget.c
@@
-363,7
+363,7
@@
long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs)
*/
static int can_use_rp(struct ubifs_info *c)
{
- if (current
->fsuid
== c->rp_uid || capable(CAP_SYS_RESOURCE) ||
+ if (current
_fsuid()
== c->rp_uid || capable(CAP_SYS_RESOURCE) ||
(c->rp_gid != 0 && in_group_p(c->rp_gid)))
return 1;
return 0;