[PATCH RESEND libgpiod v2 10/18] dbus: add the API definitions

Thiago Macieira thiago at kde.org
Wed Jul 3 10:53:52 UTC 2024


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.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering





More information about the dbus mailing list