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
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 05 Aug 2010 15:43:07 -0700
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Kay Sievers <kay.sievers@...y.org>
CC:	Greg KH <gregkh@...e.de>, john stultz <johnstul@...ibm.com>,
	Alexander Shishkin <virtuoso@...nd.org>, lkml@...r.kernel.org,
	"Kirill A. Shutemov" <kirill@...temov.name>,
	Thomas Gleixner <tglx@...utronix.de>,
	Martin Schwidefsky <schwidefsky@...ibm.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Jon Hunter <jon-hunter@...com>, Ingo Molnar <mingo@...e.hu>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	David Howells <dhowells@...hat.com>,
	Avi Kivity <avi@...hat.com>, John Kacur <jkacur@...hat.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [RFC] notify userspace about time changes

On 08/05/2010 03:39 PM, Kay Sievers wrote:
>>
>> Okay, what's wrong with having a file descriptor that gets *written to*
>> on a notification?
> 
> Because it needs documentation, and is just not needed for such a
> simple thing, I think. Why would you want to write a fd number to a
> magic file, which can be your fd right away, even passing you the data
> on read().
> 

I didn't mean that, I meant a note that you open and get a pipe/socket/*.

>> Why POLL_ERR?
> 
> Because normal files can not be poll()ed, and it's not that new data
> has arrived, it just tells you to rewind and read it again. It's
> commonly used:
>   http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=5addc5dd8836aa061f6efc4a0d9ba6323726297a

It makes sense there, I guess, as some kind of sideband notification is
highly useful.  Too bad we don't have a generic mechanism on files other
than inotify... a lot of things could use it (including tail, which I
think uses inotify now.)

	-hpa

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ