Re: gpioctl on the ODROID C2

Vincent DEFERT <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
Thank you!

That's unfortunate because in multi-user mode, kern.securelevel is 
forced to 1.
This means that the GPIO is unusable in practice. That's a rather 
curious design decision.

On 07/07/2025 20:08, Robert Swindells wrote:
> Vincent DEFERT <[email protected]> wrote:
>> How is that enforced?
>> I've had a look at gpioctl.c, gpio.c and mesongxbb_pinctrl.c and they
>> don't even contain the word 'secure'...
> See gpio_ioctl() in sys/dev/gpio/gpio.c, in the GPIOREAD case of the
> select there is a call to kauth_authorize_device().
>
>
> If you are looking for a project, meson_pinctrl.c doesn't have support
> for configuring pins to generate interrupts.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.