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>
Cc: <Valdis.Kletnieks@vt.edu>
Subject: Re: Question to directory setgid bit FS implementation details
Date: Tue, 25 Oct 2011 13:57:17 +0200	[thread overview]
Message-ID: <6d74828ba3d3350978233ddb54b4fdc0@mail.net4visions.de> (raw)
In-Reply-To: <15714.1319534364@turing-police.cc.vt.edu>

On Tue, 25 Oct 2011 05:19:24 -0400, Valdis.Kletnieks@vt.edu wrote:
> On Tue, 25 Oct 2011 10:55:55 +0200, Markus Kolb said:
>
>> can you please explain in brief how the creation of files
>> in directories with setgid bit set is implemented in
>> filesystems.
>
> Look in fs/inode.c, function inode_init_owner(). All of 8 lines of 
> code.

Ok.
Looks for me that there are only changes in data structs.

To be on the safe side can you confirm that there should be no call
inside the kernel code to change the effective group of a process
which creates a file in a directory with setgid-bit set?!

Thanks

      reply	other threads:[~2011-10-25 11:57 UTC|newest]

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

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=6d74828ba3d3350978233ddb54b4fdc0@mail.net4visions.de \
    --to=linux-201011@tower-net.de \
    --cc=Valdis.Kletnieks@vt.edu \
    --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®