mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markus Kolb <linux-201011@tower-net.de>
To: <linux-kernel@vger.kernel.org>
Subject: Question to directory setgid bit FS implementation details
Date: Tue, 25 Oct 2011 10:55:55 +0200	[thread overview]
Message-ID: <af8d5834d1bfb5f19aaf7deba6caa1a0@mail.net4visions.de> (raw)

Hello,

can you please explain in brief how the creation of files
in directories with setgid bit set is implemented in
filesystems.
I'd like to know this for a ext2/3/4 fs, jfs and nfs v3/4
if there are essential differences.

Which source part is responsible for setting the group on
the new file?
Is the effective group of the process changed before creating
the file?
Is there any sync for thread safety during the change of
process group?
Where can I find this sync in source?
Or how is this implemented that the file gets the same group
like the parent directory?

Many thanks
Markus

             reply	other threads:[~2011-10-25  9:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  8:55 Markus Kolb [this message]
2011-10-25  9:19 ` Valdis.Kletnieks
2011-10-25 11:57   ` Markus Kolb

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=af8d5834d1bfb5f19aaf7deba6caa1a0@mail.net4visions.de \
    --to=linux-201011@tower-net.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®