Re: [PATCH RESEND libgpiod v2 10/18] dbus: add the API definitions
Thiago Macieira <[email protected]> Wed, 03 Jul 2024 12:53:52 +0200
| Newsgroups | gmane.comp.freedesktop.dbus,gmane.linux.kernel.gpio |
|---|---|
| Message-ID | <16081423.fTUFtlzNnI@tjmaciei-mobl5> |
On Tuesday 2 July 2024 11:15:11 CEST Bartosz Golaszewski wrote: > Therefore, my advice is to not have the API that can lead to TOCTOU, even > if > > by accident. > > Unfortunately there's one issue with the above: requesting a line > (even as input) may result in the kernel driver triggering a physical > change in hardware which may be undesirable. Inspecting the "Used" > property only results in fetching a flag from the kernel and will > never make the driver act upon HW. Ah, that makes sense. Thank you for the explanation.