OSDN Git Service

fuse2fs: set inode's uid/gid when creating inode
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Nov 2015 23:28:42 +0000 (18:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Nov 2015 23:28:42 +0000 (18:28 -0500)
commitf150bdec8cbbb94e2dbf3e8749097040fd8794cb
treec0d946d482956179eb949554b0c34da39ae29198
parent94676ef2b30d80c11008f0e13c77029e286bd0d7
fuse2fs: set inode's uid/gid when creating inode

When creating a file in op_create, set the file's uid and gid to the
user's uid and gid.  Do the same in op_mknod.

Reported-by: Lennart Lövstrand <lennart@lovstrand.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c