From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Jeff Layton <jlayton@redhat.com>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
v9fs-developer@lists.sourceforge.net, zippel@linux-m68k.org,
dhowells@redhat.com, linux-cifs-client@lists.samba.org,
codalist@TELEMANN.coda.cs.cmu.edu, joel.becker@oracle.com,
linux-ext4@vger.kernel.org, fuse-devel@lists.sourceforge.net,
cluster-devel@redhat.com,
user-mode-linux-user@lists.sourceforge.net,
mikulas@artax.karlin.mff.cuni.cz, wli@holomorphy.com,
jffs-dev@axis.com, jfs-discussion@lists.sourceforge.net,
ocfs2-devel@oss.oracle.com, reiserfs-devel@vger.kernel.org,
bfennema@falcon.csc.calpoly.edu, xfs@oss.sgi.com
Subject: Re: [PATCH 00/25] move handling of setuid/gid bits from VFS into individual setattr functions (RESEND)
Date: Tue, 07 Aug 2007 20:45:34 -0400 [thread overview]
Message-ID: <1186533934.6625.91.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <20070807171501.e31c4a97.akpm@linux-foundation.org>
On Tue, 2007-08-07 at 17:15 -0700, Andrew Morton wrote:
> Is there any way in which we can prevent these problems? Say
The problem here is that we occasionally DO need to add new flags, and
yes, they MAY be security related. The whole reason why we're now having
to change the semantics of setattr is because somebody tried to hack
their way around the write+suid issue.
I suspect we will see the exact same thing will happen again in a couple
of years with Serge's ATTR_KILL_PRIV flag.
> - 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.
Trond
next prev parent reply other threads:[~2007-08-08 0:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 13:54 Jeff Layton
2007-08-07 20:49 ` Christoph Hellwig
2007-08-07 22:13 ` Jeff Layton
2007-08-08 0:15 ` Andrew Morton
2007-08-08 0:45 ` Trond Myklebust [this message]
2007-08-08 0:54 ` Andrew Morton
2007-08-10 20:47 ` Jeff Layton
2007-08-11 2:57 ` Christoph Hellwig
2007-08-13 12:01 ` Jeff Layton
2007-08-13 12:36 ` Jeff Layton
2007-08-08 5:14 ` [fuse-devel] " Miklos Szeredi
2007-08-08 12:54 ` Jeff Layton
2007-08-08 16:48 ` Andrew Morton
2007-08-08 20:05 ` [fuse-devel] " Jan Engelhardt
2007-08-09 11:55 ` 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=1186533934.6625.91.camel@heimdal.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=akpm@linux-foundation.org \
--cc=bfennema@falcon.csc.calpoly.edu \
--cc=cluster-devel@redhat.com \
--cc=codalist@TELEMANN.coda.cs.cmu.edu \
--cc=dhowells@redhat.com \
--cc=fuse-devel@lists.sourceforge.net \
--cc=jffs-dev@axis.com \
--cc=jfs-discussion@lists.sourceforge.net \
--cc=jlayton@redhat.com \
--cc=joel.becker@oracle.com \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mikulas@artax.karlin.mff.cuni.cz \
--cc=ocfs2-devel@oss.oracle.com \
--cc=reiserfs-devel@vger.kernel.org \
--cc=user-mode-linux-user@lists.sourceforge.net \
--cc=v9fs-developer@lists.sourceforge.net \
--cc=wli@holomorphy.com \
--cc=xfs@oss.sgi.com \
--cc=zippel@linux-m68k.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®