]> git.baikalelectronics.ru Git - kernel.git/commit
fs/9p: mkdir fix for setting S_ISGID bit as per parent directory
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Wed, 18 Aug 2010 06:01:52 +0000 (06:01 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 28 Oct 2010 14:08:45 +0000 (09:08 -0500)
commitc244bb007e378c8929a1462e20c89629cd7f824c
tree76557c0e621724ee32ddea2748f8b84681ae1ceb
parent409d09f1dd49c957322b310ffc1e2ced3e654683
fs/9p: mkdir fix for setting S_ISGID bit as per parent directory

The current implementation of 9p client mkdir function does not
set the S_ISGID mode bit for the directory being created if the
parent directory has this bit set. This patch fixes this problem
so that the newly created directory inherits the gid from parent
directory and not from the process creating this directory, when
the S_ISGID bit is set in parent directory.

Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c