lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 14 Jun 2017 15:04:18 +0200 From: Greg Kroah-Hartman <gregkh@...uxfoundation.org> To: Andy Shevchenko <andy.shevchenko@...il.com> Cc: Samuel Thibault <samuel.thibault@...-lyon.org>, okash.khawaja@...il.com, Jiri Slaby <jslaby@...e.com>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, devel@...verdev.osuosl.org, Kirk Reiser <kirk@...sers.ca>, speakup@...ux-speakup.org, Chris Brannon <chris@...-brannons.com> Subject: Re: [patch 1/2] staging: speakup: add function to convert dev name to number On Wed, Jun 14, 2017 at 03:36:30PM +0300, Andy Shevchenko wrote: > On Wed, Jun 14, 2017 at 3:18 PM, Samuel Thibault > <samuel.thibault@...-lyon.org> wrote: > > Greg KH, on mer. 14 juin 2017 13:48:02 +0200, wrote: > >> On Wed, Jun 14, 2017 at 01:26:09PM +0200, Samuel Thibault wrote: > >> > Greg KH, on mer. 14 juin 2017 12:15:41 +0200, wrote: > > >> And trying to have the kernel do the mapping based on strings like this > >> is not ok, sorry. > > > > So what is the solution? Users would find it completely crazy to have > > to provide major/minor numbers. > > Shouldn't udev take care of major/minor and alike stuff in user space? No, that's all handled by the kernel now, in devtmpfs. The console stuff is odd though, but that is each driver defining the name for itself, major/minor does not apply. Also, a separate driver is not having to figure this all out. I wonder if we could just add a tty core function for this as it does know the name of everything that has been registered with it, right? thanks, greg k-h
Powered by blists - more mailing lists