Re: [PATCH 00/25] move handling of setuid/gid bits from VFS into individual setattr functions (RESEND)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Jeff Layton <jlayton@...>, <linux-kernel@...>, <linux-fsdevel@...>, <v9fs-developer@...>, <zippel@...>, <dhowells@...>, <linux-cifs-client@...>, <codalist@...>, <joel.becker@...>, <linux-ext4@...>, <fuse-devel@...>, <cluster-devel@...>, <user-mode-linux-user@...>, <mikulas@...>, <wli@...>, <jffs-dev@...>, <jfs-discussion@...>, <ocfs2-devel@...>, <reiserfs-devel@...>, <bfennema@...>, <xfs@...>
Date: Tuesday, August 7, 2007 - 8:45 pm

On Tue, 2007-08-07 at 17:15 -0700, Andrew Morton wrote:


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.


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

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 00/25] move handling of setuid/gid bits from VFS ..., Trond Myklebust, (Tue Aug 7, 8:45 pm)
Re: [PATCH 00/25] move handling of setuid/gid bits from VFS ..., Christoph Hellwig, (Fri Aug 10, 10:57 pm)