--- zzzz-none-000/linux-4.9.231/drivers/gpio/gpiolib-sysfs.c 2020-07-22 07:10:54.000000000 +0000 +++ falcon-5530-730/linux-4.9.231/drivers/gpio/gpiolib-sysfs.c 2022-08-31 08:19:48.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;