[Bugs] [Bug 1184528] Some newly created folders have root ownership although created by unprivileged user
bugzilla at redhat.com
bugzilla at redhat.com
Mon Feb 9 11:49:34 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1184528
--- Comment #3 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9473 committed in release-3.5 by Niels de Vos
(ndevos at redhat.com)
------
commit 0594edfb3c9e2aa5a199ce1e2722b269636b4d4b
Author: Pranith Kumar K <pkarampu at redhat.com>
Date: Mon Jan 12 12:50:50 2015 +0530
storage/posix: Set gfid after all xattrs, uid/gid are set
Backport of http://review.gluster.com/9434
Problem:
When a new entry is created gfid is set even before uid/gid, xattrs
are set on the entry. This can lead to dht/afr healing that file/dir
with the uid/gid it sees just after the gfid is set, i.e. root/root.
Sometimes setattr/setxattr are failing on that file/dir.
Fix:
Set gfid of the file/directory only after uid/gid, xattrs are setup
properly. Readdirp, lookup either wait for the gfid to be assigned
to the entry or not update the in-memory inode ctx in posix-acl
xlator which was producing lot EACCESS/EPERM to the application
or dht/afr self-heals.
BUG: 1184528
Change-Id: I66459bbf595746ede6869447fb68a7dd23a38b7f
Signed-off-by: Pranith Kumar K <pkarampu at redhat.com>
Reviewed-on: http://review.gluster.org/9473
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Niels de Vos <ndevos at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=V4n2bSGW8Y&a=cc_unsubscribe
More information about the Bugs
mailing list