bugGluster - Bugs: bug #26778, items created in setgid...

 
 

bug #26778: items created in setgid directories do not inherit group ID

Submitted by:  Alex Kompel <shurikk>
Submitted on:  Wed 10 Jun 2009 11:29:30 PM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: PostponedPrivacy: Public
Assigned to: NoneOriginator Name: Alex
Open/Closed: ClosedRelease: 2.0.0-1
Operating System: GNU/LinuxReproducibility: Every Time

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 25 Jun 2009 07:13:56 AM UTC, comment #3:

This bug has been moved to http://bugs.gluster.com

Please track the progress of the bug at http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=72

--
Gowda

Basavanagowda Kanur <gowda>
Project Member
Fri 12 Jun 2009 09:05:40 PM UTC, comment #2:

Note: this issue is also present in 1.3

Caleb Tennis <ctennis>
Fri 12 Jun 2009 06:41:20 PM UTC, comment #1:

I can confirm this behavior with one of our systems as well.

Caleb Tennis <ctennis>
Wed 10 Jun 2009 11:29:30 PM UTC, original submission:

Items create in directories with setgid flag set do not inherit parent directory group id.

Steps to reproduce:
------------------
mkdir 1
chgrp someothergroup 1
chmod g+s 1
ls -ld 1
cd 1
mkdir 2
ls -ld 2

expected: 2 groupid should be someothergroup

By looking at strace it appears that glusterfs calls chown immediately after mkdir and overrides group ID.

[pid 2908] mkdir("/data1/glusterfsvol/shared/1", 0755 <unfinished ...>
[pid 2914] <... stat resumed> {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
[pid 2908] <... mkdir resumed> ) = 0
[pid 2914] stat("/data1", <unfinished ...>
[pid 2908] chown("/data1/glusterfsvol/shared/1", 0, 0 <unfinished ...>
[pid 2914] <... stat resumed> {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 2908] <... chown resumed> ) = 0
[pid 2914] close(53 <unfinished ...>
[pid 2908] lstat("/data1/glusterfsvol/shared/1", <unfinished ...>
[pid 2914] <... close resumed> ) = 0
[pid 2908] <... lstat resumed> {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0

test config:
-------------------------------
volume posix
type storage/posix
option directory /data1/glusterfsvol
end-volume

volume locks
type features/locks
subvolumes posix
end-volume

volume brick
type performance/io-threads
subvolumes locks
end-volume

volume server
type protocol/server
option transport-type tcp
option auth.addr.brick.allow *
subvolumes brick
end-volume

volume cs0301
type protocol/client
option transport-type tcp
option remote-host cs0301
option remote-subvolume brick
end-volume

volume cs0302
type protocol/client
option transport-type tcp
option remote-host cs0302
option remote-subvolume brick
end-volume

volume cs
type cluster/nufa
option local-volume-name `hostname` # note the backquote, so 'hostname' output will be used as the option.
subvolumes cs0301 cs0302
end-volume

volume cache
type performance/io-cache
option cache-size 512MB
subvolumes cs
end-volume

Alex Kompel <shurikk>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gowda (Posted a comment)
  • -unavailable- added by ctennis (Posted a comment)
  • -unavailable- added by shurikk (Submitted the item)
  • -unavailable- added by shurikk
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Jun 2009 07:13:56 AM UTCgowdaStatusNone=>Postponed
      Originator Name=>Alex
      Open/ClosedOpen=>Closed
    Wed 10 Jun 2009 11:29:30 PM UTCshurikkCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1