aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-07 19:32:04 -0500
committerEric W. Biederman <ebiederm@xmission.com>2012-09-21 06:12:16 -0400
commit32d639c66e04149d490093f8b4b49cb922bfe294 (patch)
tree04d8cca3ee415277ee22e1ea34b2acde463ad4fa /drivers/usb
parent170782eb89462d30302cec12378253115b492b38 (diff)
userns: Convert gadgetfs to use kuid and kgid where appropriate
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index e58b16442971..7bd36c80be5f 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -1988,8 +1988,8 @@ gadgetfs_make_inode (struct super_block *sb,
1988 if (inode) { 1988 if (inode) {
1989 inode->i_ino = get_next_ino(); 1989 inode->i_ino = get_next_ino();
1990 inode->i_mode = mode; 1990 inode->i_mode = mode;
1991 inode->i_uid = default_uid; 1991 inode->i_uid = make_kuid(&init_user_ns, default_uid);
1992 inode->i_gid = default_gid; 1992 inode->i_gid = make_kgid(&init_user_ns, default_gid);
1993 inode->i_atime = inode->i_mtime = inode->i_ctime 1993 inode->i_atime = inode->i_mtime = inode->i_ctime
1994 = CURRENT_TIME; 1994 = CURRENT_TIME;
1995 inode->i_private = data; 1995 inode->i_private = data;