From: Jeff Layton <jlayton@redhat.com>
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: Fri, 10 Aug 2007 16:47:52 -0400 [thread overview]
Message-ID: <20070810164752.23117e0e.jlayton@redhat.com> (raw)
In-Reply-To: <1186533934.6625.91.camel@heimdal.trondhjem.org>
On Tue, 07 Aug 2007 20:45:34 -0400
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> > - rename something so that unconverted filesystems will reliably fail to
> > compile?
> >
> > - leave existing filesystems alone, but add a new
> > inode_operations.setattr_jeff, which the networked filesytems can
> > implement, and teach core vfs to call setattr_jeff in preference to
> > setattr?
>
> If you really need to know that the filesystem is handling the flags,
> then how about instead having ->setattr() return something which
> indicates which flags it actually handled? That is likely to be a far
> more intrusive change, but it is one which is future-proof.
>
One thing that we could do here is have notify_change check
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?
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2007-08-10 20:47 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 [this message]
2007-08-11 2:57 ` Christoph Hellwig
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=20070810164752.23117e0e.jlayton@redhat.com \
--to=jlayton@redhat.com \
/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).