From 27e10fa573fb2934ab1a8c9fddca8831a942fb6c Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 29 Nov 2007 03:09:57 -0500 Subject: [PATCH] Unionfs ODF: set the gid of /odf/ns to 0 on initial creation Signed-off-by: Erez Zadok --- fs/unionfs/odf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c index bd09433980..0ad2ba521d 100644 --- a/fs/unionfs/odf.c +++ b/fs/unionfs/odf.c @@ -55,7 +55,11 @@ int __odf_create_hierarchy(struct dentry *odf_root) err = PTR_ERR(dentry); goto out; } + /* reset the /odf/ns's GID to 0 */ + err = odf_set_opaque(dentry, -1); dput(dentry); + if (err) + goto out; dentry = __odf_create_dir(odf_root, ODF_IC); if (IS_ERR(dentry)) { err = PTR_ERR(dentry); -- 2.43.0