[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161204124936.GB4520@tigerII.localdomain>
Date: Sun, 4 Dec 2016 21:49:36 +0900
From: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Minchan Kim <minchan@...nel.org>,
Steven Allen <steven@...balien.com>,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
Subject: Re: [PATCH] zram: restrict add/remove attributes to root only
On (12/04/16 12:28), Greg KH wrote:
> > [..]
> >
> > > Why can't a normal user read the attribute? Does a read actually modify
> > > something?
> >
> > yes, it does.
>
> Oh that's totally and completely broken then.
>
> Reading from a sysfs file should NEVER cause side affects to the system.
> Please fix up this api.
we have a mechanism for such API changes -- there is a bunch of deprecated
sysfs attrs that we will remove in 4.11; so I'll mark hot_add/hot_remove
as deprecated and switch to char device (as you suggested). thanks.
-ss
Powered by blists - more mailing lists