[Gluster-devel] 3.5.1-beta2 Problems with suid and sgid bits on directories

Anders Blomdell anders.blomdell at control.lth.se
Tue Jun 17 14:53:52 UTC 2014


-----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-----


More information about the Gluster-devel mailing list