Commit ed56f34f authored by Dwight Engen's avatar Dwight Engen Committed by Ben Myers

powerpc/spufs: convert userns uid/gid mount options to kuid/kgid

Acked-by: default avatarJeremy Kerr <jk@ozlabs.org>
Tested-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarDwight Engen <dwight.engen@oracle.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent 5d5e3d57
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment