From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH 1/2] gpiolib: don't allow userspace to set values of input lines Date: Fri, 20 Jul 2018 22:33:48 +0200 Message-ID: References: <20180716083424.11157-1-brgl@bgdev.pl> <20180716083424.11157-2-brgl@bgdev.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Bartosz Golaszewski Cc: "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" List-Id: linux-gpio@vger.kernel.org On Mon, Jul 16, 2018 at 4:13 PM Bartosz Golaszewski wrote: > 2018-07-16 15:40 GMT+02:00 Linus Walleij : > > On Mon, Jul 16, 2018 at 10:34 AM Bartosz Golaszewski wrote: > > > >> User space can currently both read and set values of input lines using > >> the character device. This was not allowed by the old sysfs interface > >> nor is it a correct behavior. > >> > >> Check the first descriptor in the set for the OUT flag when asked to > >> set values and return -EPERM if the line is input. > >> > >> Signed-off-by: Bartosz Golaszewski > > > > Patch applied! Thanks for fixing this. > > Thanks. Do you think we should Cc stable on that one? Nah. It's not a regression. (Not like things that worked before stopped working.) Yours, Linus Walleij