cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Re: [PATCH 00/25] move handling of setuid/gid bits from VFS into individual setattr functions (RESEND)
Date: Sat, 11 Aug 2007 03:57:39 +0100	[thread overview]
Message-ID: <20070811025739.GA21244@infradead.org> (raw)
In-Reply-To: <20070810164752.23117e0e.jlayton@redhat.com>

On Fri, Aug 10, 2007 at 04:47:52PM -0400, Jeff Layton wrote:
> attr->ia_valid after the setattr operation returns. If either ATTR_KILL_*
> bit is set then BUG(). The helper function already clears those bits
> so anything using it should automatically be ok. We'd have to fix
> up NFS and a few others that don't implement suid/sgid.
> 
> This is not as certain as changing the name of the inode operation. It
> would only pop when someone is attempting to change a setuid/setgid
> file on these filesystems. Still, it should conceivably catch most if
> not all offenders. Would that be sufficient to take care of everyone's
> concerns?

I like the idea of checking ia_valid after return a lot.  But instead of
going BUG() it should just do the default action, that we can avoid
touching all the filesystem and only need to change those that need
special care.  I also have plans to add some new AT_ flags for implementing
some filesystem ioctl in generic code that would benefit greatly from
the ia_valid checkin after return to return ENOTTY fr filesystems not
implementing those ioctls.



  reply	other threads:[~2007-08-11  2:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-06 13:54 [Cluster-devel] [PATCH 00/25] move handling of setuid/gid bits from VFS into individual setattr functions (RESEND) Jeff Layton
2007-08-07 20:49 ` [Cluster-devel] " Christoph Hellwig
2007-08-07 22:13   ` Jeff Layton
2007-08-08  0:15 ` Andrew Morton
2007-08-08  0:45   ` Trond Myklebust
2007-08-08  0:54     ` Andrew Morton
2007-08-10 20:47     ` Jeff Layton
2007-08-11  2:57       ` Christoph Hellwig [this message]
2007-08-13 12:01         ` Jeff Layton
2007-08-13 12:36           ` Jeff Layton
2007-08-08 12:54   ` Jeff Layton
2007-08-08 16:48     ` Andrew Morton
     [not found]       ` <Pine.LNX.4.64.0708082204210.10387@fbirervta.pbzchgretzou.qr>
2007-08-09 11:55         ` [Cluster-devel] Re: [fuse-devel] " Jeff Layton

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=20070811025739.GA21244@infradead.org \
    --to=hch@infradead.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;
as well as URLs for NNTP newsgroup(s).