Commit 32d639c6 authored by Eric W. Biederman's avatar Eric W. Biederman

userns: Convert gadgetfs to use kuid and kgid where appropriate

Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Acked-by: default avatarSerge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 170782eb
...@@ -1988,8 +1988,8 @@ gadgetfs_make_inode (struct super_block *sb, ...@@ -1988,8 +1988,8 @@ gadgetfs_make_inode (struct super_block *sb,
if (inode) { if (inode) {
inode->i_ino = get_next_ino(); inode->i_ino = get_next_ino();
inode->i_mode = mode; inode->i_mode = mode;
inode->i_uid = default_uid; inode->i_uid = make_kuid(&init_user_ns, default_uid);
inode->i_gid = default_gid; inode->i_gid = make_kgid(&init_user_ns, default_gid);
inode->i_atime = inode->i_mtime = inode->i_ctime inode->i_atime = inode->i_mtime = inode->i_ctime
= CURRENT_TIME; = CURRENT_TIME;
inode->i_private = data; inode->i_private = data;
......
...@@ -932,7 +932,6 @@ config UIDGID_CONVERTED ...@@ -932,7 +932,6 @@ config UIDGID_CONVERTED
depends on NET_9P = n depends on NET_9P = n
# Filesystems # Filesystems
depends on USB_GADGETFS = n
depends on USB_FUNCTIONFS = n depends on USB_FUNCTIONFS = n
depends on DEVTMPFS = n depends on DEVTMPFS = n
depends on XENFS = n depends on XENFS = n
......
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