--- zzzz-none-000/linux-4.9.231/drivers/gpio/gpiolib-sysfs.c 2020-07-22 07:10:54.000000000 +0000 +++ falcon-5590-729/linux-4.9.231/drivers/gpio/gpiolib-sysfs.c 2022-03-30 12:03:34.000000000 +0000 @@ -446,6 +446,9 @@ struct gpio_desc *desc; int status; + if (!capable(CAP_SYS_ADMIN)) + return -EPERM; + status = kstrtol(buf, 0, &gpio); if (status < 0) goto done; @@ -488,6 +491,9 @@ struct gpio_desc *desc; int status; + if (!capable(CAP_SYS_ADMIN)) + return -EPERM; + status = kstrtol(buf, 0, &gpio); if (status < 0) goto done;