Skip to content

userns: Simple filesystems conversions

Eric W. Biederman containers linux-fsdevel lkml reiserfs-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11userns: Convert affs to use kuid/kgid wherwe appropriatefs/affs/affs.h fs/affs/inode.c fs/affs/super.c +1 more+23 -200 replies
2/11userns: Convert bfs to use kuid/kgid where appropriatefs/bfs/inode.c init/Kconfig+4 -50 replies
3/11userns: Convert btrfs to use kuid/kgid where appropriatefs/btrfs/delayed-inode.c fs/btrfs/inode.c fs/btrfs/ioctl.c +1 more+11 -120 replies
4/11userns: Convert hpfs to use kuid and kgid where appropriatefs/hpfs/hpfs_fn.h fs/hpfs/inode.c fs/hpfs/namei.c +2 more+28 -220 replies
5/11userns: Convert jffs2 to use kuid and kgid where appropriatefs/jffs2/acl.c fs/jffs2/file.c fs/jffs2/fs.c +2 more+39 -240 replies
6/11userns: Convert jfs to use kuid/kgid where appropriatefs/jfs/file.c fs/jfs/jfs_imap.c fs/jfs/jfs_incore.h +2 more+33 -240 replies
7/11userns: Convert reiserfs to use kuid and kgid where appropriatefs/reiserfs/inode.c fs/reiserfs/xattr_acl.c init/Kconfig+30 -170 replies
8/11userns: Convert squashfs to use kuid/kgid where appropriatefs/squashfs/inode.c init/Kconfig+6 -30 replies
9/11userns: Convert ubifs to use kuid/kgidfs/ubifs/budget.c fs/ubifs/debug.c fs/ubifs/journal.c +4 more+12 -130 replies
10/11userns: Convert the udf filesystem to use kuid/kgid where appropriatefs/udf/inode.c init/Kconfig+12 -91 reply
11/11userns: Convert the ufs filesystem to use kuid/kgid where appropriatefs/ufs/inode.c init/Kconfig+8 -90 replies

Reviews trailers per patch

8 of 11 patches have a Reviewed-by or Acked-by.

PatchSerge HallynJan Kara
1/11A-b
2/11A-b
3/11A-b
4/11A-b
5/11
6/11
7/11
8/11A-b
9/11A-b
10/11A-b A-b
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [REVIEW][PATCH 00/11] userns: Simple filesystems conversions

This continus my conversion of filesystems to support running when kernel user namespace supprot is enabled. This time I have targed the filesystems that I had to look twice at to verify the changes were correct.

The strategy is to convert the structures in the kernel where we store uid_t and gid_t to to kuid_t and kgid_t. To assume all file systems are encoded in the initial user namespace for purposes of conversions. Mount options containing uids and gids along with other user space interfaces are of assumed to be encoded in the current user namespace.

These patches are against:
git.kernel.org:/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-next

Eric W. Biederman (11):
userns: Convert affs to use kuid/kgid wherwe appropriate
userns: Convert bfs to use kuid/kgid where appropriate
userns: Convert btrfs to use kuid/kgid where appropriate
userns: Convert hpfs to use kuid and kgid where appropriate
userns: Convert jffs2 to use kuid and kgid where appropriate
userns: Convert jfs to use kuid/kgid where appropriate
userns: Convert reiserfs to use kuid and kgid where appropriate
userns: Convert squashfs to use kuid/kgid where appropriate
userns: Convert ubifs to use kuid/kgid
userns: Convert the udf filesystem to use kuid/kgid where appropriate
userns: Convert the ufs filesystem to use kuid/kgid where appropriate

 fs/affs/affs.h           |    4 ++--
 fs/affs/inode.c          |   20 ++++++++++----------
 fs/affs/super.c          |   18 +++++++++++-------
 fs/bfs/inode.c           |    8 ++++----
 fs/btrfs/delayed-inode.c |    8 ++++----
 fs/btrfs/inode.c         |    8 ++++----
 fs/btrfs/ioctl.c         |    6 +++---
 fs/hpfs/hpfs_fn.h        |    4 ++--
 fs/hpfs/inode.c          |   19 +++++++++++--------
 fs/hpfs/namei.c          |    8 ++++----
 fs/hpfs/super.c          |   18 +++++++++++-------
 fs/jffs2/acl.c           |   26 ++++++++++++++++++++------
 fs/jffs2/file.c          |    8 ++++----
 fs/jffs2/fs.c            |   24 +++++++++++++-----------
 fs/jffs2/os-linux.h      |    4 ++--
 fs/jfs/file.c            |    4 ++--
 fs/jfs/jfs_imap.c        |   22 ++++++++++++----------
 fs/jfs/jfs_incore.h      |    8 ++++----
 fs/jfs/super.c           |   22 +++++++++++++++-------
 fs/reiserfs/inode.c      |   26 +++++++++++++-------------
 fs/reiserfs/xattr_acl.c  |   20 +++++++++++++++++---
 fs/squashfs/inode.c      |    8 ++++++--
 fs/ubifs/budget.c        |    4 ++--
 fs/ubifs/debug.c         |    4 ++--
 fs/ubifs/journal.c       |    4 ++--
 fs/ubifs/sb.c            |    4 ++--
 fs/ubifs/super.c         |    4 ++--
 fs/ubifs/ubifs.h         |    4 ++--
 fs/udf/inode.c           |   12 ++++++------
 fs/udf/super.c           |   20 ++++++++++++--------
 fs/udf/udf_sb.h          |    4 ++--
 fs/ufs/inode.c           |   16 ++++++++--------
 init/Kconfig             |   11 -----------
 33 files changed, 214 insertions(+), 166 deletions(-)