Re: [PATCH 2/3] regulator: userspace-consumer: Add regulator event support

From: Mark Brown
Date: Fri Sep 01 2023 - 08:19:04 EST


On Fri, Sep 01, 2023 at 02:27:28AM -0700, Zev Weiss wrote:

> I for one frequently examine things in sysfs using shell commands like 'cat'
> and 'grep' and such, and I suspect I'm (very, very) far from alone in that.
> With this design a user doing that could cause a monitoring daemon to miss
> events that it was expecting to receive via this file.

> I don't think we should be creating sysfs files that are secretly land mines
> that allow a curious user innocently peeking around in sysfs doing (they
> think) read-only operations to break things for other programs using those
> files.

It could be switched to clear on read. Like I said on the prior version
the userspace consumer is a bit of a sharp edge at the best of times.

Attachment: signature.asc
Description: PGP signature