userns: Convert ipathfs to use GLOBAL_ROOT_UID and GLOBAL_ROOT_GID
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 26 Apr 2012 05:40:44 +0000 (22:40 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2012 10:13:19 +0000 (03:13 -0700)
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
drivers/infiniband/hw/qib/qib_fs.c
init/Kconfig

index cff8a6c..65a2a23 100644 (file)
@@ -61,8 +61,8 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
 
        inode->i_ino = get_next_ino();
        inode->i_mode = mode;
-       inode->i_uid = 0;
-       inode->i_gid = 0;
+       inode->i_uid = GLOBAL_ROOT_UID;
+       inode->i_gid = GLOBAL_ROOT_GID;
        inode->i_blocks = 0;
        inode->i_atime = CURRENT_TIME;
        inode->i_mtime = inode->i_atime;
index 355b1af..f0371a6 100644 (file)
@@ -960,7 +960,6 @@ config UIDGID_CONVERTED
        depends on !UML || HOSTFS = n
 
        # The rare drivers that won't build
-       depends on INFINIBAND_QIB = n
        depends on BLK_DEV_LOOP = n
        depends on ANDROID_BINDER_IPC = n