[PATCH 0/4] xfs: Allow user to change project id in un-init userns

Gao feng
2013-09-04T06:37:28Z

This patchset add two helper functions to convert user space project id
to kernel space project id without any struct changed.

Since the projid_map of user namespace has limit the range of valid project
ids for user namespace, we can safely allow user to change file's project
id in un-init user namespace.

Gao feng (4):
xfs: add helper function to convert project id between user and kernel
space
userns: ioctl: convert project id between user and kernel space
xfs: allow un-init user namespace to change file's project id
userns: eofblocks: convert project id from user to kernel space

fs/xfs/xfs_icache.h | 9 ++++++++-
fs/xfs/xfs_ioctl.c | 26 ++++++++++++--------------
fs/xfs/xfs_linux.h | 19 +++++++++++++++++++
3 files changed, 39 insertions(+), 15 deletions(-)