[Gluster-devel] 3.5.1-beta2 Problems with suid and sgid bits on directories
Niels de Vos
ndevos at redhat.com
Mon Jun 23 10:03:19 UTC 2014
On Tue, Jun 17, 2014 at 11:49:26AM -0400, Shyamsundar Ranganathan wrote:
> You maybe looking at the problem being fixed here, [1].
>
> On a lookup attribute mismatch was not being healed across
> directories, and this patch attempts to address the same. Currently
> the version of the patch does not heal the S_ISUID and S_ISGID bits,
> which is work in progress (but easy enough to incorporate and test
> based on the patch at [1]).
>
> On a separate note, add-brick just adds a brick to the cluster, the
> lookup is where the heal (or creation of the directory across all sub
> volumes in DHT xlator) is being done.
I assume that this is not a regression between 3.5.0 and 3.5.1? If that
is the case, we can pull the fix in 3.5.2 because 3.5.1 really should
not get delayed much longer.
Thanks,
Niels
>
> Shyam
>
> [1] http://review.gluster.org/#/c/6983/
>
> ----- Original Message -----
> > From: "Anders Blomdell" <anders.blomdell at control.lth.se>
> > To: "Gluster Devel" <gluster-devel at gluster.org>
> > Sent: Tuesday, June 17, 2014 10:53:52 AM
> > Subject: [Gluster-devel] 3.5.1-beta2 Problems with suid and sgid bits on directories
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > With a glusterfs-3.5.1-0.3.beta2.fc20.x86_64 with a reverted
> > 3dc56cbd16b1074d7ca1a4fe4c5bf44400eb63ff (due to local lack of IPv4
> > addresses), I get
> > weird behavior if I:
> >
> > 1. Create a directory with suid/sgid/sticky bit set (/mnt/gluster/test)
> > 2. Make a subdirectory of #1 (/mnt/gluster/test/dir1)
> > 3. Do an add-brick
> >
> > Before add-brick
> >
> > 755 /mnt/gluster
> > 7775 /mnt/gluster/test
> > 2755 /mnt/gluster/test/dir1
> >
> > After add-brick
> >
> > 755 /mnt/gluster
> > 1775 /mnt/gluster/test
> > 755 /mnt/gluster/test/dir1
> >
> > On the server it looks like this:
> >
> > 7775 /data/disk1/gluster/test
> > 2755 /data/disk1/gluster/test/dir1
> > 1775 /data/disk2/gluster/test
> > 755 /data/disk2/gluster/test/dir1
> >
> > Filed as bug:
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=1110262
> >
> > If somebody can point me to where the logic of add-brick is placed, I can
> > give
> > it a shot (a find/grep on mkdir didn't immediately point me to the right
> > place).
> >
> >
> > Regards
> >
> > Anders Blomdell
> >
> >
> >
> >
> > - --
> > Anders Blomdell Email: anders.blomdell at control.lth.se
> > Department of Automatic Control
> > Lund University Phone: +46 46 222 4625
> > P.O. Box 118 Fax: +46 46 138118
> > SE-221 00 Lund, Sweden
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1
> > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> >
> > iQEcBAEBAgAGBQJToFZ/AAoJENZYyvaDG8NcIVgH/0FnyTuB/yutrAdKhOCFTGGY
> > fKqWEozJjiUB4TE8hvAnYw7DalT6jlPLUre6vGzUuioS6TQNn8emTFA7GN9Ghklv
> > pc2I8NWtwju2iXqLO5ACjBDRuFcYaDLQRVzBFiQpOoOkwrly0uEvcSgUKFxrSuMx
> > NrUZKgYTjZb+8kwnSsFv/QNlcPR7zWAiyqbu7rh2a2Q9ArwEsLyTi+se6z/T3PIH
> > ASEIR86jWywaP/JDRoSIUX0PIIS8v7mciFtCVGmgIHfugmEwDH2ZxQtbrkxHOC3/
> > UjOaGY0TYwPNRnlzk2qkk6Yo3bALGzHa4SUfdRf+gvNa0wZLQWFTdnhWP1dPMc0=
> > =tMUX
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > Gluster-devel mailing list
> > Gluster-devel at gluster.org
> > http://supercolony.gluster.org/mailman/listinfo/gluster-devel
> >
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-devel
More information about the Gluster-devel
mailing list