Re: [PATCH 1/1] shiftfs: uid/gid shifting bind mount

2016-05-31 Thread James Bottomley
On Wed, 2016-06-01 at 03:40 +0100, Al Viro wrote: > On Tue, May 31, 2016 at 08:31:33PM -0400, James Bottomley wrote: > > > > +static struct dentry *shiftfs_lookup(struct inode *dir, struct > > dentry *dentry, > > +unsigned int flags) > > +{ > > + struct dentry *r

Re: [PATCH 1/1] shiftfs: uid/gid shifting bind mount

2016-05-31 Thread Al Viro
On Tue, May 31, 2016 at 08:31:33PM -0400, James Bottomley wrote: > +static struct dentry *shiftfs_lookup(struct inode *dir, struct dentry > *dentry, > + unsigned int flags) > +{ > + struct dentry *real = dir->i_private, *new; > + struct inode *reali = rea

[PATCH 1/1] shiftfs: uid/gid shifting bind mount

2016-05-31 Thread James Bottomley
This allows any subtree to be uid/gid shifted and bound elsewhere. It does this by operating simlarly to overlayfs. Its primary use is for shifting the underlying uids of filesystems used to support unpriviliged (uid shifted) containers. The usual use case here is that the container is operating