gpio: shared-proxy: set suppress_bind_attrs
PATCH 1/1 gpio: shared-proxy: set suppress_bind_attrs
From: Bartosz Golaszewski <[email protected]>
User-space must not fiddle with shared-proxy auxiliary devices. Disable bind/unbind attributes in sysfs.
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpio-shared-proxy.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-shared-proxy.c +1 -0
@@ -322,6 +322,7 @@ MODULE_DEVICE_TABLE(auxiliary, gpio_shared_proxy_id_table);static struct auxiliary_driver gpio_shared_proxy_driver = { .driver = { .name ="gpio-shared-proxy" , + .suppress_bind_attrs = true, }, .probe = gpio_shared_proxy_probe, .id_table = gpio_shared_proxy_id_table,
Signature · 1 line
2.51.0
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 4 lines · Bartosz Golaszewski
User-space must not fiddle with shared-proxy auxiliary devices. Disable bind/unbind attributes in sysfs.
Applied, thanks!
[1/1] gpio: shared-proxy: set suppress_bind_attrs
https://git.kernel.org/brgl/linux/c/64309e40e357bead3a872db89512df6c071addc5
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>