[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091105131545.72b4e319@lxorguk.ukuu.org.uk>
Date: Thu, 5 Nov 2009 13:15:45 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Miklos Szeredi <miklos@...redi.hu>
Cc: akpm@...ux-foundation.org, viro@...IV.linux.org.uk,
dhowells@...hat.com, hch@...radead.org, adilger@....com,
mtk.manpages@...il.com, torvalds@...ux-foundation.org,
drepper@...il.com, jamie@...reable.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 resend] vfs: new O_NODE open flag
> - re-opening normally after checking file type (there's a debate
> whether this would have security issues, but currently we do allow
> re-opening with increased permissions thorugh /proc/*/fd)
Which has already been demonstrated to be an (unfixed) security hole.
> Filesystems which want to install special file operations for O_NODE
> opens (e.g. ioctl) may set S_OPEN_NODE flag in the inode. This will
Wrong way around. The defailt should be that O_NODE fails for any handle
which has not specifically added support.
It'll fill itself in where it matters pretty fast that way but cases will
get reviewed which is critical.
You also need to address the open with no permissions pinning a removable
device question.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists