From: Ken Brownfield <brownfld@irridia.com>
To: linux-kernel@vger.kernel.org
Subject: Recent change in directory g+s behavior (bug?)
Date: Tue, 3 Jul 2001 03:43:35 -0500 [thread overview]
Message-ID: <20010703034335.A3735@asooo.flowerfire.com> (raw)
Somewhere between 2.4.5-pre1 and 2.4.6-pre3, the behavior of the setgid
bit on directories has changed:
2.4.5-pre1:
# mkdir foo
# chgrp adm foo
# chmod 2775 foo
# cd foo
# ls -las
total 12
4 drwxrwsr-x 3 root adm 4096 Jul 3 01:11 .
4 drwxr-xr-x 6 root adm 4096 Jul 3 00:23 ..
# mkdir bar
# ls -las
total 12
4 drwxrwsr-x 3 root adm 4096 Jul 3 01:11 .
4 drwxrwxrwt 6 root root 4096 Jul 3 00:23 ..
4 drwxr-sr-x 2 root adm 4096 Jul 3 01:11 bar
2.4.6-pre3 and later, including pre9:
# mkdir foo
# chgrp adm foo
# chmod 2775 foo
# cd foo
# ls -las
total 12
4 drwxrwsr-x 3 root adm 4096 Jul 3 01:23 .
4 drwxr-xr-x 6 root adm 4096 Jul 3 00:38 ..
# mkdir bar
# ls -las
total 12
4 drwxrwsr-x 3 root adm 4096 Jul 3 01:23 .
4 drwxrwxrwt 6 root root 4096 Jul 3 00:38 ..
4 drwxr-xr-x 2 root adm 4096 Jul 3 01:23 bar
The setgid bit on directories created within g+s directories is no
longer being set, which is a marked change of behavior that breaks quite
a few things here, most notably shared CVS trees. The group ownership
does however still seem to be inherited properly for both directories
and files.
I'm seeing a lot of VFS and ext2 work in the ChangeLog during this
kernel interval, but nothing specific to this problem. Because of that,
I'm assuming this isn't expected behavior since it breaks many
real-world systems that I'm familiar with and differs from other Unixes
(Unices?).
I apologize for not being able to narrow down the specific kernel
revision at the moment, but I will be able to do this soon. Is anyone
else seeing this? Also, who would be the best person to talk to about
these issues right now (if they're not on lkml)?
Thanks very much,
--
Ken.
brownfld@irridia.com
next reply other threads:[~2001-07-03 8:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-03 8:43 Ken Brownfield [this message]
2001-07-03 9:46 ` Recent change in directory g+s behavior (bug?) Alexander Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010703034335.A3735@asooo.flowerfire.com \
--to=brownfld@irridia.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.