projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5e3d5
)
powerpc/spufs: convert userns uid/gid mount options to kuid/kgid
author
Dwight Engen
<
[email protected]
>
Wed, 21 Aug 2013 18:33:51 +0000
(14:33 -0400)
committer
Ben Myers
<
[email protected]
>
Wed, 21 Aug 2013 20:17:54 +0000
(15:17 -0500)
Acked-by: Jeremy Kerr <
[email protected]
>
Tested-by: Jeremy Kerr <
[email protected]
>
Signed-off-by: Dwight Engen <
[email protected]
>
Reviewed-by: Arnd Bergmann <
[email protected]
>
Signed-off-by: Ben Myers <
[email protected]
>
arch/powerpc/platforms/cell/spufs/inode.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/inode.c
b/arch/powerpc/platforms/cell/spufs/inode.c
index f3900427ffab5173ee05041a7375b9633312e835..87ba7cf99cd754590ffaf2f038926ae9098f4ca9 100644
(file)
--- a/
arch/powerpc/platforms/cell/spufs/inode.c
+++ b/
arch/powerpc/platforms/cell/spufs/inode.c
@@
-620,12
+620,16
@@
spufs_parse_options(struct super_block *sb, char *options, struct inode *root)
case Opt_uid:
if (match_int(&args[0], &option))
return 0;
- root->i_uid = option;
+ root->i_uid = make_kuid(current_user_ns(), option);
+ if (!uid_valid(root->i_uid))
+ return 0;
break;
case Opt_gid:
if (match_int(&args[0], &option))
return 0;
- root->i_gid = option;
+ root->i_gid = make_kgid(current_user_ns(), option);
+ if (!gid_valid(root->i_gid))
+ return 0;
break;
case Opt_mode:
if (match_octal(&args[0], &option))