[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160415220334.GC26549@pc.thejh.net>
Date: Sat, 16 Apr 2016 00:03:34 +0200
From: Jann Horn <jann@...jh.net>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
"H. Peter Anvin" <hpa@...or.com>,
Andy Lutomirski <luto@...capital.net>, security@...ian.org,
security@...nel.org, Al Viro <viro@...iv.linux.org.uk>,
security@...ntu.com, Peter Hurley <peter@...leysoftware.com>,
Serge Hallyn <serge.hallyn@...ntu.com>,
Willy Tarreau <w@....eu>,
Aurelien Jarno <aurelien@...el32.net>,
One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>,
Greg KH <greg@...ah.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Jiri Slaby <jslaby@...e.com>, Florian Weimer <fw@...eb.enyo.de>
Subject: Re: [PATCH 04/16] devpts: Teach /dev/ptmx to automount the
appropriate devpts via path lookup
On Fri, Apr 15, 2016 at 10:35:20AM -0500, Eric W. Biederman wrote:
> +static inline bool is_dev_ptmx(struct inode *inode)
> +{
> + return inode->i_rdev == MKDEV(TTYAUX_MAJOR, PTMX_MINOR);
> +}
I'm not sure whether it matters, but I think a FUSE filesystem
should be able to create a fake device that passes this check.
fuse_init_inode() calls init_special_inode() with a user-supplied
rdev for character devices. Is that a problem?
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists