Skip to content

Commit a7d9cfe

Browse files
committed
userns: Convert cramfs to use kuid/kgid where appropriate
Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
1 parent 31aba05 commit a7d9cfe

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎fs/cramfs/inode.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ static struct inode *get_cramfs_inode(struct super_block *sb,
9090
}
9191

9292
inode->i_mode = cramfs_inode->mode;
93-
inode->i_uid = cramfs_inode->uid;
94-
inode->i_gid = cramfs_inode->gid;
93+
i_uid_write(inode, cramfs_inode->uid);
94+
i_gid_write(inode, cramfs_inode->gid);
9595

9696
/* if the lower 2 bits are zero, the inode contains data */
9797
if (!(inode->i_ino & 3)) {

‎init/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,6 @@ config UIDGID_CONVERTED
941941
depends on CEPH_FS = n
942942
depends on CIFS = n
943943
depends on CODA_FS = n
944-
depends on CRAMFS = n
945944
depends on ECRYPT_FS = n
946945
depends on EFS_FS = n
947946
depends on EXOFS_FS = n

0 commit comments

Comments
 (0)